AdInject: Real-World Black-Box Attacks on Web Agents via Advertising Delivery
On the map: LLM agents and tool use → Agent threats, guardrails and governance
Abstract (arXiv)
Vision-Language Model (VLM) based Web Agents represent a significant step towards automating complex tasks by simulating human-like interaction with websites. However, their deployment in uncontrolled web environments introduces significant security vulnerabilities. Existing research on adversarial environmental injection attacks often relies on unrealistic assumptions, such as direct HTML manipulation, knowledge of user intent, or access to agent model parameters, limiting their practical applicability. In this paper, we propose AdInject, a novel and real-world black-box attack method that leverages the internet advertising delivery to inject malicious content into the Web Agent's environment. AdInject operates under a significantly more realistic threat model than prior work, assuming a black-box agent, static malicious content constraints, and no specific knowledge of user intent. AdInject includes strategies for designing malicious ad content aimed at misleading agents into clicking, and a VLM-based ad content optimization technique that infers potential user intents from the target website's context and integrates these intents into the ad content to make it appear more relevant or critical to the agent's task, thus enhancing attack effectiveness. Experimental evaluations demonstrate the effectiveness of AdInject, attack success rates exceeding 60% in most scenarios and approaching 100% in certain cases. This strongly demonstrates that prevalent advertising delivery constitutes a potent and real-world vector for environment injection attacks against Web Agents. This work highlights a critical vulnerability in Web Agent security arising from real-world environment manipulation channels, underscoring the urgent need for developing robust defense mechanisms against such threats. Our code is available at https://github.com/NicerWang/AdInject.
Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 36 of its 46 references that are in the map. First posted on arXiv 27 May 2025.
Builds on
36 of 46 references.
Closest ancestors · 6
Same direction, newest first
- 2025UDora: A Unified Red Teaming Framework against LLM Agents by Dynamically Hijacking Their Own Reasoning28 Feb
- 2024Attacking Vision-Language Computer Agents via Pop-ups4 Nov
- 2024Refusal-Trained LLMs Are Easily Jailbroken As Browser Agents11 Oct
- 2024EIA: Environmental Injection Attack on Generalist Web Agents for Privacy Leakage17 Sep
- 2024Dissecting Adversarial Robustness of Multimodal LM Agents18 Jun
- 2024Agent Smith: A Single Image Can Jailbreak One Million Multimodal LLM Agents Exponentially Fast13 Feb
Other references · 30
- 2024GPT-4o System Cardcited by 4,467
- 2023WebArena: A Realistic Web Environment for Building Autonomous Agentscited by 1,908
- 2023Mind2Web: Towards a Generalist Agent for the Webcited by 1,210
- 2024OSWorld: Benchmarking Multimodal Agents for Open-Ended Tasks in Real Computer Environmentscited by 1,134
- 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 760
- 2023CogAgent: A Visual Language Model for GUI Agentscited by 692
- 2025UI-TARS: Pioneering Automated GUI Interaction with Native Agentscited by 584
- 2023Prompt Injection attack against LLM-integrated Applicationscited by 568
- 2023FigStep: Jailbreaking Large Vision-Language Models via Typographic Visual Promptscited by 368
- 2023Visual Adversarial Examples Jailbreak Aligned Large Language Modelscited by 307
- 2024Aguvis: Unified Pure Vision Agents for Autonomous GUI Interactioncited by 271
- 2024Windows Agent Arena: Evaluating Multi-Modal OS Agents at Scalecited by 212
18 more
- 2024Agent S: An Open Agentic Framework that Uses Computers Like a Humancited by 182
- 2023Image Hijacks: Adversarial Images can Control Generative Models at Runtimecited by 165
- 2025Agent S2: A Compositional Generalist-Specialist Framework for Computer Use Agentscited by 156
- 2024The BrowserGym Ecosystem for Web Agent Researchcited by 152
- 2022Towards Adversarial Attack on Vision-Language Pre-training Modelscited by 142
- 2023On the Adversarial Robustness of Multi-Modal Foundation Modelscited by 142
- 2024Images are Achilles' Heel of Alignment: Exploiting Visual Vulnerabilities for Jailbreaking Multimodal Large Language Modelscited by 121
- 2025Learn-by-interact: A Data-Centric Framework for Self-Adaptive Agents in Realistic Environmentscited by 93
- 2023VLATTACK: Multimodal Adversarial Attacks on Vision-Language Tasks via Pre-trained Modelscited by 66
- 2024ExACT: Teaching AI Agents to Explore with Reflective-MCTS and Exploratory Learningcited by 61
- 2024Caution for the Environment: Multimodal LLM Agents are Susceptible to Environmental Distractionscited by 55
- 2024Shadowcast: Stealthy Data Poisoning Attacks Against Vision-Language Modelscited by 48
- 2024OSCAR: Operating System Control via State-Aware Reasoning and Re-Planningcited by 37
- 2024AgentStore: Scalable Integration of Heterogeneous Agents As Specialized Generalist Computer Assistantcited by 27
- 2024Stop Reasoning! When Multimodal LLM with Chain-of-Thought Reasoning Meets Adversarial Imagecited by 26
- 2024Infant Agent: A Tool-Integrated, Logic-Driven Agent with Cost-Effective API Usagecited by 11
- 2025Transferable Adversarial Attacks on Black-Box Vision-Language Modelscited by 10
- 2024Dismantling Common Internet Services for Ad-Malware Detectioncited by 1
Built on by
Citing papers per year: 2025: 1; 2026: 8.
9 papers.
- 2025SecureWebArena: A Holistic Security Evaluation Benchmark for LVLM-based Web Agentscited by 17
- 2026BackdoorAgent: A Unified Framework for Backdoor Attacks on LLM-based Agentscited by 12
- 2026You Told Me to Do It: Measuring Instructional Text-induced Private Data Leakage in LLM Agentscited by 3
- 2026WebTrap Park: An Automated Platform for Systematic Security Evaluation of Web Agentscited by 2
- 2026AgentRAE: Remote Action Execution through Notification-based Visual Backdoors against Screenshots-based Mobile GUI Agentscited by 2
- 2026Prismata: Confining Cross-Site Prompt Injection in Web Agentscited by 1
- 2026MIRAGE: Stealthy Visual Prompt Injection for Vulnerability Detection in Web Agentscited by 0
- 2026LoginTrap: Uncovering Task-Agnostic Phishing-Style Indirect Prompt Injection Attacks against LLM-based Web Agentscited by 0
- 2026AgentHijack: Visual Patch Attacks on Multimodal Computer-Use Agentscited by 0
- 2026AgentHijack: Visual Patch Attacks on Multimodal Computer-Use Agents6 Sep 2026
- 2026LoginTrap: Uncovering Task-Agnostic Phishing-Style Indirect Prompt Injection Attacks against LLM-based Web Agents5 Aug 2026
- 2026Prismata: Confining Cross-Site Prompt Injection in Web Agents9 Jul 2026
- 2026MIRAGE: Stealthy Visual Prompt Injection for Vulnerability Detection in Web Agents16 Jun 2026
- 2026AgentRAE: Remote Action Execution through Notification-based Visual Backdoors against Screenshots-based Mobile GUI Agents24 Mar 2026
- 2026You Told Me to Do It: Measuring Instructional Text-induced Private Data Leakage in LLM Agents12 Mar 2026
- 2026WebTrap Park: An Automated Platform for Systematic Security Evaluation of Web Agents13 Jan 2026
- 2026BackdoorAgent: A Unified Framework for Backdoor Attacks on LLM-based Agents8 Jan 2026
- 2025SecureWebArena: A Holistic Security Evaluation Benchmark for LVLM-based Web Agents11 Oct 2025
Similar, not cited
Close in wording, no citation either way
- 2025WebInject: Prompt Injection Attack to Web Agents
- 2026WARD: Adversarially Robust Defense of Web Agents Against Prompt Injections
- 2026AdvSim2Real : Training Web Agents Against Adaptive Prompt Injection in a Web World Model
- 2026WebAgentGuard: A Reasoning-Driven Guard Model for Detecting Prompt Injection Attacks in Web Agents
- 2025BrowseSafe: Understanding and Preventing Prompt Injection Within AI Browser Agents
- 2025Mind the Web: The Security of Web Use Agents
- 2026MUZZLE: Adaptive Agentic Red-Teaming of Web Agents Against Indirect Prompt Injection Attacks
- 2025WAInjectBench: Benchmarking Prompt Injection Detections for Web Agents