Extended to Reality: Prompt Injection in 3D Environments
Zhuoheng Li, Ying Chen
TL;DR
This work introduces PI3D, a prompt-injection attack targeting multimodal large language models operating in 3D environments by placing text-bearing physical objects with optimized 6-DoF poses. It formalizes a joint objective $J(\Theta,\phi)=Y(\Theta,\phi)-\lambda V(\Theta)$ and develops an experience-guided planner that reuses past evaluations via a pose-space similarity kernel to efficiently identify plausible, effective placements. The methodology is validated in high-fidelity virtual environments and real-world settings, showing strong attack performance (ASR) and convincing physical plausibility, while existing defenses (instructional prevention and known-answer detection) remain inadequate. The results highlight a tangible risk for XR, robotics, and situated AI systems, underscoring the need for robust countermeasures that address 3D, physically grounded prompt-injection attacks.
Abstract
Multimodal large language models (MLLMs) have advanced the capabilities to interpret and act on visual input in 3D environments, empowering diverse applications such as robotics and situated conversational agents. When MLLMs reason over camera-captured views of the physical world, a new attack surface emerges: an attacker can place text-bearing physical objects in the environment to override MLLMs' intended task. While prior work has studied prompt injection in the text domain and through digitally edited 2D images, it remains unclear how these attacks function in 3D physical environments. To bridge the gap, we introduce PI3D, a prompt injection attack against MLLMs in 3D environments, realized through text-bearing physical object placement rather than digital image edits. We formulate and solve the problem of identifying an effective 3D object pose (position and orientation) with injected text, where the attacker's goal is to induce the MLLM to perform the injected task while ensuring that the object placement remains physically plausible. Experiments demonstrate that PI3D is an effective attack against multiple MLLMs under diverse camera trajectories. We further evaluate existing defenses and show that they are insufficient to defend against PI3D.
