Iterative Keystroke Continuous Authentication: A Time Series Based Approach

Abdullah Alshehri, Frans Coenen, Danushka BollegalaKünstliche Intell 2018

Abstract

Traditional Keystroke Continuous Authentication (KCA) systems often rely on complex statistical feature vectors, leading to high latency and significant data requirements. This paper introduces an iterative, time-series-based approach utilizing Dynamic Time Warping (DTW) to analyze keystroke flight times. By focusing on the global rhythmic "shape" of typing rather than local key-specific statistics, the proposed method achieves an average accuracy of 97.8% while operating orders of magnitude faster than traditional benchmarks. This approach enables real-time, text-independent authentication suitable for continuous monitoring in secure environments.

Introduction

In modern digital environments, initial login authentication is insufficient to prevent session hijacking or unauthorized access. Keystroke Continuous Authentication (KCA) provides a non-intrusive solution by monitoring user behavior throughout a session. However, conventional KCA methods typically employ "feature vectors"—statistical averages of timing for specific letter combinations (n-graphs). These methods suffer from high latency and require extensive training data to capture enough samples of specific key sequences.

Methodology

The proposed approach shifts the focus from local, key-specific features to global rhythmic patterns.

Keystroke Time Series Representation

Instead of analyzing specific key identities, the system treats the typing stream as a one-dimensional time series of flight times (the interval between consecutive key presses). This transformation allows the system to capture the underlying rhythm of a user's typing, regardless of the actual text being entered.

Flight time series for different subjects showing unique rhythmic signatures.

Dynamic Time Warping (DTW)

To compare these time series, the authors utilize Dynamic Time Warping (DTW). Unlike Euclidean distance, DTW can align sequences that vary in speed or timing by "warping" the time axis. This flexibility is crucial for recognizing a user's signature rhythm even when they type slightly faster or slower than their baseline.

Iterative Authentication and Noise Reduction

The system operates iteratively using a sliding window of 100 keystrokes. After an initial verification against a stored profile, the system continuously compares the current window to the previous one. To handle natural pauses (e.g., distractions), a threshold ($\phi = 1.25s$) is applied to cap unusually long flight times, preventing false alarms.

This contrasts with traditional methods that rely on matching specific n-graphs across different samples, which can be computationally intensive and data-dependent.

Illustration of n-graph matching in traditional rank-based authentication methods.

Results and Discussion

The time-series approach was evaluated against the Gunetti & Picardi (GP) baseline across three datasets (ACB, GP, and VHHS).

  • Accuracy: The proposed method achieved a mean accuracy of 97.8%, a substantial improvement over the baseline's 83.7%.
  • Efficiency: Verification time was reduced from an average of 140 seconds for the baseline to just 0.153 seconds in the worst-case scenario. This performance gain makes the system viable for true real-time continuous authentication.

Conclusion

By treating keystroke dynamics as a global time series rather than a collection of local statistics, this research demonstrates that high-accuracy, low-latency continuous authentication is achievable. Future work will explore multi-dimensional time series (including key "hold times") and optimized DTW variants to further enhance scalability and precision.

Summary updated

BibTeX
@article{alshehri2018iterative,
  author = {Abdullah Alshehri and Frans Coenen and Danushka Bollegala},
  title = {{Iterative Keystroke Continuous Authentication: A Time Series Based Approach}},
  journal = {Künstliche Intell},
  year = {2018},
  doi = {10.1007/s13218-018-0526-z},
}
Figure