WebSentinel: Detecting and Localizing Prompt Injection Attacks for Web Agents
On the map: LLM agents and tool use → Agent threats, guardrails and governance
also in 1 more
Abstract (arXiv)
Prompt injection attacks manipulate webpage content to cause web agents to execute attacker-specified tasks instead of the user's intended ones. Existing methods for detecting and localizing such attacks achieve limited effectiveness, as their underlying assumptions often do not hold in the web-agent setting. In this work, we propose WebSentinel, a two-step approach for detecting and localizing prompt injection attacks in webpages. Given a webpage, Step I extracts segments of interest that may be contaminated, and Step II evaluates each segment by checking its consistency with the webpage content as context. We show that WebSentinel is highly effective, substantially outperforming baseline methods across multiple datasets of both contaminated and clean webpages that we collected. Our code is available at: https://github.com/wxl-lxw/WebSentinel.
Key facts. Cited by 10 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 18 of its 23 references that are in the map. First posted on arXiv 3 Feb 2026.
Builds on
18 of 23 references.
Closest ancestors · 8
Same direction, newest first
- 2025WAInjectBench: Benchmarking Prompt Injection Detections for Web Agents1 Oct
- 2025PromptArmor: Simple yet Effective Prompt Injection Defenses21 Jul
- 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
- 2024Attacking Vision-Language Computer Agents via Pop-ups4 Nov
- 2024EIA: Environmental Injection Attack on Generalist Web Agents for Privacy Leakage17 Sep
- 2024Dissecting Adversarial Robustness of Multimodal LM Agents18 Jun
Other references · 10
- 2023Improved Baselines with Visual Instruction Tuningcited by 4,362
- 2023WebArena: A Realistic Web Environment for Building Autonomous Agentscited by 1,908
- 2023Mind2Web: Towards a Generalist Agent for the Webcited by 1,210
- 2023Formalizing and Benchmarking Prompt Injection Attacks and Defensescited by 328
- 2025DataSentinel: A Game-Theoretic Detection of Prompt Injection Attackscited by 124
- 2024Attention Tracker: Detecting Prompt Injection Attacks in LLMscited by 82
- 2025Can Indirect Prompt Injection Attacks Be Detected and Removed?cited by 43
- 2024Embedding-based classifiers can detect prompt injection attackscited by 24
- 2025PromptLocate: Localizing Prompt Injection Attackscited by 23
- 2025BrowseSafe: Understanding and Preventing Prompt Injection Within AI Browser Agentscited by 23
Built on by
Citing papers per year: 2026: 10.
10 papers.
- 2026A Framework for Formalizing LLM Agent Securitycited by 16
- 2026ClawSafety: "Safe" LLMs, Unsafe Agentscited by 15
- 2026WARD: Adversarially Robust Defense of Web Agents Against Prompt Injectionscited by 3
- 2026AgentDrift: A Step-Labeled Benchmark of Injection-Hijacked LLM Agent Trajectoriescited by 2
- 2026Same-Origin Policy for Agentic Browserscited by 1
- 2026Prismata: Confining Cross-Site Prompt Injection in Web Agentscited by 1
- 2026Beyond Pattern Matching: Seven Cross-Domain Techniques for Prompt Injection Detectioncited by 0
- 2026Securing Computer-Use Agents: A Unified Architecture-Lifecycle Framework for Deployment-Grounded Reliabilitycited by 0
- 2026Beyond the Verdict: Evidence-Aligned Evaluation of Visual Prompt-Injection Guardrailscited by 0
- 2026DriftNet: A Dual-Head Trajectory Transformer for Detecting and Localizing Prompt Injection in LLM Agentscited by 0
- 2026DriftNet: A Dual-Head Trajectory Transformer for Detecting and Localizing Prompt Injection in LLM Agents9 Sep 2026
- 2026AgentDrift: A Step-Labeled Benchmark of Injection-Hijacked LLM Agent Trajectories7 Sep 2026
- 2026Beyond the Verdict: Evidence-Aligned Evaluation of Visual Prompt-Injection Guardrails2 Sep 2026
- 2026Prismata: Confining Cross-Site Prompt Injection in Web Agents9 Jul 2026
- 2026Same-Origin Policy for Agentic Browsers12 Jun 2026
- 2026WARD: Adversarially Robust Defense of Web Agents Against Prompt Injections14 May 2026
- 2026Securing Computer-Use Agents: A Unified Architecture-Lifecycle Framework for Deployment-Grounded Reliability8 May 2026
- 2026Beyond Pattern Matching: Seven Cross-Domain Techniques for Prompt Injection Detection20 Apr 2026
- 2026ClawSafety: "Safe" LLMs, Unsafe Agents1 Apr 2026
- 2026A Framework for Formalizing LLM Agent Security19 Mar 2026
Similar, not cited
Close in wording, no citation either way
- 2026SnapGuard: Lightweight Prompt Injection Detection for Screenshot-Based Web Agents
- 2026WebAgentGuard: A Reasoning-Driven Guard Model for Detecting Prompt Injection Attacks in Web Agents
- 2025Mind the Web: The Security of Web Use Agents
- 2025Context manipulation attacks : Web agents are susceptible to corrupted memory
- 2026WAAA! Web Adversaries Against Agentic Browsers
- 2026MalURLBench: A Benchmark Evaluating Agents' Vulnerabilities When Processing Web URLs
- 2026From Prompt Injection to Web Exploitation: Revisiting Classic Vulnerabilities in LLM-Integrated Applications
- 2026WebMCP Tool Surface Poisoning: Runtime Manipulation Attacks on LLM Agents