Goto

Collaborating Authors

 signature verification



Prompt Fencing: A Cryptographic Approach to Establishing Security Boundaries in Large Language Model Prompts

Peh, Steven

arXiv.org Artificial Intelligence

Large Language Models (LLMs) remain vulnerable to prompt injection attacks, representing the most significant security threat in production deployments. We present Prompt Fencing, a novel architectural approach that applies cryptographic authentication and data architecture principles to establish explicit security boundaries within LLM prompts. Our approach decorates prompt segments with cryptographically signed metadata including trust ratings and content types, enabling LLMs to distinguish between trusted instructions and untrusted content. While current LLMs lack native fence awareness, we demonstrate that simulated awareness through prompt instructions achieved complete prevention of injection attacks in our experiments, reducing success rates from 86.7% (260/300 successful attacks) to 0% (0/300 successful attacks) across 300 test cases with two leading LLM providers. We implement a proof-of-concept fence generation and verification pipeline with a total overhead of 0.224 seconds (0.130s for fence generation, 0.094s for validation) across 100 samples. Our approach is platform-agnostic and can be incrementally deployed as a security layer above existing LLM infrastructure, with the expectation that future models will be trained with native fence awareness for optimal security. Keywords: Large Language Models, Prompt Injection, Cryptographic Security, Trust Boundaries, LLM Security Note: The experiments described in this paper were conducted in October 2025. This paper was written and submitted in November 2025.


Neural Network-Powered Finger-Drawn Biometric Authentication

Balkhi, Maan Al, Gontarska, Kordian, Harasic, Marko, Paschke, Adrian

arXiv.org Artificial Intelligence

This paper investigates neural network-based biometric authentication using finger-drawn digits on touchscreen devices. We evaluated CNN and autoencoder architectures for user authentication through simple digit patterns (0-9) traced with finger input. Twenty participants contributed 2,000 finger-drawn digits each on personal touchscreen devices. We compared two CNN architectures: a modified Inception-V1 network and a lightweight shallow CNN for mobile environments. Additionally, we examined Convolutional and Fully Connected autoencoders for anomaly detection. Both CNN architectures achieved ~89% authentication accuracy, with the shallow CNN requiring fewer parameters. Autoencoder approaches achieved ~75% accuracy. The results demonstrate that finger-drawn symbol authentication provides a viable, secure, and user-friendly biometric solution for touchscreen devices. This approach can be integrated with existing pattern-based authentication methods to create multi-layered security systems for mobile applications.


AuthSig: Safeguarding Scanned Signatures Against Unauthorized Reuse in Paperless Workflows

Zhang, RuiQiang, Ma, Zehua, Wang, Guanjie, Liu, Chang, Wang, Hengyi, Zhang, Weiming

arXiv.org Artificial Intelligence

With the deepening trend of paperless workflows, signatures as a means of identity authentication are gradually shifting from traditional ink-on-paper to electronic formats.Despite the availability of dynamic pressure-sensitive and PKI-based digital signatures, static scanned signatures remain prevalent in practice due to their convenience. However, these static images, having almost lost their authentication attributes, cannot be reliably verified and are vulnerable to malicious copying and reuse. To address these issues, we propose AuthSig, a novel static electronic signature framework based on generative models and watermark, which binds authentication information to the signature image. Leveraging the human visual system's insensitivity to subtle style variations, AuthSig finely modulates style embeddings during generation to implicitly encode watermark bits-enforcing a One Signature, One Use policy.To overcome the scarcity of handwritten signature data and the limitations of traditional augmentation methods, we introduce a keypoint-driven data augmentation strategy that effectively enhances style diversity to support robust watermark embedding. Experimental results show that AuthSig achieves over 98% extraction accuracy under both digital-domain distortions and signature-specific degradations, and remains effective even in print-scan scenarios.


Online Handwritten Signature Verification Based on Temporal-Spatial Graph Attention Transformer

Yuan, Hai-jie, Zhang, Heng, Yin, Fei

arXiv.org Artificial Intelligence

Handwritten signature verification is a crucial aspect of identity authentication, with applications in various domains such as finance and e-commerce. However, achieving high accuracy in signature verification remains challenging due to intra-user variability and the risk of forgery. This paper introduces a novel approach for dynamic signature verification: the Temporal-Spatial Graph Attention Transformer (TS-GATR). TS-GATR combines the Graph Attention Network (GAT) and the Gated Recurrent Unit (GRU) to model both spatial and temporal dependencies in signature data. TS-GATR enhances verification performance by representing signatures as graphs, where each node captures dynamic features (e.g. position, velocity, pressure), and by using attention mechanisms to model their complex relationships. The proposed method further employs a Dual-Graph Attention Transformer (DGATR) module, which utilizes k-step and k-nearest neighbor adjacency graphs to model local and global spatial features, respectively. To capture long-term temporal dependencies, the model integrates GRU, thereby enhancing its ability to learn dynamic features during signature verification. Comprehensive experiments conducted on benchmark datasets such as MSDS and DeepSignDB show that TS-GATR surpasses current state-of-the-art approaches, consistently achieving lower Equal Error Rates (EER) across various scenarios.


