Can Virtual Reality Protect Users from Keystroke Inference Attacks?

Zhuolin Yang, Zain Sarwar, Iris Hwang, Ronik Bhaskar, Ben Y. Zhao, Haitao Zheng

TL;DR

Even though Virtual Reality (VR) promises physical separation and visual privacy, the expressive avatars needed for immersive collaboration inadvertently expose private keystrokes. By observing the noisy hand telemetry of a target’s avatar in a shared virtual room, an attacker can reconstruct typed text with up to 98% semantic fidelity—without physical access, known keyboard layouts, or victim-specific prior training data.

What Problem Does This Paper Address?

As VR moves into enterprise and remote work (e.g., Meta Horizon Workrooms, Apple Vision Pro), users frequently pair physical Bluetooth keyboards with their headsets to type sensitive messages and emails. Many assume that working behind a digital avatar shields them from traditional physical side-channel attacks like shoulder surfing or camera snooping.

However, modern VR platforms broadcast articulated hand and finger telemetry so avatars can realistically mirror user movements. Headset-based hand tracking is notoriously noisy—especially along the vertical depth axis—and typing styles vary drastically between individuals, causing standard cross-user machine learning models to fail. The authors ask: Can an adversary sharing a virtual space eavesdrop on physical typing purely by recording the noisy digital telemetry or 2D video of a remote user's avatar?

Methods

The authors introduce an end-to-end, self-supervised attack pipeline that bootstraps from noisy, unlabelled telemetry without needing prior data from the target or knowledge of the keyboard geometry.

Raw Telemetry (Horg / T3d / T2d)
      │
      ▼ (Coordinate Transformation / Stereo Reconstruction)
[ Component 1: Keystroke Detection ]
  - Step 1: Kinematic acceleration peak analysis (2-Gaussian mixture) → rough labels
  - Step 2: Spatial-temporal Transformer (DSTA-Net) with MixUp & label refurbishment
      │
      ▼
[ Component 2: Pressing Fingertip Identification ]
  - Step 1: Fingertip displacement heuristics → noisy labels
  - Step 2: Transformer trained to predict which finger pressed each key
      │
      ▼
[ Component 3: Keystroke Classification ]
  - Step 1: Spatial K-Means clustering (K=38) + Hidden Markov Model (HMM)
  - Step 2: Spatial/cluster consistency filtering removes noisy labels
  - Step 3: Fine-tuned 3D-CNN (ResNeXt-101) trained on filtered touchpoints
      │
      ▼
[ Post-Processing ]
  - Backspace cancellation heuristics + context-aware grammar/spell correction

The pipeline supports three distinct attacker threat models:

  1. Original Telemetry ($H_{org}$): Direct access to 46 3D hand joints from the target's headset or rendering server.
  2. Observed Telemetry ($T_{3d}$): Transformed 3D telemetry sent to the attacker’s headset from arbitrary viewpoints, normalized via 3D rotation matrices.
  3. Rendered Handpose ($T_{2d}$): 2D screen recordings of the target avatar. A single 2D viewpoint loses depth, but an attacker placing two virtual "sybil" cameras can reconstruct full 3D coordinates via stereo epipolar geometry.

Datasets

  • User Study Benchmark: Collected from 15 participants (ages 21–53, 7 male, 8 female) typing on a Meta Quest Pro paired with physical keyboards (Logitech K375s, Logitech MX Keys Mini, and Apple Magic Keyboard). Sessions averaged 500 words (~25 minutes) of realistic typing, including pauses and backspaces.
  • Typing Corpora: Evaluated across corporate emails (Enron dataset, including samples with numbers), scientific abstracts, and medical patent texts (250 to 500 words).
  • Prior Models / Training Corpora:
  • English character transitions for the HMM were calculated over 40,000 sentences from the CNN/DailyMail dataset.
  • The 3D-CNN keystroke classifier was pre-trained on the Jester human gesture dataset.

Key Insights and Ideas

  • Self-Supervision Overcomes Transferability Failure: Because individuals exhibit unique kinematic typing biometrics, cross-user models fail miserably (character error rate ~56%). Instead, bootstrapping self-labeled data directly from the current session allows the model to capture user-specific dynamics on the fly.
  • Transformers Tame Telemetry Jitter: Headset hand tracking introduces heavy, Gaussian-distributed depth noise ($y$-axis). Self-attention mechanisms model kinematic constraints across skeletal joints, successfully filtering out spurious tracking noise that defeats standard CNNs and statistical filters.
  • Multi-Camera Avatar Snooping: An attacker does not need network interception or system malware. By registering multiple benign avatars (sybils) in the same virtual room and capturing ordinary screen recordings from two perspectives, they can synthesize the underlying 3D telemetry using epipolar geometry.

Key Results

  • High Keystroke Recovery: Across 13 of the 15 participants, the attack accurately recovered 86% to 98% of typed keys. On average, character error rate (CER) was 8.7%, word error rate (WER) was 23.0%, and reconstructed text retained 71.5% semantic similarity to the original text.
  • Robust Across Settings: Performance held steady regardless of avatar distance (from 0.6 m to 2.4 m), keyboard dimensions, or vocabulary complexity (scientific and patent texts yielded ~80%–83% similarity).
  • Multi-View 2D vs. 3D: While a single-camera 2D attack degraded significantly (similarity ~0%), a two-camera 2D setup matched the fidelity of full 3D telemetry (WER ~17%–21%, similarity >80%).
  • Failure Modes: The attack underperformed on two users (P14 and P15) who typed with low finger lift (keeping fingers flat on the keys) or whose posture caused severe joint self-occlusions, generating excessive tracking error.
  • Defense Trade-offs: Adding zero-mean Gaussian noise ($\sigma = 0.3 \times$ key width) to the depth channel crippled the attack (WER rose from 14.2% to 55.4%; similarity collapsed to 14.1%) while preserving acceptable avatar visual fidelity. Reducing tracking rates below 15 fps also neutralized the attack, though both defenses degrade VR immersion.

Limitations and Future Work

  • Hybrid Model Dependency: The authors resorted to a pre-trained 3D-CNN for the final 29-class keystroke classifier because the self-curated character dataset was too small and class-imbalanced to train a transformer from scratch. Pre-trained, dual-hand skeletal transformers could streamline the pipeline in the future.
  • Computational Latency: End-to-end processing required ~423 minutes on an AMD EPYC server with an NVIDIA A40 GPU for a 19-minute session, making real-time interception currently infeasible.
  • Tracking Sensitivity: Users who rest their hands flat or exhibit minimal vertical finger displacement naturally evade the attack due to hardware tracking limits.

Summary updated

BibTeX
@inproceedings{yang2024can,
  author = {Zhuolin Yang and Zain Sarwar and Iris Hwang and Ronik Bhaskar and Ben Y. Zhao and Haitao Zheng},
  title = {{Can Virtual Reality Protect Users from Keystroke Inference Attacks?}},
  booktitle = {USENIX Security},
  year = {2024},
  url = {https://openreview.net/forum?id=rLKjuFi1Ro},
}
Figure