QUACK! Making the (Rubber) Ducky Talk: A Systematic Study of Keystroke Dynamics for HID Injection Detection
Alessandro Lotto, Francesco Marchiori, Mauro Conti

TL;DR
This paper systematically studies keystroke dynamics to detect HID injection attacks, demonstrating that timing-based models can effectively distinguish human input from automated attacks without compromising privacy.
Contribution
It introduces a novel approach for human-vs-machine discrimination using lightweight timing models, independent of user identity and content access.
Findings
Robust detection achievable with simple timing features and lightweight models.
Attackers' evasion success does not increase monotonically with sophistication.
Trade-offs identified between detection speed and reliability based on keystroke sequence length.
Abstract
Modern computing systems inherently trust human input devices, creating an exploitable attack surface for adversarial automation. USB Human Interface Device (HID) emulation attacks, such as those enabled by the USB Rubber Ducky, exploit this assumption to inject arbitrary keystroke sequences while bypassing traditional defenses. Existing countermeasures rely on simple heuristics based on typing speed or timing regularity, which can be easily evaded through basic randomization. Keystroke dynamics analysis offers a more robust alternative by modeling temporal typing behavior. However, prior work frames this problem as behavioral authentication, verifying whether input originates from a specific user rather than detecting automated injection. An alternative approach is continuous monitoring via keylogging integrated with intrusion detection systems, but this requires access to input…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
