Abstract
Mouse dynamics is a potential means of authenticating users. Typically, the authentication process is based on classical machine learning techniques, but recently, deep learning techniques have been introduced for this purpose. Although prior research has demonstrated how machine learning and deep learning algorithms can be bypassed by carefully crafted adversarial samples, there has been very little research performed on the topic of behavioural biometrics in the adversarial domain. In an attempt to address this gap, we built a set of attacks, which are applications of several generative approaches, to construct adversarial mouse trajectories that bypass authentication models. These generated mouse sequences serve as the adversarial samples in the context of our experiments. We also present an analysis of the attack approaches we explored, explaining their limitations. In contrast to previous work, we consider the attacks in a more realistic and challenging setting in which an attacker has access to recorded user data but does not have access to the authentication model or its outputs. We explore three different attack strategies: 1) statistics-based, 2) imitation-based, and 3) surrogate-based; we show that they are able to evade the functionality of the authentication models, thereby impacting their robustness adversely. We show that imitation-based attacks often perform better than surrogate-based attacks, unless, however, the attacker can guess the architecture of the authentication model. In such cases, we propose a potential detection mechanism against surrogate-based attacks.
Introduction
Behavioral biometrics, such as keystroke and mouse dynamics, are increasingly utilized for continuous, non-intrusive user authentication. Unlike static biometrics (e.g., fingerprints), behavioral dynamics capture the unique patterns of how a user interacts with a system over time. While the security community has extensively studied adversarial attacks in the image domain—such as fooling facial recognition—the vulnerability of temporal behavioral data remains largely under-explored.
This research addresses this gap by investigating whether adversarial mouse trajectories can bypass authentication models under a highly restrictive and realistic threat model. Specifically, we examine a remote authentication setup where an attacker has compromised a local machine to record legitimate mouse movements but lacks any access to the remote authentication server's weights or the ability to query the model for feedback.
Attack Methodologies
To evaluate the robustness of standard authentication models (specifically 1D Convolutional Neural Networks and Support Vector Machines), we developed three distinct adversarial strategies:
- Statistics-based Attack (Baseline): This approach constructs histograms of a user's mouse position differences, starting coordinates, and time intervals. New trajectories are generated by randomly sampling from these distributions. This serves as a non-neural baseline.
- Imitation-based Attack: This strategy utilizes a Gated Recurrent Unit (GRU-RNN) generator. The attacker trains the RNN on stolen mouse data to learn the underlying distribution of the victim's movements, allowing it to generate realistic, continuous mouse sequences.
- Surrogate-based Attack: The attacker trains a local "substitute" classifier (the surrogate) using the victim's data as positive samples. They then apply the Fast Gradient Sign Method (FGSM)—a white-box adversarial technique—to perturb an arbitrary mouse sequence until it successfully fools the local surrogate. The goal is for this deception to transfer to the remote target model.
Experimental Setup and Datasets
The attacks were evaluated against two publicly available datasets representing different levels of complexity:
- Balabit Dataset: A relatively clean dataset containing data from 10 users, representing a less complex authentication environment.
- TWOS (The Wolf of SUTD) Dataset: A more challenging dataset from 23 users, featuring noisy data such as repeated timestamps and irregular coordinates.
Key Findings
The Challenge of Zero-Query Access
The absence of query access to the target model is a significant hurdle. Without feedback, generating adversarial behavioral data is considerably more difficult than in standard image-based attacks. We found that imitation-based attacks face a "hard ceiling"; their success rate is fundamentally limited by the accuracy of the target model itself, as they aim to replicate the legitimate distribution rather than exploit specific model weaknesses.
The Impact of Architecture Guessing
A critical vulnerability emerges if the attacker correctly guesses the architecture of the remote authenticator. When the surrogate model's architecture matches the target classifier (e.g., both are SVMs), the success rate of surrogate attacks increases dramatically. On the Balabit dataset, the Adversarial Success Rate (ASR) jumped to 92.1% against SVMs and 81.7% against 1DCNNs when architectures were matched.
Sequence Length and Identity Leakage
Our results indicate that longer mouse sequences (100 steps vs. 50 steps) generally lead to higher attack success rates. This suggests that a user's unique behavioral traits become more pronounced and easier for generative models to capture over longer time scales.
Results Summary
Neural network-based attacks consistently outperformed the statistical baseline. While the statistics-based attack achieved up to 61.5% ASR on the simpler Balabit dataset, it struggled on the noisier TWOS dataset (26-38%). In contrast, both Imitation and Surrogate attacks maintained higher efficacy, achieving approximately 38-43% ASR on the difficult TWOS dataset and up to 69% on Balabit under standard conditions.
Discussion and Proposed Defense
The primary limitation of surrogate attacks is "decision boundary mismatch." If the local surrogate architecture differs significantly from the remote target, the adversarial perturbations often fail to transfer.
To counter these threats, we propose a defense mechanism involving an ensemble of diverse authentication models. By deploying multiple models with vastly different architectures and randomly alternating between them, defenders can exploit the transferability gap. An adversarial sequence crafted to fool one specific architecture is likely to trigger high alert rates on others, effectively exposing the presence of an attack.
Summary updated