Domain-Invariant and Language-Model-Assisted Acoustic Side-Channel Attacks on Keyboards

Maurya, Bikrant Bikram Pratap

–arXiv.org Artificial Intelligence 

Acoustic side-channel attacks (ASCA) recover typed text from the sound of keystrokes, using only a commodity microphone and no access to the victim's device. Prior work establishes that such attacks succeed under idealized laboratory conditions--a single keyboard, a fixed microphone, a quiet room, and training and testing on the same device-- but leaves open the question that matters for security: whether keystroke inference survives the open world of unseen keyboards, diverse users, noisy environments, and compressed transmission channels. The answer developed here is that it does, provided the acoustic model is made explicitly domain-invariant and its noisy predictions are corrected by a language model. The central contribution is Decker (Domain-invariant Embedding for Cross-Keyboard Extraction and Recognition), a keystroke-inference framework that unifies Keyboard Signature Normalization, domain-adversarial disentanglement, supervised cross-keyboard contrastive alignment, and Acoustic Style Randomization to produce embeddings that are discriminative of key identity yet invariant to keyboard, user, and environment. Decker narrows the cross-keyboard generalization gap from roughly forty accuracy points--the collapse suffered by strong unimodal and multimodal baselines that encode device identity rather than key identity--to under eighteen. A sentence-level attack then applies constrained-beam-search language-model decoding over the top-k acoustic candidates, substantially boosting recovery of coherent text and quantifying the risk for password classes of varying entropy. Two further contributions support and extend this result. Hear, the dataset underpinning every experiment, comprises keystroke acoustics from fifty-three participants on thirty-seven laptop keyboards, captured through an external microphone, the on-device microphone, and a Voice-over-IP (VoIP) channel, and annotated with demographic and user-awareness metadata.