Non-intrusive and Unconstrained Keystroke Inference in VR Platforms via Infrared Side Channel

Tao Ni, Yuefeng Du, Qingchuan Zhao, Cong Wang

TL;DR

Researchers have uncovered a novel side-channel vulnerability in mainstream VR systems called VRecKey. By intercepting the infrared (IR) signals that VR controllers emit for tracking, an attacker can non-intrusively reconstruct a user's virtual keystrokes from up to 4 meters away with over 90% accuracy.

What Problem Does This Paper Address?

As Virtual Reality (VR) moves from gaming into productivity and social spaces, users frequently enter sensitive information like passwords and private messages on virtual keyboards. While previous research has shown that this input can be "sniffed" via malware, motion sensors, or video recordings of hand gestures, these attacks often require compromising the device or having a clear line-of-sight in well-lit conditions.

This paper identifies a neglected and highly scalable side channel: Infrared (IR) leakage. Most commercial VR headsets (like the Meta Quest or PICO series) use "constellation tracking," where the headset’s cameras track IR LEDs embedded in the handheld controllers. The authors discovered that these IR signals aren't just seen by the headset; they flood the surrounding environment, carrying precise spatial and temporal data about the user's typing movements that can be captured by a simple, low-cost sensor array.

Fig. 1: Illustration of VRecKey attack: The victim types the virtual keyboard to input the keystroke “HELLO”. Meanwhile, the attacker leverages a 2D IR sensor array to capture the IR signals emitted to the ambient environment and reconstruct the heatmaps to infer the virtual keystroke and its trajectory.

Methods

The authors developed VRecKey, an end-to-end attack framework consisting of a custom-built 2D IR sensor array (costing roughly $120) and a multi-stage inference pipeline:

  1. Signal Capture: A 4x10 array of IR sensors intercepts the 38kHz modulated signals emitted by the VR controllers.
  2. Typing Event Identification: The system uses the statistical skewness of IR signal fluctuations to distinguish between active typing and idle movements with 99.3% accuracy.
  3. Coordinate Calibration: Since virtual keyboards can be positioned anywhere in 3D space, VRecKey uses a model-free geometric approach to estimate the "keyboard plane" and project 2D sensor data onto it.
  4. Heatmap Generation: By extracting time- and frequency-domain features from the IR signals, the system generates heatmaps that visualize the controller's trajectory across the virtual keys.
  5. Keystroke Recovery: Finally, the system analyzes the typing path and speed. It integrates a Large Language Model (LLM), specifically ChatGPT, to perform semantic and grammatical refinement, correcting "noisy" character inferences into coherent words or passwords.

Datasets

The study evaluated VRecKey using:

  • Hardware: Two major commercial VR platforms: Meta Oculus Quest 2 and PICO 4 All-in-One.
  • Participants: 25 volunteers (15 male, 10 female) who performed over 3,100 single-key presses and typed 1,500 word-level sequences.
  • Vocabulary: Words were randomly selected from the Cambridge English vocabulary list, ranging from 1 to 15 characters in length.

Key Insights and Ideas

  • The "Constellation" Vulnerability: The very mechanism that makes modern VR tracking so precise—the ring of IR LEDs on the controller—is what makes it vulnerable. These LEDs act as a beacon, broadcasting the controller's exact position to anyone with an IR receiver.
  • Model-Free Scalability: Unlike many previous attacks that require training complex Deep Neural Networks (DNNs) for every specific user or keyboard layout, VRecKey uses geometric projection and heatmaps. This makes it much easier to adapt to different devices and environments.
  • Environmental Resilience: Because it relies on IR, the attack works perfectly in total darkness—a scenario where traditional camera-based attacks would fail. It can even succeed by capturing IR signals reflected off a TV screen or glass wall, meaning the attacker doesn't even need a direct line-of-sight to the victim.
Fig. 2: Illustration of infrared LEDs embedded in commodity VR controllers (denoted as blue dots on the ring) and the constellation tracking system in VR devices (§ II-A).

Key Results

VRecKey demonstrated impressive performance across various real-world conditions:

  • Accuracy: Achieved 85.8% Top-1 and 94.2% Top-3 accuracy for character-level recognition. For full words, it reached 81.7% Top-1 and 90.5% Top-3 accuracy.
  • Distance: Remained effective at distances between 2.0m and 4.0m.
  • Stealth: The attack was successful even when the sensor array was hidden behind a one-way privacy film.
  • Robustness: The system proved resilient to variations in typing speed, user movement, and different controller orientations.

Limitations and Future Work

While potent, VRecKey has a few hurdles:

  • Signal Attenuation: The attack's range is currently limited to about 4-5 meters because the IR LEDs in VR controllers are designed for short-range communication with the headset.
  • Controller-less VR: Newer devices like the Apple Vision Pro use hand-tracking without controllers. Since there are no IR-emitting LEDs on the user's bare hands, VRecKey is currently ineffective against these systems.
  • Defenses: The authors suggest that manufacturers could implement IR encryption (modulating the IR pulses in a pseudo-random pattern) or use shuffled virtual keyboards to mitigate the threat. However, they note that these defenses might increase latency or decrease the usability of the VR experience.

Summary updated

Abstract

Virtual Reality (VR) technologies are increasingly employed in numerous applications across various areas. Therefore, it is essential to ensure the security of interactions between users and VR devices. In this paper, we disclose a new side-channel leakage in the constellation tracking system of mainstream VR platforms, where the infrared (IR) signals emitted from the VR controllers for controller-headset interactions can be maliciously exploited to reconstruct unconstrained input keystrokes on the virtual keyboard non-intrusively. We propose a novel keystroke inference attack named VRecKey to demonstrate the feasibility and practicality of this novel infrared side channel. Specifically, VRecKey leverages a customized 2D IR sensor array to intercept ambient IR signals emitted from VR controllers and subsequently infers (i) character-level key presses on the virtual keyboard and (ii) word-level keystrokes along with their typing trajectories. We extensively evaluate the effectiveness of VRecKey with two commercial VR devices, and the results indicate that it can achieve over 94.2% and 90.5% top-3 accuracy in inferring character-level and word-level keystrokes with varying lengths, respectively. In addition, empirical results show that VRecKey is resilient to several practical impact factors and presents effectiveness in various real-world scenarios, which provides a complementary and orthogonal attack surface for the exploration of keystroke inference attacks in VR platforms.
BibTeX
@inproceedings{ni2025non,
  author = {Tao Ni and Yuefeng Du and Qingchuan Zhao and Cong Wang},
  title = {{Non-intrusive and Unconstrained Keystroke Inference in VR Platforms via Infrared Side Channel}},
  booktitle = {NDSS},
  year = {2025},
}
Figure