mlsanityData to 7 Oct 2026

EIA: Environmental Injection Attack on Generalist Web Agents for Privacy Leakage

arXiv 2409.11295 ↗First posted 17 Sep 2024cs.CR cs.AI cs.CLcited by 146

On the map: LLM agents and tool use → Agent threats, guardrails and governance

Abstract (arXiv)

Generalist web agents have demonstrated remarkable potential in autonomously completing a wide range of tasks on real websites, significantly boosting human productivity. However, web tasks, such as booking flights, usually involve users' PII, which may be exposed to potential privacy risks if web agents accidentally interact with compromised websites, a scenario that remains largely unexplored in the literature. In this work, we narrow this gap by conducting the first study on the privacy risks of generalist web agents in adversarial environments. First, we present a realistic threat model for attacks on the website, where we consider two adversarial targets: stealing users' specific PII or the entire user request. Then, we propose a novel attack method, termed Environmental Injection Attack (EIA). EIA injects malicious content designed to adapt well to environments where the agents operate and our work instantiates EIA specifically for privacy scenarios in web environments. We collect 177 action steps that involve diverse PII categories on realistic websites from the Mind2Web, and conduct experiments using one of the most capable generalist web agent frameworks to date. The results demonstrate that EIA achieves up to 70% ASR in stealing specific PII and 16% ASR for full user request. Additionally, by accessing the stealthiness and experimenting with a defensive system prompt, we indicate that EIA is hard to detect and mitigate. Notably, attacks that are not well adapted for a webpage can be detected via human inspection, leading to our discussion about the trade-off between security and autonomy. However, extra attackers' efforts can make EIA seamlessly adapted, rendering such supervision ineffective. Thus, we further discuss the defenses at the pre- and post-deployment stages of the websites without relying on human supervision and call for more advanced defense strategies.

Key facts. Cited by 146 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 49 references that are in the map. First posted on arXiv 17 Sep 2024.

Builds on

36 of 49 references.

Closest ancestors · 4

Same direction, newest first

  1. 2024BadAgent: Inserting and Activating Backdoor Attacks in LLM Agents5 Jun
  2. 2024WIPI: A New Web Threat for LLM-Driven Web Agents26 Feb
  3. 2024Watch Out for Your Agents! Investigating Backdoor Threats to LLM-Based Agents17 Feb
  4. 2024A Trembling House of Cards? Mapping Adversarial Attacks against Language Agents15 Feb

Other references · 32

  1. 2023GPT-4 Technical Reportcited by 18,132
  2. 2023Visual Instruction Tuningcited by 7,792
  3. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  4. 2023Improved Baselines with Visual Instruction Tuningcited by 4,362
  5. 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,175
  6. 2020Extracting Training Data from Large Language Modelscited by 2,144
  7. 2024Qwen2 Technical Reportcited by 2,076
  8. 2023WebArena: A Realistic Web Environment for Building Autonomous Agentscited by 1,908
  9. 2021WebGPT: Browser-assisted question-answering with human feedbackcited by 1,722
  10. 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,565
  11. 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,339
  12. 2023Mind2Web: Towards a Generalist Agent for the Webcited by 1,210
