Password-Stealing without Hacking: Wi-Fi Enabled Practical Keystroke Eavesdropping

Jingyang Hu, Hongbo Wang, Tianyue Zheng, Jingzhi Hu, Zhe Chen, Hongbo Jiang, Jun Luo

Abstract

Wi-Fi sensing has long promised the ability to detect human activity, but practical keystroke eavesdropping has remained elusive due to the need for hardware-level access and poor cross-environment generalizability. This paper introduces WiKI-Eve, a non-intrusive system that exploits clear-text Beamforming Feedback Information (BFI) to intercept smartphone keystrokes. By employing adversarial machine learning and sparse signal recovery, WiKI-Eve achieves high accuracy across diverse environments without requiring device compromise or network authentication.

Introduction

For years, researchers have demonstrated that Wi-Fi signals are sensitive enough to "see" human movement, including the minute finger movements of someone typing on a smartphone. Traditionally, these attacks rely on Channel State Information (CSI). However, CSI-based methods suffer from a significant "practicality gap": they typically require hacking Wi-Fi hardware (firmware or drivers) to extract data, a task that is increasingly difficult on modern, locked-down devices. Furthermore, these systems often fail when moved to a new environment or used by a different person because signal patterns change drastically based on room layout and individual typing styles.

WiKI-Eve addresses these challenges by shifting the focus from CSI to Beamforming Feedback Information (BFI) and utilizing domain-invariant machine learning techniques to ensure the attack works in the real world.

The BFI Vulnerability

In modern Wi-Fi standards (Wi-Fi 5 and later), devices use beamforming to direct signals toward each other. To facilitate this, the smartphone sends "feedback" to the Access Point (AP) regarding channel conditions. Crucially, this BFI is often transmitted in clear-text within control frames. Any device in "monitor mode"—such as a standard laptop—can sniff these frames out of the air without ever connecting to the target network.

Beyond accessibility, BFI offers a technical advantage: it acts as a compressed version of CSI that is naturally more stable for keystroke sensing. It filters out much of the high-frequency noise that plagues raw CSI, making the physical "hit" of a finger on a screen more distinct and easier for a model to identify.

System Architecture

The WiKI-Eve pipeline consists of four primary stages designed to turn raw radio signals into stolen passwords:

  1. Victim Identification: The system matches MAC addresses with physical behavior or monitors unencrypted IP traffic to time the attack, such as detecting a request to a payment service like WeChat Pay.
  2. Overlapping Segmentation: Instead of using fixed time windows, the authors use a data-driven approach to "cut" the signal into keystrokes. This captures the peaks of finger hits and the transitions between them, preserving more temporal information than traditional methods.
  3. Adversarial Learning: To solve the generalizability problem, the researchers used a 1-D Convolutional Neural Network (CNN) paired with a Gradient Reversal Layer (GRL). This setup forces the model to ignore "domain-specific" features (like the specific room layout) and focus only on the "domain-invariant" features of the keystroke itself. By training the model to fail at identifying the room while succeeding at identifying the key, the system becomes robust across different environments.
  4. Sparse Recovery (SRA): Wi-Fi traffic can be bursty. If a phone is not actively transmitting, signal data is lost. WiKI-Eve implements a Temporal Convolutional Network (TCN) based autoencoder to reconstruct missing signal data during these low-traffic periods.

Experimental Evaluation

The researchers conducted an extensive evaluation involving 20 participants and three modern flagship smartphones (iPhone 13, Samsung Galaxy S20, and Google Pixel 6a). Testing took place across six distinct real-world locations, including a library, cafeteria, and auditorium.

Key Results

  • Individual Keystrokes: WiKI-Eve achieved 88.9% accuracy in identifying single numerical keys.
  • Password Stealing: For 6-digit passwords, the system reached an 85% accuracy within 100 attempts.
  • Live Application: In a test against WeChat Pay, the system achieved a 65.8% top-10 accuracy, meaning the correct password was among the 10 most likely candidates more than half the time.
  • Range: The attack remains effective even when the attacker is positioned 10 meters away from the victim.
  • QWERTY Extension: While more difficult due to key density, the system achieved approximately 40% accuracy on full alphanumeric keyboards, significantly outperforming previous baselines.

Limitations and Defense

Despite its efficacy, WiKI-Eve has limitations. It relies on the smartphone sending BFI frames; if a device is completely idle with no background data usage, there is insufficient signal to perform the attack. Additionally, the attacker must accurately time the start of the typing session.

To defend against such eavesdropping, the authors suggest several strategies:

  • Protocol Updates: Encrypting Wi-Fi management and control frames to prevent BFI sniffing.
  • UI Randomization: Using randomized keyboard layouts so that the physical location of a key changes with every use.
  • Signal Scrambling: Incorporating physical-layer signal scrambling in future Integrated Sensing and Communication (ISAC) standards to thwart unauthorized sensing.

Conclusion

WiKI-Eve demonstrates that the very features designed to make Wi-Fi faster and more reliable—like beamforming—can be weaponized to compromise user privacy. By moving the attack to the protocol level and using adversarial learning, the researchers have shown that keystroke eavesdropping is no longer just a laboratory curiosity, but a practical threat to mobile security.

Summary updated

BibTeX
@inproceedings{hu2023password,
  author = {Jingyang Hu and Hongbo Wang and Tianyue Zheng and Jingzhi Hu and Zhe Chen and Hongbo Jiang and Jun Luo},
  title = {{Password-Stealing without Hacking: Wi-Fi Enabled Practical Keystroke Eavesdropping}},
  booktitle = {CCS},
  year = {2023},
  doi = {10.1145/3576915.3623088},
}
Figure