Harness Matters: Measuring and Dissecting Security Resilience in Web Agents
On the map: LLM agents and tool use → Agent threats, guardrails and governance
Abstract (arXiv)
Web agents extend LLMs from text generation to real-world web interaction by relying on execution harnesses that interpret user goals, perceive webpages, plan actions, and ground model decisions into browser operations. While prior work has recognized that agent security depends on more than the backend model alone, how harness design quantitatively shapes web-agent security remains insufficiently measured. To systematically study web-agent harness security, we first characterize web-agent harnesses as a four-stage execution workflow covering goal interpretation, webpage perception, reasoning and planning, and action execution. Based on this abstraction, we build WebTrap Farm, a systematic and extensible evaluation framework covering three representative attack categories: malicious user prompts, malicious prompt injection, and deceptive web design. To avoid conflating security with task capability, we use paired usability calibration tasks to separate genuine defensive behavior from capability limitations. Our evaluation shows that existing web-agent harnesses remain vulnerable to typical attacks, with some unsafe behaviors occurring even without explicit attack content, revealing harness-intrinsic security failures (RQ1). Statistical analysis further shows that both harness and backend model significantly affect security outcomes, indicating that deployed-agent security is jointly shaped by the harness and backend model (RQ2). Finally, we localize where defensive behavior emerges across workflow stages and identify more secure design mechanisms, providing actionable guidance for building more robust web agents (RQ3). These findings highlight the web-agent harness as an important security boundary and motivate moving beyond model-centric defenses toward harness-level security design.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 37 of its 66 references that are in the map. Submitted 9 Nov 2026.
Builds on
37 of 66 references.
Closest ancestors · 18
Same direction, newest first
- 2026When Bots Take the Bait: Exposing and Mitigating the Emerging Social Engineering Attack in Web Automation Agent12 Jan
- 2025Systems Security Foundations for Agentic Computing1 Dec
- 2025Investigating the Impact of Dark Patterns on LLM-Based Web Agents20 Oct
- 2025In-Browser LLM-Guided Fuzzing for Real-Time Prompt Injection Testing in Agentic AI Browsers15 Oct
- 2025SusBench: An Online Benchmark for Evaluating Dark Pattern Susceptibility of Computer-Use Agents13 Oct
- 2025SecureWebArena: A Holistic Security Evaluation Benchmark for LVLM-based Web Agents11 Oct
- 2025Dark Patterns Meet GUI Agents: LLM Agent Susceptibility to Manipulative Interfaces and the Role of Human Oversight12 Sep
- 2025Manipulating LLM Web Agents with Indirect Prompt Injection Attack via HTML Accessibility Tree20 Jul
- 2025Mind the Web: The Security of Web Use Agents8 Jun
- 2025VPI-Bench: Visual Prompt Injection Attacks for Computer-Use Agents3 Jun
- 2025WebInject: Prompt Injection Attack to Web Agents16 May
- 2025WASP: Benchmarking Web Agent Security Against Prompt Injection Attacks22 Apr
6 more
- 2025Manipulating Multimodal Agents via Cross-Modal Prompt Injection19 Apr
- 2025SafeArena: Evaluating the Safety of Autonomous Web Agents6 Mar
- 2024Attacking Vision-Language Computer Agents via Pop-ups4 Nov
- 2024AdvAgent: Controllable Blackbox Red-teaming on Web Agents22 Oct
- 2024EIA: Environmental Injection Attack on Generalist Web Agents for Privacy Leakage17 Sep
- 2024Dissecting Adversarial Robustness of Multimodal LM Agents18 Jun
Other references · 19
- 2023WebArena: A Realistic Web Environment for Building Autonomous Agentscited by 2,232
- 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,638
- 2024OSWorld: Benchmarking Multimodal Agents for Open-Ended Tasks in Real Computer Environmentscited by 1,383
- 2023Mind2Web: Towards a Generalist Agent for the Webcited by 1,339
- 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 889
- 2023Prompt Injection attack against LLM-integrated Applicationscited by 638
- 2024GPT-4V(ision) is a Generalist Web Agent, if Groundedcited by 606
- 2023Jailbreaking ChatGPT via Prompt Engineering: An Empirical Studycited by 520
- 2024WebVoyager: Building an End-to-End Web Agent with Large Multimodal Modelscited by 473
- 2024StruQ: Defending Against Prompt Injection with Structured Queriescited by 433
- 2023Toxicity in ChatGPT: Analyzing Persona-assigned Language Modelscited by 372
- 2023Role-Play with Large Language Modelscited by 308
7 more
- 2024WebLINX: Real-World Website Navigation with Multi-Turn Dialoguecited by 191
- 2024The BrowserGym Ecosystem for Web Agent Researchcited by 179
- 2024AgentOccam: A Simple Yet Strong Baseline for LLM-Based Web Agentscited by 121
- 2025A Survey of WebAgents: Towards Next-Generation AI Agents for Web Automation with Large Foundation Modelscited by 93
- 2024Agent-E: From Autonomous Web Navigation to Foundational Design Principles in Agentic Systemscited by 86
- 2024MindSearch: Mimicking Human Minds Elicits Deep AI Searchercited by 75
- 2025BrowseSafe: Understanding and Preventing Prompt Injection Within AI Browser Agentscited by 27
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025WebGuard: Building a Generalizable Guardrail for Web Agents
- 2026WebTrap Park: An Automated Platform for Systematic Security Evaluation of Web Agents
- 2026MUZZLE: Adaptive Agentic Red-Teaming of Web Agents Against Indirect Prompt Injection Attacks
- 2025Building Browser Agents: Architecture, Security, and Practical Solutions
- 2026WAAA! Web Adversaries Against Agentic Browsers
- 2026HarnessRisk: A Lifecycle-Oriented Benchmark for Agent Harness Safety
- 2024ST-WebAgentBench: A Benchmark for Evaluating Safety and Trustworthiness in Web Agents
- 2026Before Acting, Change the State: Prospective State Intervention for Web Agents under Deceptive Interfaces