20 more
  1. 2022WebShop: Towards Scalable Real-World Web Interaction with Grounded Language Agentscited by 1,197
  2. 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 760
  3. 2023Prompt Injection attack against LLM-integrated Applicationscited by 568
  4. 2024GPT-4V(ision) is a Generalist Web Agent, if Groundedcited by 547
  5. 2023GPTFUZZER: Red Teaming Large Language Models with Auto-Generated Jailbreak Promptscited by 520
  6. 2024The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructionscited by 441
  7. 2024StruQ: Defending Against Prompt Injection with Structured Queriescited by 325
  8. 2023Set-of-Mark Prompting Unleashes Extraordinary Visual Grounding in GPT-4Vcited by 291
  9. 2018Beyond Inferring Class Representatives: User-Level Privacy Leakage From Federated Learningcited by 242
  10. 2023Benchmarking and Defending Against Indirect Prompt Injection Attacks on Large Language Modelscited by 237
  11. 2024Defending Against Indirect Prompt Injection Attacks With Spotlightingcited by 233
  12. 2023Can LLMs Keep a Secret? Testing Privacy Implications of Language Models via Contextual Integrity Theorycited by 218
  13. 2023Scalable and Transferable Black-Box Jailbreaks for Language Models via Persona Modulationcited by 202
  14. 2024Agent Q: Advanced Reasoning and Learning for Autonomous AI Agentscited by 201
  15. 2024AmpleGCG: Learning a Universal and Transferable Generative Model of Adversarial Suffixes for Jailbreaking Both Open and Closed LLMscited by 160
  16. 2023Tensor Trust: Interpretable Prompt Injection Attacks from an Online Gamecited by 135
  17. 2023Ignore This Title and HackAPrompt: Exposing Systemic Vulnerabilities of LLMs through a Global Scale Prompt Hacking Competitioncited by 65
  18. 2023From Prompt Injections to SQL Injection Attacks: How Protected is Your LLM-Integrated Web Application?cited by 53
  19. 2023How Trustworthy are Open-Source LLMs? An Assessment under Malicious Demonstrations Shows their Vulnerabilitiescited by 33
  20. 2024Uncertainty is Fragile: Manipulating Uncertainty in Large Language Modelscited by 13

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 5; 2025: 75; 2026: 66.

146 papers.

Sort:

By area:

  1. 2025AgentSpec: Customizable Runtime Enforcement for Safe and Reliable LLM Agentscited by 196
  2. 2024Large Language Model-Brained GUI Agents: A Surveycited by 160
  3. 2025ShieldAgent: Shielding Agents via Verifiable Safety Policy Reasoningcited by 144
  4. 2025WASP: Benchmarking Web Agent Security Against Prompt Injection Attackscited by 140
  5. 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systemscited by 125
  6. 2025Progent: Securing AI Agents with Privilege Controlcited by 121
  7. 2024Attacking Vision-Language Computer Agents via Pop-upscited by 112
  8. 2025PromptArmor: Simple yet Effective Prompt Injection Defensescited by 98
  9. 2025A Survey of WebAgents: Towards Next-Generation AI Agents for Web Automation with Large Foundation Modelscited by 87
  10. 2025AGrail: A Lifelong Agent Guardrail with Effective and Adaptive Safety Detectioncited by 82
  11. 2025MELON: Provable Defense Against Indirect Prompt Injection Attacks in AI Agentscited by 67
  12. 2025Safety at Scale: A Comprehensive Survey of Large Model and Agent Safetycited by 63
