Towards Behaviometric Security Systems: Learning to Identify a Typist

Mordechai Nisenson, Ido Yariv, Ran El-Yaniv, Ron MeirPKDD 2003

Introduction

Traditional digital security relies heavily on "one-and-done" authentication methods, such as passwords or biometric scans at the initial login. However, these methods leave systems vulnerable to session hijacking if a terminal is left unattended or credentials are stolen. This paper proposes a "behaviometric" approach to security, focusing on continuous, non-intrusive authentication by identifying users through their unique typing rhythms. By leveraging keyboard hardware already present in every workstation, the system monitors user behavior in the background without interrupting their workflow.

Methodology

The authors treat typing behavior as a time-series problem, transforming raw keystroke data into a predictive model through three primary stages:

  1. Representation and Quantization: The system records key press and release events along with the time differentials ($\Delta$) between them. To convert continuous time data into a discrete format suitable for algorithmic processing, Vector Quantization is used to cluster these gaps into a finite set of symbols.
  2. Universal Prediction (LZ78): The Lempel-Ziv (LZ78) compression algorithm is employed to build a "phrase tree" of a user's typing patterns. In this context, the algorithm's ability to compress a sequence serves as a proxy for its ability to predict it; a model trained on a specific user will more efficiently "compress" new data from that same user.
  3. Algorithmic Enhancements: To overcome the "algorithmic amnesia" of standard LZ78, which resets context after every phrase, the authors introduced Back-shift Parsing (BSP) and Input Shifting. BSP allows the algorithm to maintain a short-term memory by shifting the parsing marker back by $m$ symbols, preserving prior context for the next phrase.
The modified LZ78 parsing logic. The parameter 'm' allows the algorithm to retain context by shifting the marker back after each phrase is parsed, effectively providing the model with short-term memory.

Experimental Setup

The study utilized a custom dataset collected via a modified Linux keyboard interrupt routine to ensure high-precision timing. The dataset included:

  • Participants: 5 primary users for training and 30 "attackers" for testing.
  • Content: A combination of fixed sentences (e.g., "To be or not to be...") and free-text entries to test the system's flexibility.
  • Volume: Primary users provided an average of 2,551 keystrokes, while attackers provided approximately 660. Evaluation was performed on segments of 100 keystrokes to determine how rapidly the system could detect an unauthorized user.

Key Results

The modified lz78(s, m) algorithm significantly outperformed the standard LZ78 baseline. The system achieved an average Self-ID accuracy of 94.75% and an attacker rejection (Defense) rate of 98.87%. The estimated Break-Even Point (BEP), where false alarms and missed detections are balanced, reached 96.77%.

Identification accuracy across different quantization levels (k_sigma). The enhanced model using back-shift parsing (m=1) maintains high accuracy over a much broader range of parameters compared to the standard LZ78 baseline (m=0).

As shown in the performance metrics, the introduction of even a single symbol of back-shift ($m=1$) provides a substantial boost in identification stability across various quantization resolutions ($k_\sigma$). These enhancements allow the system to remain effective even when training data is scarce, a common hurdle in real-world behavioral modeling.

Conclusion and Future Work

This research demonstrates that typing rhythms are a viable biometric signature for continuous authentication. By addressing the limitations of standard compression algorithms through BSP and input shifting, the authors created a model capable of high-accuracy identification in free-text scenarios. Future work will explore the temporal stability of these patterns over longer periods and investigate the use of relative timing differentials to account for daily variations in a user's typing speed due to fatigue or mood.

Summary updated

BibTeX
@inproceedings{nisenson2003towards,
  author = {Mordechai Nisenson and Ido Yariv and Ran El-Yaniv and Ron Meir},
  title = {{Towards Behaviometric Security Systems: Learning to Identify a Typist}},
  booktitle = {PKDD},
  year = {2003},
  doi = {10.1007/978-3-540-39804-2\_33},
}
Figure