Indirect Prompt Injections: Are Firewalls All You Need, or Stronger Benchmarks?
On the map: LLM safety and security → Prompt injection and agent security
Abstract (arXiv)
AI agents are vulnerable to indirect prompt injection attacks, where malicious instructions embedded in external content or tool outputs cause unintended or harmful behavior. Inspired by the well-established concept of firewalls, we show that a simple, modular, and model-agnostic defense operating at the agent--tool interface achieves perfect security with high utility across all four public benchmarks: AgentDojo, Agent Security Bench, InjecAgent and tau-Bench, while achieving a state-of-the-art security--utility tradeoff compared to prior results. Specifically, we employ two firewalls: a Tool-Input Firewall (Minimizer) and a Tool-Output Firewall (Sanitizer). Unlike prior complex approaches, this defense makes minimal assumptions about the agent and can be deployed out of the box. This makes it highly generalizable while maintaining strong performance without compromising utility. Our analysis also reveals critical limitations in these existing benchmarks, including flawed success metrics, implementation bugs, and most importantly, weak attacks, hindering progress. To address this, we present targeted fixes to these issues for AgentDojo and Agent Security Bench, and propose best practices for more robust benchmark design. Moreover, we introduce a three-stage attack strategy that cascades standard prompt injection attacks, second-order attacks, and adaptive attacks to evaluate the robustness beyond existing attacks. Overall, our work shows that existing agentic security benchmarks are easily saturated by a simple approach and highlights the need for stronger benchmarks with carefully chosen evaluation metrics and strong adaptive attacks.
Key facts. Cited by 18 papers in the map (data through 14 Oct 2026). Placed in Prompt injection and agent security, one of 12 directions in LLM safety and security. Builds on 23 of its 29 references that are in the map. First posted on arXiv 6 Oct 2025.
Builds on
23 of 29 references.
Closest ancestors · 15
Same direction, newest first
- 2025PromptArmor: Simple yet Effective Prompt Injection Defenses21 Jul
- 2025Progent: Securing AI Agents with Privilege Control16 Apr
- 2025DataSentinel: A Game-Theoretic Detection of Prompt Injection Attacks15 Apr
- 2025Defeating Prompt Injections by Design24 Mar
- 2025MELON: Provable Defense Against Indirect Prompt Injection Attacks in AI Agents7 Feb
- 2025PromptShield: Deployable Detection for Prompt Injection Attacks25 Jan
- 2024SecAlign: Defending Against Prompt Injection with Preference Optimization7 Oct
- 2024Agent Security Bench (ASB): Formalizing and Benchmarking Attacks and Defenses in LLM-based Agents3 Oct
- 2024System-Level Defense against Indirect Prompt Injection Attacks: An Information Flow Control Perspective27 Sep
- 2024The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructions19 Apr
- 2024Defending Against Indirect Prompt Injection Attacks With Spotlighting20 Mar
- 2024InjecAgent: Benchmarking Indirect Prompt Injections in Tool-Integrated Large Language Model Agents5 Mar
3 more
Other references · 8
- 2025Qwen3 Technical Reportcited by 8,820
- 2023Identifying the Risks of LM Agents with an LM-Emulated Sandboxcited by 548
- 2024IsolateGPT: An Execution Isolation Architecture for LLM-Based Agentic Systemscited by 130
- 2024AirGapAgent: Protecting Privacy-Conscious Conversational Agentscited by 94
- 2025Prompt Flow Integrity to Prevent Privilege Escalation in LLM Agentscited by 87
- 2025Firewalls to Secure Dynamic LLM Agentic Networkscited by 36
- 2025DoomArena: A framework for Testing AI Agents Against Evolving Security Threatscited by 32
- 2024TapeAgents: a Holistic Framework for Agent Development and Optimizationcited by 13
Built on by
Citing papers per year: 2026: 18.
18 papers.
Sort:
By area:
- 2026CausalArmor: Efficient Indirect Prompt Injection Guardrails via Causal Attributioncited by 14
- 2026OpenClaw PRISM: A Zero-Fork, Defense-in-Depth Runtime Security Layer for Tool-Augmented LLM Agentscited by 11
- 2026ICON: Indirect Prompt Injection Defense for Agents based on Inference-Time Correctioncited by 10
- 2026Lingering Authority: Revocable Resource-and-Effect Capabilities for Coding Agentscited by 8
- 2026Your Agent is More Brittle Than You Think: Uncovering Indirect Injection Vulnerabilities in Agentic LLMscited by 4
- 2026NetInjectBench: Benchmarking Indirect Prompt Injection in Tool-Using Large Language Model Agents for Network Operationscited by 4
- 2026Plant, Persist, Trigger: Sleeper Attack on Large Language Model Agentscited by 3
- 2026No More, No Less: Task Alignment in Terminal Agentscited by 2
- 2026AgentDrift: A Step-Labeled Benchmark of Injection-Hijacked LLM Agent Trajectoriescited by 2
- 2026Harness-MU: A Safe, Governed, and Effective Harness for Multi-User LLM Agentscited by 1
- 2026APPA: Recoverable Information-Flow Control for Real-World LLM Agentscited by 1
- 2026BenchShield: Formal Model-Backed Instrumentation for Reward Integrity in LLM-Agent Evaluation Infrastructurecited by 1
6 more
- 2026Security Attack and Defense Strategies for Autonomous Agent Frameworks: A Layered Review with OpenClaw as a Case Studycited by 0
- 2026Backdoor Decontamination Dynamics in LLM Agentscited by 0
- 2026Authority Is Not a String: A Capability-Scoped Harness for Prompt-Injection-Resistant Coding Agentscited by 0
- 2026Divide and Inject: Can Agents Reconstruct an Indirect Prompt Injection from Fragments?cited by 0
- 2026What Counts as the Same Task? Executable Contracts for Robustness Evaluation of Tool-Using Agentscited by 0
- 2026Can agents whose sole duty is to keep humans alive be hijacked to kill? Delayed multi-turn derived-action trap attacks in simulated high-stakes environmentscited by 0
- 2026Can agents whose sole duty is to keep humans alive be hijacked to kill? Delayed multi-turn derived-action trap attacks in simulated high-stakes environments10 Oct 2026
- 2026What Counts as the Same Task? Executable Contracts for Robustness Evaluation of Tool-Using Agents10 Oct 2026
- 2026Divide and Inject: Can Agents Reconstruct an Indirect Prompt Injection from Fragments?29 Sep 2026
- 2026BenchShield: Formal Model-Backed Instrumentation for Reward Integrity in LLM-Agent Evaluation Infrastructure10 Sep 2026
- 2026Authority Is Not a String: A Capability-Scoped Harness for Prompt-Injection-Resistant Coding Agents8 Sep 2026
- 2026AgentDrift: A Step-Labeled Benchmark of Injection-Hijacked LLM Agent Trajectories7 Sep 2026
- 2026Backdoor Decontamination Dynamics in LLM Agents11 Aug 2026
- 2026APPA: Recoverable Information-Flow Control for Real-World LLM Agents27 Jul 2026
- 2026NetInjectBench: Benchmarking Indirect Prompt Injection in Tool-Using Large Language Model Agents for Network Operations11 Jul 2026
- 2026Lingering Authority: Revocable Resource-and-Effect Capabilities for Coding Agents21 Jun 2026
- 2026Harness-MU: A Safe, Governed, and Effective Harness for Multi-User LLM Agents20 Jun 2026
- 2026Plant, Persist, Trigger: Sleeper Attack on Large Language Model Agents27 May 2026
6 more
- 2026No More, No Less: Task Alignment in Terminal Agents12 May 2026
- 2026Security Attack and Defense Strategies for Autonomous Agent Frameworks: A Layered Review with OpenClaw as a Case Study30 Apr 2026
- 2026Your Agent is More Brittle Than You Think: Uncovering Indirect Injection Vulnerabilities in Agentic LLMs4 Apr 2026
- 2026OpenClaw PRISM: A Zero-Fork, Defense-in-Depth Runtime Security Layer for Tool-Augmented LLM Agents12 Mar 2026
- 2026ICON: Indirect Prompt Injection Defense for Agents based on Inference-Time Correction24 Feb 2026
- 2026CausalArmor: Efficient Indirect Prompt Injection Guardrails via Causal Attribution8 Feb 2026
- 2026CausalArmor: Efficient Indirect Prompt Injection Guardrails via Causal Attributioncited by 14
- 2026OpenClaw PRISM: A Zero-Fork, Defense-in-Depth Runtime Security Layer for Tool-Augmented LLM Agentscited by 11
- 2026ICON: Indirect Prompt Injection Defense for Agents based on Inference-Time Correctioncited by 10
- 2026Lingering Authority: Revocable Resource-and-Effect Capabilities for Coding Agentscited by 8
- 2026Your Agent is More Brittle Than You Think: Uncovering Indirect Injection Vulnerabilities in Agentic LLMscited by 4
- 2026NetInjectBench: Benchmarking Indirect Prompt Injection in Tool-Using Large Language Model Agents for Network Operationscited by 4
- 2026Plant, Persist, Trigger: Sleeper Attack on Large Language Model Agentscited by 3
- 2026AgentDrift: A Step-Labeled Benchmark of Injection-Hijacked LLM Agent Trajectoriescited by 2
- 2026Harness-MU: A Safe, Governed, and Effective Harness for Multi-User LLM Agentscited by 1
- 2026APPA: Recoverable Information-Flow Control for Real-World LLM Agentscited by 1
- 2026BenchShield: Formal Model-Backed Instrumentation for Reward Integrity in LLM-Agent Evaluation Infrastructurecited by 1
- 2026Security Attack and Defense Strategies for Autonomous Agent Frameworks: A Layered Review with OpenClaw as a Case Studycited by 0
12 most cited of 15 All 15 (JSON)
- 2026Divide and Inject: Can Agents Reconstruct an Indirect Prompt Injection from Fragments?29 Sep 2026
- 2026BenchShield: Formal Model-Backed Instrumentation for Reward Integrity in LLM-Agent Evaluation Infrastructure10 Sep 2026
- 2026Authority Is Not a String: A Capability-Scoped Harness for Prompt-Injection-Resistant Coding Agents8 Sep 2026
- 2026AgentDrift: A Step-Labeled Benchmark of Injection-Hijacked LLM Agent Trajectories7 Sep 2026
- 2026Backdoor Decontamination Dynamics in LLM Agents11 Aug 2026
- 2026APPA: Recoverable Information-Flow Control for Real-World LLM Agents27 Jul 2026
- 2026NetInjectBench: Benchmarking Indirect Prompt Injection in Tool-Using Large Language Model Agents for Network Operations11 Jul 2026
- 2026Lingering Authority: Revocable Resource-and-Effect Capabilities for Coding Agents21 Jun 2026
- 2026Harness-MU: A Safe, Governed, and Effective Harness for Multi-User LLM Agents20 Jun 2026
- 2026Plant, Persist, Trigger: Sleeper Attack on Large Language Model Agents27 May 2026
- 2026Security Attack and Defense Strategies for Autonomous Agent Frameworks: A Layered Review with OpenClaw as a Case Study30 Apr 2026
- 2026Your Agent is More Brittle Than You Think: Uncovering Indirect Injection Vulnerabilities in Agentic LLMs4 Apr 2026
12 newest of 15 All 15 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2026Architecting Secure AI Agents: Perspectives on System-Level Defenses Against Indirect Prompt Injection Attacks
- 2024AgentDojo: A Dynamic Environment to Evaluate Prompt Injection Attacks and Defenses for LLM Agents
- 2026Silent Failures in Agentic Security Evaluation: A Validated Harness for Tool-Call Mediation Under Indirect Prompt Injection
- 2026AutoDojo: Adaptive Black-Box Attacks Reveal the Limits of IPI Defenses and Task-Specification Effects in LLM Agents
- 2026Assessing Automated Prompt Injection Attacks in Agentic Environments
- 2026Optimizing Agent Planning for Security and Autonomy
- 2026The Landscape of Prompt Injection Threats in LLM Agents: From Taxonomy to Analysis
- 2026AgentWall: A Runtime Safety Layer for Local AI Agents