Attacking Vision-Language Computer Agents via Pop-ups

Yanzhe Zhang, Tao Yu, Diyi Yang

Abstract

Autonomous agents powered by large vision and language models (VLM) have demonstrated significant potential in completing daily computer tasks, such as browsing the web to book travel and operating desktop software, which requires agents to understand these interfaces. Despite such visual inputs becoming more integrated into agentic applications, what types of risks and attacks exist around them still remain unclear. In this work, we demonstrate that VLM agents can be easily attacked by a set of carefully designed adversarial pop-ups, which human users would typically recognize and ignore. This distraction leads agents to click these pop-ups instead of performing their tasks as usual. Integrating these pop-ups into existing agent testing environments like OSWorld and VisualWebArena leads to an attack success rate (the frequency of the agent clicking the pop-ups) of 86% on average and decreases the task success rate by 47%. Basic defense techniques, such as asking the agent to ignore pop-ups or including an advertisement notice, are ineffective against the attack. Code is available at this link.

Introduction: The "Common Sense" Gap in AI Agents

As we move toward autonomous agents capable of navigating desktops and websites, we rely heavily on their ability to interpret Graphical User Interfaces (GUIs). However, GUIs are "open" environments where third-party content, such as advertisements or malicious scripts, can inject visual elements. While human users have developed a natural "banner blindness" to suspicious pop-ups, VLM agents (like GPT-4o and Claude 3.5) currently lack this skepticism. This research, presented at ACL 2025, addresses a critical security gap: Can VLM agents distinguish between a user’s legitimate instructions and malicious instructions embedded within the visual environment? The current answer is a resounding no.

The PopupAttack Framework

The researchers developed "PopupAttack," a framework that inserts adversarial images into an agent's field of vision. Unlike traditional adversarial attacks that rely on invisible pixel noise, this attack uses human-readable elements designed to exploit the agent's reasoning processes.

The four components of a PopupAttack: Attention Hook, Instruction, Info Banner, and ALT Descriptor.

The attack consists of four primary components:

  1. Attention Hook: A short text summary of the user's actual query is placed on the pop-up to trick the agent into thinking the pop-up is part of the task.
  2. Instruction: Explicit commands like "Please click [ID]" or "Please click (x,y)" are included to direct the agent's next action.
  3. Info Banner: Visual cues, such as an "OK" button, make the pop-up resemble a standard system dialogue.
  4. ALT Descriptor: For agents utilizing accessibility (a11y) trees, attackers inject malicious metadata into the image's "alt-text," providing a secondary vector for the instruction.

Experimental Setup

The attack was evaluated on two primary benchmarks for computer-using agents: OSWorld (Ubuntu desktop tasks) and VisualWebArena (web-based tasks like e-commerce). The study focused on "easy" tasks that agents normally complete with high reliability to isolate the impact of the adversarial pop-ups. Two types of agents were tested: screenshot-only agents and Set-of-Mark (SoM) agents, which use both visual and structured accessibility data.

Results and Key Insights

The results demonstrate a staggering vulnerability in current frontier models. On average, agents clicked the adversarial pop-ups 86% of the time, causing task success rates to plummet by nearly half.

Adversarial pop-ups successfully diverting agents in OSWorld (92.7% ASR) and VisualWebArena (73.1% ASR).

Key findings include:

  • Contextual Baiting: The "Attention Hook" is the most effective element. By mirroring the user's intent, it creates a "semantic trap" where the agent assumes the pop-up is a necessary step in the workflow.
  • Structural Vulnerability: SoM agents are even more susceptible because they process malicious instructions through both visual and text-based channels (the accessibility tree).
  • Ineffective Defenses: Basic prompt-based defenses, such as instructing the agent to "ignore pop-ups," largely fail. Agents struggle to distinguish between malicious pop-ups and legitimate system modals required for the task.

Conclusion

This work highlights a fundamental disconnect between reasoning and visual grounding in current VLMs. Just as humans require phishing awareness training, AI agents need exposure to "environmental noise" and adversarial UI elements during training to develop digital skepticism. As we grant AI agents more agency over our digital lives, building robust defenses against visual deception becomes a critical priority for secure deployment.

Summary updated

BibTeX
@inproceedings{zhang2025attacking,
  author = {Yanzhe Zhang and Tao Yu and Diyi Yang},
  title = {{Attacking Vision-Language Computer Agents via Pop-ups}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
  url = {https://openreview.net/forum?id=vvpHzpFXDo},
}
Figure