Can virtual reality protect users from key inference attacks?Can Virtual Reality Protect Users from Keystroke Inference Attacks?
The authors propose an attack that infers keystrokes in a shared VR space by observing the other party's avatar hand telemetry; 13 of 15 users had 86%-98% of their keystrokes accurately recognized.
Attacker A is a VR user in the same virtual environment as target U, and can only obtain U's avatar telemetry data (raw 3D telemetry Horg, transformed 3D telemetry T3d(PoV), or 2D handpose T2d(PoV) extracted from screen recording); A knows the language U uses (English), but does not know the keyboard layout or position, has no labeled data or prior observations of U, and has no other side-channel information.
- VR is considered to provide privacy protection through avatars, but in a shared virtual environment, can other users infer what the target is typing on a physical keyboard merely by observing the avatar's hand movements? The authors consider this a real privacy threat brought by VR immersion.
- The authors design a componentized self-supervised attack pipeline: first, statistical and motion analysis is used to self-label telemetry frames; then a transformer keystroke detector, a transformer pressed-finger identifier, and a 3D-CNN key classifier are trained separately, and coordinate transformation is used to support attacks on three forms of telemetry data.
- The IRB-approved 15-person user study shows that the raw telemetry attack accurately recognized 86%-98% of keystrokes for 13 users, and the recovered content retained 50%-98% of the semantics; the dual-camera rendered handpose attack performed close to the observed telemetry attack; adding noise and downsampling can weaken the attack but harm the immersive experience.
- The authors note that the keystroke classifier can only use a 3D-CNN rather than a transformer because the self-labeled training data is limited and class-imbalanced, and no pretrained transformer for two-hand telemetry could be found. The experiments cover only 15 English-typing users, Meta Quest Pro, and three physical keyboards.
- Benchmarks
- Enron email datasetCNN/DailyMailJester
- Metrics
- CERWERSimilarity (CopyLeaks plagiarism detection score)
The researchers designed and implemented a new set of key inference attacks in a shared virtual environment, recovering the target user's input by observing the hand-motion telemetry of their avatar. The attacker needs neither knowledge of the keyboard layout nor labeled data collection to identify the pressed keys and reconstruct the input from the noisy telemetry displayed by the avatar. In an IRB-approved user study covering multiple VR scenarios, 13 of 15 participating users had key identification rates of 86%-98%, and the reconstructed content retained up to 98% of the semantics of the original input. The paper points out that this vulnerability stems precisely from the greatest strength of VR immersive interaction, and discusses potential defenses.
Paper analysis
What problem does this paper attempt to solve?
In a shared VR environment, can an attacker recover what the target avatar types on a physical keyboard solely by observing the avatar's hand telemetry?
Core question: in a shared virtual environment, can one VR user infer what another user types on a physical keyboard solely by observing the hand movement telemetry displayed by the other user's avatar.
- Scenario and importance: VR remote work is rising, and physical keyboards connected to headsets via Bluetooth have become a common input method; the authors argue that VR's immersion actually facilitates side-channel attacks—a single attacker can attack many remote victims without physical proximity.
- Shortcomings of existing methods: physical side-channel attacks (microphones, cameras, WiFi, etc.) require placing sensors near the target and are mostly ineffective for VR scenarios; existing keystroke inference attacks against VR all target virtual keyboards and assume the virtual keyboard layout is known and often have labeled data; transferability-based attacks fail because typing behavior is highly individualized (§2.1, §4.2).
- Core observation: the hand telemetry displayed by avatars, although noisy (the authors report that over 50% of keystroke instances have depth errors exceeding 2× key height), still carries key information; self-attention mechanisms can extract key patterns from noisy data.
- Paper contributions: the authors propose keystroke inference attacks under three levels of information access and a componentized self-supervised learning pipeline, validated through an IRB-approved user study; the authors claim this is the first work to explore the feasibility of keystroke inference attacks in a shared VR environment.
- Threat model:
- Goal: recover the text content that target U types on a physical keyboard.
- Knowledge: attacker A knows only the language U uses (English in this study); does not know the keyboard layout or position, has no labeled data or prior observations of U, and has no other side-channel information.
- Capability: A is a VR user in the same virtual environment and can obtain U's avatar telemetry data, divided by access level into three attacks: raw 3D telemetry Horg (Attack I, strongest, requires access to the target headset or rendering server), transformed 3D telemetry T3d(PoV) (Attack II, virtual camera observation), and 2D handpose T2d(PoV) extracted from screen recording (Attack III, most restricted).
- Victim system: a VR user typing on a physical keyboard (connected to the VR headset via Bluetooth) in a shared virtual environment.
What related research exists?
Related work falls into three categories: physical side-channel keystroke attacks, network traffic analysis attacks, and keystroke attacks targeting VR users; the key difference between this paper and them is that the attacker is only a VR user in the same virtual space.
Physical keystroke inference attacks
- Zhuang et al. [62] (2005)—placed a microphone near the target to capture the keystroke sounds of a mechanical keyboard and trained a machine learning model to recognize keys; subsequent work replaced the microphone with IMUs, WiFi/LTE radio, EM sniffers, and other sensors.
- Vision-based attacks [8, 34, 43, 47, 56, 59]—used cameras to capture the screen, the target's eyes, or the pressing fingertips reflected in glasses, or the reflective typing surface (such as a tablet), to infer input.
- The paper points out that such physical attacks are mostly ineffective in VR scenarios: a VR attacker cannot place sensors in the target's physical space, and many physical attacks require knowledge of the keyboard and its layout, which a VR attacker cannot obtain.
Remote traffic analysis attacks
- Song et al. [49] (2001)—analyzed encrypted SSH traffic, inferring password length from packet counts and estimating content from packet inter-arrival times; the paper points out that this attack applies only to SSH sessions.
Keystroke attacks against VR users
- Ling et al. [36] (2019), Meteriz-Yildiran et al. [50] (2022), Al Arafat et al. [5] (2021), Luo et al. [37] (2022)—all target VR users typing on a virtual keyboard, using methods such as deploying stereo cameras or WiFi devices near the target or installing malware on the target's headset. The paper points out that these attacks assume complete knowledge of the virtual keyboard layout and screen position, and often require labeled data from the target.
Work directly compared with this paper
- Yang et al. [58] (USENIX Security 2023)—performed keystroke inference on video recordings of the target's physical hands: first hand tracking to locate fingertips, then HMM statistical analysis to estimate labels for some frames, and training a CNN to recognize keystrokes in all frames. The paper points out that applying this method to this paper's scenario would fail, because this paper's attack data are noisy hand tracking results estimated by the VR headset, with a higher noise level than the raw video used in [58] (§5.1); Table 5 reports the comparison results of this method on 15 users.
- Meier et al. [39] (TapID)—proposed placing an additional IMU on the user's wrist and collecting labeled data to train a DNN for finger recognition; the paper points out that this is infeasible in this paper's attack scenario.
Baselines and benchmarks: the baseline methods compared in the paper are (1) unsupervised inference based purely on statistical analysis, (2) transferability-based attacks (§4.2), and (3) the attack design of [58]; the data used in the experiments include the Enron email dataset [17] (typing content), CNN/DailyMail [19] (training the HMM transition matrix), and Jester [38] (pretraining the 3D-CNN).
The authors position this paper as: the first keystroke inference attack in a shared VR environment where the attacker is only an ordinary VR user, requiring no physical observation, no keyboard layout knowledge, and no labeled data (as stated by the authors).
How does the paper address this problem?
Componentized self-supervised pipeline: first statistically analyze and self-label data, then train DNNs in three components (keystroke detection, pressing-finger identification, key classification); coordinate transformation supports three attack forms.
Overall approach: split keystroke inference into three sequential components; each component first self-labels training data using statistical/motion analysis, then trains a component-specific DNN with noise-aware training techniques, progressively extracting keystroke information from noisy telemetry and controlling error propagation. The method is named the componentized self-supervised learning pipeline (Figure 5).
Design rationale
- Telemetry noise analysis (§4.1): Horg contains (x,y,z) coordinates of 46 joints across both hands (23 per hand); the authors report that for two users, over 50% of keystroke instances have depth error exceeding 2 times the key height, and in over 30% of instances at least one non-pressing fingertip is incorrectly reported as lower than the pressing fingertip (Figure 4).
- Failed alternatives (§4.2): denoising (the noise passes a KS test for Gaussian distribution, p>0.5), manual inspection, transferability attacks (under leave-one-out cross-validation, character error rate for new users is 56%±11%, whereas for trained users it is <10%), and pure statistical analysis all failed.
- Two key design decisions (§5.1): first, use the transformer's self-attention mechanism to learn dependencies among hand joints and focus on task-relevant joints; second, split the task into three components and train a transformer for each, so that each model focuses on a subtask and is thus usable with limited data.
Component one: keystroke frame detection (§6.1)
- Self-labeling: exploit the pattern in which the second derivative of the depth coordinate of the pressing finger shows a positive peak during a keystroke; model the peak sequence as a mixture of two Gaussian distributions and take the equal error rate decision threshold.
- Model: adopt DSTA-Net [46] (a skeleton-based gesture recognition architecture), modified to support both hands and trained from scratch for binary classification; input is a 16-frame telemetry segment (7 frames before the keystroke frame + 8 frames after).
- Noise-aware training: mixup data augmentation [60]; bootstrapping-based label refurbishment [6], which increases the weight of the model's own predicted label for high-probability noisy labels.
Component two: pressing fingertip identification (§6.2)
- Self-labeling: the pressing finger has the largest displacement at the keystroke moment relative to its average position over the whole sequence; the pressing fingertip is labeled accordingly.
- Model: likewise train a transformer (16-frame input) to predict the pressing finger; if the proportion of noisy labels is too high and degrades clustering results, this transformer is abandoned (judged by the clustering output).
Component three: key identification (§6.3)
- Self-labeling: build a contact bitmap from the 3D coordinates of the pressing fingertip, and obtain a cluster ID sequence via K-Means clustering (K=38); use an HMM to map the cluster sequence to 29 keys (26 letters + period, comma, space), with the HMM transition matrix estimated from 40,000 sentences from CNN/DailyMail and the emission matrix learned with the E-M algorithm; then filter erroneous labels using the consistency check of [58].
- Model: because the filtered training set is small and class-imbalanced, abandon the transformer and instead use a 3D-CNN (ResNext-101 [55]) pretrained on the Jester dataset; convert hand joint data into images ((x,z) as pixel positions, (x,y,z) as pixel values).
Coordinate transformation and end-to-end inference (§6.4, §6.5)
- Attack II: apply a 3D rotation to T3d(PoV) (dot product with a standard rotation matrix) to convert it to an approximation of Horg, then feed it into the pipeline.
- Attack III: a single T2d loses too much information, so the attacker collects two T2d streams with two virtual cameras at different PoVs and recovers depth based on stereo epipolar geometry; the paper mentions this can be implemented with multiple sybil accounts.
- Inference stage: use only detector D and classifier C (F is used only to produce cleaner training labels); finally, use Google Docs' spelling and grammar check tool for contextual error correction (automated with Selenium).
What experiments did the paper conduct?
IRB-approved 15-person user study: the raw telemetry attack recognized 86%-98% of keystrokes for 13 people; the dual-camera rendered attack was close to the observed telemetry attack; adding noise as a defense can increase WER but harms immersion.
Experimental setup
- Subjects: 15 user study participants (age 21-53, 7 male and 8 female), all wearing Meta Quest Pro headsets, using a Logitech K375s physical keyboard by default (Bluetooth-connected), each with a typing session of about 25 minutes and about 500 words (§7.1).
- Typing content: by default, an average of 26 email sentences randomly selected from the Enron email dataset [17]; also scientific paper abstracts and medical patent text.
- Attack data: three forms—Horg, T3d(PoV), T2d(PoV), with a sampling rate of about 60Hz; PoV is the attacker's virtual camera pose (Figure 6).
- Baselines: pure statistical analysis unsupervised inference, transferability attack (trained with the true labels of the other 14 users, and assuming perfect keystroke detection for the target, which the authors call the best case for the transfer attack), and the attack design of [58] (reproduced using source code obtained by the authors).
- Metrics: CER (minimum edit distance/text length), WER (Hugging Face library, word-level edit distance), Similarity (CopyLeaks plagiarism detection similarity, 0-100%).
- Training data volume: varies by user; Appendix Table 8 lists the number of frames used to train D and C and the number of inference frames for each user (e.g., P1 used 2925 keystroke frames to train D and 181394 frames for inference).
Main results
Table 1 (single target participant, three attack forms):
Swipe horizontally to read the table
Attack type Data PoV CER(%) WER(%) Sim.(%) Raw telemetry Horg – 4.7 14.2 87.4 Observed telemetry T3d(PoV) (0,0) 6.6 21.6 80.4 Observed telemetry T3d(PoV) (15,0) 5.8 18.0 86.1 Single-camera rendering T2d(PoV) (0,0) 29.3 78.0 0.0 Dual-camera rendering T2d(0,0)&T2d(15,0) – 7.6 21.2 79.0 Dual-camera rendering T2d(0,0)&T2d(30,0) – 5.0 17.4 84.1 (According to Table 1; observed telemetry was tested at 7 PoVs in total and dual-camera rendering at 4 combinations in total; only some are shown here per column, see Table 1 for complete data)
- The authors state that the raw telemetry attack is the most effective, the observed telemetry attack is consistently effective across 7 PoVs (recovering about 78% of words), the single-camera rendered attack is ineffective while the dual-camera rendered attack is comparable to the observed telemetry attack; Appendix Table 7 confirms the same trend on two other participants.
- The authors consider the dual-camera rendered attack especially alarming: the attacker only needs to record the screen as an ordinary VR user, without compromising the server or headset.
Table 5 (15 users, raw telemetry attack, this paper's method): CER ranges from 1.2% for P1 (Sim. 97.6%) to 15.9% for P15 (Sim. 19.7%); 13/15 users had 86%-98% of their keystrokes accurately recognized, and the recovered text retained 50%-98% of the semantics; on average 91.3% of keystrokes were recognized and 71.5% of semantics retained (§1).
Effectiveness under different VR settings (§7.3)
- Avatar distance: 0.6m is the baseline (CER=3.8%), and the CER differences at 1.2m/1.8m/2.4m are −0.17/−0.06/+0.03 percentage points respectively (Table 2); the authors state that virtual distance does not affect attack effectiveness.
- Keyboard type: CER on the Logitech K375s, Logitech MX Keys Mini, and Apple Magic keyboards was 4.7%, 6.2%, and 6.6% respectively (Table 3); the authors state the attack succeeds on all three keyboards.
- Content type and length: paper abstract (509 words, CER 5.2%), patent (501 words, CER 4.6%), email (501 words, CER 4.7%; 262 words, CER 5.4%), email containing numbers (488 words, CER 5.5%) (Table 4); the authors state that number keys, being physically separated from letter keys, are filtered by the consistency check and have little impact.
Comparison with other approaches (§7.5)
- Pure statistical analysis baseline: CER across the 15 users is generally much higher than this paper's method (e.g., P2 20.0% vs. 4.7%, P15 54.5% vs. 15.9%) (Table 5).
- Transferability attack baseline: WER for all 15 users is between 33.9%-100%, with Similarity 0.0% for most (Table 5); the authors state the failure is because typing behavior is highly individualized.
- Method of [58]: CER ranges from 8.0% (P3) to 62.4% (P15), with Similarity 0.0% for most users (Table 5); the authors state that this paper's attack data is noisier than the raw video handled by [58], causing its method to fail.
Defense evaluation (§8)
- Restricting telemetry access: when the sampling rate drops from 60fps to 15fps, WER rises from 14.2% to 38%; at 6fps the attack fails (the paper does not give specific metric values for 6fps).
- Adding noise: adding zero-mean Gaussian noise to the Horg depth axis, at STD 0.3× key width, CER rises from 4.7% to 20.1%, WER rises to 55.4%, and Similarity drops to 14.1%; at STD 0.5× key width, WER reaches 71.4% and Similarity is 0.0% (Table 6).
- Cost: by the authors' visual observation, under moderate noise the avatar's typing behavior still looks normal, while under high noise the typing speed appears noticeably faster; both defenses desynchronize the physical hand movements from the avatar, creating a trade-off between usability and security (per the authors).
Other ablations and analyses
- Failure cases: P14 was worse because the hand tracker could not accurately track the x and z values of the pressing fingertips (Figure 7 shows far more overlapping keystroke contact points than P1), and P15 was worse because the fingers are very close in height when pressing keys and the y-axis data is noisy (§7.4).
- Attack runtime: the end-to-end attack on a 500-word, 19-minute session took 423 minutes on an AMD EPYC 7313P server + a single NVIDIA A40, of which CNN classifier training took 259 minutes, the detector 79 minutes, the finger recognizer 64 minutes, clustering and HMM 3 minutes, and spell checking 11 minutes (§7.6).
- Vulnerable characteristics: the authors observe that users with large typing motion amplitudes and body postures and hand orientations that reduce finger self-occlusion are more vulnerable to the attack (§7.4).
What are some points that can be further explored?
The main limitation noted by the authors is that the keystroke classifier can only use a 3D-CNN (self-labeled data is limited and imbalanced); in the future, pretrained transformers may improve the attack.
Limitations and future directions noted by the authors
- Keystroke classifier architecture is constrained (§9 Limitations and Future Work): the authors write that the main limitation of the attack pipeline is that the key recognizer ultimately chose a 3D-CNN rather than a transformer, because this component's self-labeled training data is very limited and class-imbalanced; the 3D-CNN was usable because it had been pretrained on a large gesture recognition dataset [38].
- Lack of a pretrained transformer for two-hand telemetry (§9): the authors write that they could not find a pretrained transformer model or large dataset for two-hand telemetry data, and believe that as transformers are applied to non-NLP domains, future pretrained models may make the attack more effective.
Scope of experiments
- Users tested: 15 participants (age 21-53, 7 male and 8 female), typing content in English (the threat model assumes the attacker knows the target language, which in this study is English) (§7.1, §7.4).
- Devices tested: the headset was only Meta Quest Pro; three physical keyboards were tested: Logitech K375s, Logitech MX Keys Mini, and Apple Magic (§7.1, Table 3).
- Attack forms: covered Horg, T3d at 7 PoVs, and T2d with single and dual cameras; the multi-user experiment (Table 5) covered only the raw telemetry attack, and the multi-user validation of T3d/T2d in Appendix Table 7 covered only 2 participants.
- Defense evaluation: tested two defenses: downsampling (60fps→15fps→6fps) and adding two levels of Gaussian noise to the Horg depth axis (0.3×, 0.5× key width) (§8).
- Information not reported: the paper does not report the number of repetitions per experimental condition or statistical significance tests; the experiments in Table 1-4 all use a single participant as the target (the paper states this is for consistency).
Summarize the main content of the paper
The authors propose a keystroke inference attack in a shared VR space based on avatar hand telemetry; 13 of 15 users had 86%-98% of their keystrokes recognized, and they discuss defenses such as adding noise and their costs.
A paper on VR side-channel privacy attacks: the authors study whether, in a shared virtual environment, an ordinary VR user can recover what another user types on a physical keyboard solely by observing the other's avatar hand movements.
- Problem: VR's immersion relies on expressive avatars rendering hand movements in real time, which the authors argue instead facilitates remote keystroke inference—the attacker needs no physical proximity and no sensor placed in the target's space.
- Method: a componentized self-supervised learning pipeline that decomposes keystroke inference into three components: keystroke frame detection, pressing fingertip identification, and key recognition; each component first performs statistical/motion analysis to self-label data, then uses noise-aware training (mixup, label refurbishment) to train component-specific models (the first two are DSTA-Net transformers, the third is a Jester-pretrained ResNext-101 3D-CNN); coordinate transformation and dual-camera stereo geometry support attacks on three data forms: Horg, T3d(PoV), and T2d(PoV).
- Main results:
- In the IRB-approved study with 15 users, the raw telemetry attack accurately recognized 86%-98% of keystrokes for 13 people, and the recovered text retained 50%-98% of the semantics, with an average recognition rate of 91.3% (Table 5).
- On a single target, the raw telemetry attack achieved CER 4.7% and Similarity 87.4%; the dual-camera rendered attack (requiring only screen recording) performed close to the observed telemetry attack (Table 1).
- The attack remained effective across avatar distances of 1.2m-2.4m, three physical keyboards, and different text types (email/paper/patent) (Table 2-4).
- Compared baselines: pure statistical analysis, transferability attack, and the method of [58] were all clearly worse on the same data (Table 5).
- Defense: reducing the sampling rate to 6fps can defeat the attack; adding 0.5× key-width Gaussian noise to the depth axis reduced Similarity to 0.0%, but the authors state this would desynchronize avatar movements from the real hands, creating a trade-off between usability and security.
- Authors' conclusion: the authors claim this is the first keystroke inference attack in a shared VR environment, and point out that VR system design needs to trade off immersive experience against personal/information security; the main limitation is that the keystroke classifier is constrained to a 3D-CNN by the scale and class imbalance of self-labeled data.
Related papers
- The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural NetworksAnalysis / interpretabilityarXiv