Capturing More: Learning Multi-Domain Representations for Robust Online Handwriting Verification

Zhang, Peirong, Ding, Kai, Jin, Lianwen

arXiv.org Artificial Intelligence

In this paper, we propose SPECTRUM, a temporal-frequency synergistic model that unlocks the untapped potential of multi-domain representation learning for online handwriting verification (OHV). SPECTRUM comprises three core components: (1) a multi-scale interactor that finely combines temporal and frequency features through dual-modal sequence interaction and multi-scale aggregation, (2) a self-gated fusion module that dynamically integrates global temporal and frequency features via self-driven balancing. These two components work synergistically to achieve micro-to-macro spectral-temporal integration. (3) A multi-domain distance-based verifier then utilizes both temporal and frequency representations to improve discrimination between genuine and forged handwriting, surpassing conventional temporal-only approaches. Extensive experiments demonstrate SPECTRUM's superior performance over existing OHV methods, underscoring the effectiveness of temporal-frequency multi-domain learning. Furthermore, we reveal that incorporating multiple handwritten biometrics fundamentally enhances the discriminative power of handwriting representations and facilitates verification. These findings not only validate the efficacy of multi-domain learning in OHV but also pave the way for future research in multi-domain approaches across both feature and biometric domains. Code is publicly available at https://github.com/NiceRingNode/SPECTRUM.



Online Signature Verification based on the Lagrange formulation with 2D and 3D robotic models

Diaz, Moises, Ferrer, Miguel A., Gil, Juan M., Rodriguez, Rafael, Zhang, Peirong, Jin, Lianwen

arXiv.org Artificial Intelligence

Online Signature Verification commonly relies on function-based features, such as time-sampled horizontal and vertical coordinates, as well as the pressure exerted by the writer, obtained through a digitizer. Although inferring additional information about the writers arm pose, kinematics, and dynamics based on digitizer data can be useful, it constitutes a challenge. In this paper, we tackle this challenge by proposing a new set of features based on the dynamics of online signatures. These new features are inferred through a Lagrangian formulation, obtaining the sequences of generalized coordinates and torques for 2D and 3D robotic arm models. By combining kinematic and dynamic robotic features, our results demonstrate their significant effectiveness for online automatic signature verification and achieving state-of-the-art results when integrated into deep learning models.


Anthropomorphic Features for On-Line Signatures

Diaz, Moises, Ferrer, Miguel A., Quintana, Jose J.

arXiv.org Artificial Intelligence

Many features have been proposed in on-line signature verification. Generally, these features rely on the position of the on-line signature samples and their dynamic properties, as recorded by a tablet. This paper proposes a novel feature space to describe efficiently on-line signatures. Since producing a signature requires a skeletal arm system and its associated muscles, the new feature space is based on characterizing the movement of the shoulder, the elbow and the wrist joints when signing. As this motion is not directly obtained from a digital tablet, the new features are calculated by means of a virtual skeletal arm (VSA) model, which simulates the architecture of a real arm and forearm. Specifically, the VSA motion is described by its 3D joint position and its joint angles. These anthropomorphic features are worked out from both pen position and orientation through the VSA forward and direct kinematic model. The anthropomorphic features' robustness is proved by achieving state-of-the-art performance with several verifiers and multiple benchmarks on third party signature databases, which were collected with different devices and in different languages and scripts.


Neural network modelling of kinematic and dynamic features for signature verification

Diaz, Moises, Ferrer, Miguel A., Quintana, Jose Juan, Wolniakowski, Adam, Trochimczuk, Roman, Miatliuk, Konstantsin, Castellano, Giovanna, Vessio, Gennaro

arXiv.org Artificial Intelligence

Additionally, some digitizers capture other function-based parameeters, such as the vertical pressure exerted by the pen tip, azimuthal and altitude angles of the pen, and even the pen's in-air trajectory. As a physiological biometric trait, a signature is used in various applications, including access control, commercial transactions, document forgery detection, and the provision of evidence in legal scenarios such as the verification of last wills [9]. In biometrics, where impostors may attempt to forge signatures with varying degrees of skill, robust verification methods are crucial. Since the execution of a signature inherently involves movements of the hand, arm, and forearm, it is hypothesized that these motions may contain kinematic and dynamic unique characteristic of the signer [7]. From a kinematic perspective, this action can be characterized by the arm's angular position, θ(t), and angular velocity, ω(t). Dynamically, these movements are facilitated by force torques, τ(t), applied at the joints. One method used to obtain this valuable biomechanical information involves a physical robot programmed to mimic the act of signing. While a robot's ability to accurately replicate these movements depends on its configuration, working area, and degrees of freedom, it can effectively capture kinematic and dynamic features during the process. However, accessing these robots is costly and cumbersome.