EVA: Red-Teaming GUI Agents via Evolving Indirect Prompt Injection

Yijie Lu, Tianjie Ju, Manman Zhao, Xinbei Ma, Yuan Guo, Zhuosheng ZhangarXiv 2025 · DOI

Abstract

As Graphical User Interface (GUI) agents become more prevalent, their susceptibility to indirect prompt injection poses a significant security risk. This paper introduces EVA (Evolving Indirect Prompt Injection), a novel red-teaming framework that utilizes a closed-loop optimization process to systematically discover visual vulnerabilities in multimodal models. Unlike static attack methods, EVA iteratively refines adversarial visual elements—such as deceptive pop-ups—based on real-time behavioral feedback from the agent. Our evaluation across six prominent GUI agents, including GPT-4o and Qwen2.5-VL, demonstrates that EVA significantly increases attack success rates, revealing shared behavioral biases and the profound impact of visual attention on agent decision-making.

Introduction: The Rise of Actionable AI

The transition toward "Actionable AI" has introduced a new class of multimodal models: GUI agents. These agents are designed to interact with digital interfaces much like a human would—clicking buttons, typing text, and navigating websites to fulfill complex user requests. While this capability promises a leap in productivity, it also opens a unique and dangerous "blind spot." GUI agents often struggle to distinguish between legitimate instructions from the user and malicious cues embedded within the visual environment they are processing.

The Vulnerability of GUI Agents

This phenomenon is known as indirect prompt injection. In a typical scenario, an agent might be tasked with a benign goal, such as "searching for an iPhone 16." However, if a malicious actor can inject a deceptive element into the webpage—such as a fake "System Update" modal or a persuasive "Discover the Buzz" pop-up—the agent may be diverted from its original task to follow the instructions contained within the malicious element.

Comparison between a clean environment and a poisonous environment where a deceptive pop-up hijacks the agent's goal.

Existing security research has largely focused on "static" attacks, which rely on hand-crafted or one-shot generated prompts. The authors of EVA argue that these methods are insufficient because they do not account for the dynamic nature of an agent's visual attention. To truly secure these models, we require red-teaming tools that can adapt and evolve, finding the most effective ways to hijack an agent's decision-making process in real-time.

The EVA Framework: An Evolutionary Approach to Red-Teaming

The core contribution of this work is the EVA framework, a feedback-driven system that operates in a black-box setting. EVA does not require access to the internal weights of the target model; instead, it relies on observing the agent's external behavior.

The EVA 'Fire' strategy utilizes an optimization loop with word banks and behavioral feedback to evolve poisonous environments.

The framework utilizes an optimization loop consisting of four key stages:

  1. Initialization: The process begins with a lexicon of "trigger words" (e.g., "urgent," "security," "win") and a set of HTML templates for common UI elements like pop-ups and chat boxes.
  2. Injection & Observation: EVA generates an adversarial element and injects it into the GUI. It then observes the agent's subsequent actions.
  3. Feedback & Scoring: If the agent is successfully distracted—for example, by clicking a fake button instead of continuing its primary task—the keywords and templates used in that injection receive a "utility score" boost.
  4. Evolution: At fixed intervals, EVA prunes low-performing candidates and replaces them with new variations generated by a Large Language Model (LLM) or derived from successful mutations.

Through this iterative process, EVA "learns" which combinations of phrasing, layout, and tone (such as persuasive vs. threatening) are most effective at capturing the attention of a specific multimodal model.

Experimental Evaluation and Key Results

The researchers evaluated EVA across four realistic, high-stakes GUI scenarios: pop-up manipulation, chat-based phishing, payment fraud, and email composition. The results were striking. EVA consistently outperformed static baselines across all tested models, including GPT-4o, GLM-4v-Plus, Qwen2.5-VL, and UI-TARS. On the GLM-4v-Plus model, EVA increased the Attack Success Rate (ASR) in pop-up scenarios from 48% to 80%.

One of the most significant findings was the high transferability of evolved attacks. An attack strategy optimized for one model often proved highly effective when replayed on a different model, sometimes resulting in a success rate increase of over 40% compared to static methods. This suggests that different multimodal models share similar "blind spots" in how they prioritize and process visual information.

Conclusion: Attention as the Attack Surface

The success of EVA highlights that visual attention—where the model "looks"—is just as critical an attack surface as semantic understanding. A centered pop-up is far more dangerous than a sidebar message because it forces the model's focus to converge on the malicious element.

EVA serves as a critical wake-up call for the developers of multimodal agents. Simply training a model to follow instructions is not enough; agents must also be taught to ignore the "siren songs" of a poisoned visual environment. The authors call for the development of attention-aware defenses that can help agents distinguish between UI elements that are intrinsic to the task and those that are external, adversarial noise.

Summary updated

BibTeX
@misc{lu2025eva,
  author = {Yijie Lu and Tianjie Ju and Manman Zhao and Xinbei Ma and Yuan Guo and Zhuosheng Zhang},
  title = {{EVA: Red-Teaming GUI Agents via Evolving Indirect Prompt Injection}},
  year = {2025},
  eprint = {2505.14289},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.14289},
}
Figure