Visual Prompt Injection in Multimodal Agents

This direction is merged into another direction: multimodal safety gap. Its last version stays readable and citable here.

Version 1 of 117 papers19 conceptsfrozen 2026-10-04

As Large Language Models (LLMs) evolve into multimodal agents capable of "seeing" and interacting with graphical user interfaces, they inherit a critical security vulnerability: Visual Prompt Injection (VPI). While traditional prompt injection involves malicious text hidden in a prompt, VPI exploits the model’s vision-language capabilities to execute commands embedded directly within images, screenshots, or rendered UI elements.

The Vision-Language Attack Surface

Modern autonomous agents, such as those evaluated in VPI-Bench, often operate by taking periodic screenshots of an operating system or web browser. These screenshots are then processed by a Vision-Language Model (VLM) to determine the next action. This creates a high-risk vector where an adversary can manipulate the agent's behavior by altering visual data that the agent "sees" but a human might ignore.

Researchers like Lukas Aichberger and Adel Bibi have demonstrated this through Malicious Image Patches (MIPs). By subtly perturbing a small region of a screen—such as a wallpaper or a social media post—an attacker can hijack a multimodal OS agent. These patches can force the agent to ignore user commands and instead execute malicious code, such as exfiltrating sensitive data, as detailed in MIP against Agent.

Why Visual Injections Bypass Defenses

The core of the problem lies in the "instruction blindness" of current safety filters. Most existing defenses, such as those discussed in Meta SecAlign or RENNERVATE, are optimized for text-based inputs. They struggle with VPI for several reasons:

  • OCR Exploitation: VLMs naturally perform optical character recognition. If an image contains the text "Delete all files," the model may treat this as a valid instruction rather than just part of an image, effectively bypassing text-only filters.
  • Visual Deception: As noted in the DoomArena framework, agents can be tricked by fake system windows or graphical pop-ups that look like legitimate system UI but contain injected commands.
  • Lack of Modality Hierarchy: Current models often lack a clear Instruction Hierarchy. They may treat a command found in a retrieved image with the same priority as the user's original system prompt.

The Gap in Agentic Security

The transition from text-only LLMs to multimodal agents has outpaced the development of specialized defenses. Frameworks like AgentDojo and BrowseSafe highlight a sobering "inverse scaling law": as models become better at following complex instructions and interpreting visual cues, they become more susceptible to being hijacked by sophisticated, context-aware injections.

While text-based defenses like ARLAS use adversarial reinforcement learning to find vulnerabilities, extending these to the visual domain remains an open challenge. Future security for autonomous agents will require defining spatial and visual constraints—essentially teaching models to distinguish between the "frame" of the user's intent and the "content" of the visual world they are observing.

Papers in this version

History & citationVersion 1 · 2026-10-04

Merged into another direction · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_visual_prompt_injection_in_multimodal_ag_afe99ed5,
  title = {Visual Prompt Injection in Multimodal Agents},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/visual-prompt-injection-in-multimodal-agents/rdr_afe99ed52cfa47c9b152276f5a113372},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-27},
}

This exact version (version 1, frozen text):

@misc{lacuna_visual_prompt_injection_in_multimodal_ag_afe99ed5_v1,
  title = {Visual Prompt Injection in Multimodal Agents},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/visual-prompt-injection-in-multimodal-agents/rdr_afe99ed52cfa47c9b152276f5a113372/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-27},
}