TL;DR
This paper exposes critical security vulnerabilities in Extended Reality (XR) systems that integrate Large Language Models (LLMs), such as smart "AI glasses." By manipulating the public context—either through physical environment modifications or malicious third-party software libraries—attackers can subtly alter LLM inputs to generate dangerous, misleading, or malicious visual and auditory feedback. The authors demonstrate these vulnerabilities through successful proof-of-concept attacks across four major commercial and open-source XR platforms.
What Problem Does This Paper Address?
Extended Reality (XR) technologies (VR, AR, and MR) are rapidly converging with Large Language Models and Vision-Language Models (VLMs) to create context-aware, interactive environments. Devices like Meta Ray-Ban smart glasses or applications built for Apple Vision Pro use these models to understand the user's surroundings, answer queries, and even generate executable 3D content in real time.
However, this integration introduces a dangerous security gap. While traditional XR security focuses on hardware tracking and rendering flaws, and standard LLM security focuses on text-based prompt injections, no one has systematically examined how LLM vulnerabilities propagate downstream to affect an XR user's physical perception and safety. Because XR devices directly mediate how users see, hear, and interact with the world, manipulating the LLM's output can lead to severe real-world consequences—a threat model the authors call the "Evil Vizier" attack, where a seemingly trustworthy AI advisor secretly misleads the user.
Methods
The authors first conducted a systematic review of 95 LLM-XR systems from recent literature to categorize them by inputs, outputs, architectures, and trigger mechanisms.
Based on this framework, they developed a unified client-side threat model. They assume the attacker operates via a malicious third-party library or asset package (a common practice in game engines like Unity). Because current XR development ecosystems lack strict sandboxing or iframe-like isolation, these third-party libraries share access to the active XR scene graph, public system events, and public variables.
Instead of attacking the remote LLM server directly, the attacker indirectly manipulates the context surrounding a user's query. The authors designed and executed four distinct proof-of-concept attacks:
- Query Covering (Meta QuestCameraKit): Listens to public hand-gesture events and exploits a 1-second system delay to inject a overlapping adversarial query that drowns out the legitimate audio response.
- Situational Safety Manipulation (Meta Ray-Ban AI Glasses): Alters the physical environment (e.g., using adversarial stickers or text on laptop screens) to trick the VLM into ignoring hazards or serving stealth advertisements.
- Prompt Injection via Virtual Overlays (Google XR-Objects): Injects low-opacity text overlays into the virtual environment. Because the system captures screenshots of the rendered view rather than raw camera frames, the hidden text poisons the VLM input, altering object metadata like prices or calorie counts.
- Malicious Code Generation (Microsoft LLMR): Tampers with public text fields to force an offline code-generation LLM to output malicious Unity C# scripts that execute UI-blocking or data exfiltration attacks.
Datasets
As an empirical security evaluation paper, this work does not introduce a new machine learning training dataset. Instead, it utilizes:
- A curated taxonomy built from a literature review of 95 LLM-integrated XR papers.
- 14 custom-crafted malicious instructions and code snippets designed to test an adaptive LLM-based defense prototype.
- Physical situational safety test scenarios adapted from the benchmark Multimodal Situational Safety dataset (Zhou et al., 2025) to evaluate real-world hazard detection.
Key Insights and Ideas
- The Screenshot Vulnerability: A major architectural flaw in systems like Google's XR-Objects is that they pass rendered screenshots (which mix real-world camera feeds with virtual UI elements) to the VLM. This allows an attacker's virtual object to inject prompts directly into the vision pipeline, effectively cross-contaminating the digital and physical worlds.
- Cascading Downstream Effects: Unlike standard chatbots where a bad response is just text on a screen, LLM errors in XR trigger cascading physical risks. A manipulated VLM might tell a user it is safe to microwave a bowl containing a metal fork, or give reversed navigation instructions near a flight of stairs.
- Shared Memory and Lack of Sandboxing: Current XR development platforms (like Unity) prioritize ease of integration over security boundaries, leaving public methods, objects, and system events exposed to any imported third-party package.
Key Results
- 100% Exploitation Success: The authors successfully demonstrated end-to-end exploits across all four target platforms (Meta Quest 3, Meta Ray-Ban, Android XR, and HoloLens 2).
- Metadata Spoofing: In the Google XR-Objects attack, the authors successfully manipulated product prices to read "$9999 USD" and suppressed critical allergen warnings via low-opacity visual prompt injections.
- Failure of LLM-Based Defenses: The authors built an adaptive defense prototype using a state-of-the-art LLM (GPT-5 class) to inspect generated Unity code for malicious behavior. The defense achieved a Detection Success Rate (DSR) of only 6 out of 14 (42.8%), showing that current models struggle to identify domain-specific XR security threats.
Limitations and Future Work
The authors note that their evaluation covers four representative software stacks rather than the entire commercial ecosystem. The study focuses primarily on single-user, task-centric scenarios and does not explore multi-user environments where malicious code could propagate across shared virtual worlds. Furthermore, the paper leaves emerging XR modalities—such as haptic feedback, physiological sensors, and long-term human behavioral factors—underexplored for future security research.
Summary updated