38 more
  1. 2024Refusal-Trained LLMs Are Easily Jailbroken As Browser Agentscited by 61
  2. 2025DRIFT: Dynamic Rule-Based Defense with Injection Isolation for Securing LLM Agentscited by 59
  3. 2024AdvAgent: Controllable Blackbox Red-teaming on Web Agentscited by 57
  4. 2025A Survey of LLM-Driven AI Agent Communication: Protocols, Security Risks, and Defense Countermeasurescited by 54
  5. 2024MobileSafetyBench: Evaluating Safety of Autonomous Agents in Mobile Device Controlcited by 49
  6. 2025WebInject: Prompt Injection Attack to Web Agentscited by 48
  7. 2025AgentVigil: Generic Black-Box Red-teaming for Indirect Prompt Injection against LLM Agentscited by 42
  8. 2025RedTeamCUA: Realistic Adversarial Testing of Computer-Use Agents in Hybrid Web-OS Environmentscited by 42
  9. 2025VPI-Bench: Visual Prompt Injection Attacks for Computer-Use Agentscited by 42
  10. 2025OS Agents: A Survey on MLLM-based Agents for General Computing Devices Usecited by 35
  11. 2025RiOSWorld: Benchmarking the Risk of Multimodal Computer-Use Agentscited by 34
  12. 2025Towards Trustworthy GUI Agents: A Surveycited by 33
  13. 2025DoomArena: A framework for Testing AI Agents Against Evolving Security Threatscited by 31
  14. 2025macOSWorld: A Multilingual Interactive Benchmark for GUI Agentscited by 31
  15. 2026AgentSentry: Mitigating Indirect Prompt Injection in LLM Agents via Temporal Causal Diagnostics and Context Purificationcited by 28
  16. 2025Why Are Web AI Agents More Vulnerable Than Standalone LLMs? A Security Analysiscited by 27
  17. 2025Toward Generalizable Evaluation in the LLM Era: A Survey Beyond Benchmarkscited by 26
  18. 2025Agentic AI Security: Threats, Defenses, Evaluation, and Open Challengescited by 26
  19. 2026The Attack and Defense Landscape of Agentic AI: A Comprehensive Surveycited by 26
  20. 2025A Survey on the Safety and Security Threats of Computer-Using Agents: JARVIS or Ultron?cited by 23
  21. 2025MLA-Trust: Benchmarking Trustworthiness of Multimodal LLM Agents in GUI Environmentscited by 23
  22. 2025Graphs Meet AI Agents: Taxonomy, Progress, and Future Opportunitiescited by 23
  23. 2025BrowseSafe: Understanding and Preventing Prompt Injection Within AI Browser Agentscited by 23
  24. 2025Evaluating the Robustness of Multimodal Agents Against Active Environmental Injection Attackscited by 21
  25. 2025UDora: A Unified Red Teaming Framework against LLM Agents by Dynamically Hijacking Their Own Reasoningcited by 21
  26. 2025Frontier AI's Impact on the Cybersecurity Landscapecited by 21
  27. 2025WAInjectBench: Benchmarking Prompt Injection Detections for Web Agentscited by 21
  28. 2025WebGuard: Building a Generalizable Guardrail for Web Agentscited by 20
  29. 2025Les Dissonances: Cross-Tool Harvesting and Polluting in Pool-of-Tools Empowered LLM Agentscited by 19
  30. 2025Searching for Privacy Risks in LLM Agents via Simulationcited by 19
  31. 2025SpiritSight Agent: Advanced GUI Agent with One Lookcited by 18
  32. 2025OS-Sentinel: Towards Safety-Enhanced Mobile GUI Agents via Hybrid Validation in Realistic Workflowscited by 18
  33. 2026Poison Once, Exploit Forever: Environment-Injected Memory Poisoning Attacks on Web Agentscited by 18
  34. 2025FocusAgent: Simple Yet Effective Ways of Trimming the Large Context of Web Agentscited by 16
  35. 2025Dark Patterns Meet GUI Agents: LLM Agent Susceptibility to Manipulative Interfaces and the Role of Human Oversightcited by 15
  36. 2025Think Twice Before You Act: Enhancing Agent Behavioral Safety with Thought Correctioncited by 14
  37. 2025DECEPTICON: How Dark Patterns Manipulate Web Agentscited by 13
  38. 2026VIGIL: Defending LLM Agents Against Tool Stream Injection via Verify-Before-Commitcited by 13

50 most cited of 146 All 146 (JSON)

Similar, not cited

Close in wording, no citation either way

  1. 2026"I Strongly Suspect This Website Is a Scam": Benchmarking PII Leakage and Detection without Defense in Autonomous Web Agents
  2. 2025Mind the Web: The Security of Web Use Agents
  3. 2025Context manipulation attacks : Web agents are susceptible to corrupted memory
  4. 2025SafeArena: Evaluating the Safety of Autonomous Web Agents
  5. 2025AgentDAM: Privacy Leakage Evaluation for Autonomous Web Agents
  6. 2026IPI-proxy: An Intercepting Proxy for Red-Teaming Web-Browsing AI Agents Against Indirect Prompt Injection
  7. 2025It's a TRAP! Task-Redirecting Agent Persuasion Benchmark for Web Agents
  8. 2025Privacy Practices of Browser Agents