mlsanityData to 14 Oct 2026

Indirect Prompt Injections: Are Firewalls All You Need, or Stronger Benchmarks?

arXiv 2510.05244 ↗First posted 6 Oct 2025cs.CRcited by 18

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

  1. 2025PromptArmor: Simple yet Effective Prompt Injection Defenses21 Jul
  2. 2025Progent: Securing AI Agents with Privilege Control16 Apr
  3. 2025DataSentinel: A Game-Theoretic Detection of Prompt Injection Attacks15 Apr
  4. 2025Defeating Prompt Injections by Design24 Mar
  5. 2025MELON: Provable Defense Against Indirect Prompt Injection Attacks in AI Agents7 Feb
  6. 2025PromptShield: Deployable Detection for Prompt Injection Attacks25 Jan
  7. 2024SecAlign: Defending Against Prompt Injection with Preference Optimization7 Oct
  8. 2024Agent Security Bench (ASB): Formalizing and Benchmarking Attacks and Defenses in LLM-based Agents3 Oct
  9. 2024System-Level Defense against Indirect Prompt Injection Attacks: An Information Flow Control Perspective27 Sep
  10. 2024The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructions19 Apr
  11. 2024Defending Against Indirect Prompt Injection Attacks With Spotlighting20 Mar
  12. 2024InjecAgent: Benchmarking Indirect Prompt Injections in Tool-Integrated Large Language Model Agents5 Mar
3 more
  1. 2024StruQ: Defending Against Prompt Injection with Structured Queries9 Feb
  2. 2023Formalizing and Benchmarking Prompt Injection Attacks and Defenses19 Oct
  3. 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection23 Feb

Other references · 8

  1. 2025Qwen3 Technical Reportcited by 8,820
  2. 2023Identifying the Risks of LM Agents with an LM-Emulated Sandboxcited by 548
  3. 2024IsolateGPT: An Execution Isolation Architecture for LLM-Based Agentic Systemscited by 130
  4. 2024AirGapAgent: Protecting Privacy-Conscious Conversational Agentscited by 94
  5. 2025Prompt Flow Integrity to Prevent Privilege Escalation in LLM Agentscited by 87
  6. 2025Firewalls to Secure Dynamic LLM Agentic Networkscited by 36
  7. 2025DoomArena: A framework for Testing AI Agents Against Evolving Security Threatscited by 32
  8. 2024TapeAgents: a Holistic Framework for Agent Development and Optimizationcited by 13

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 18.

18 papers.

Sort:

By area:

  1. 2026CausalArmor: Efficient Indirect Prompt Injection Guardrails via Causal Attributioncited by 14
  2. 2026OpenClaw PRISM: A Zero-Fork, Defense-in-Depth Runtime Security Layer for Tool-Augmented LLM Agentscited by 11
  3. 2026ICON: Indirect Prompt Injection Defense for Agents based on Inference-Time Correctioncited by 10
  4. 2026Lingering Authority: Revocable Resource-and-Effect Capabilities for Coding Agentscited by 8
  5. 2026Your Agent is More Brittle Than You Think: Uncovering Indirect Injection Vulnerabilities in Agentic LLMscited by 4
  6. 2026NetInjectBench: Benchmarking Indirect Prompt Injection in Tool-Using Large Language Model Agents for Network Operationscited by 4
  7. 2026Plant, Persist, Trigger: Sleeper Attack on Large Language Model Agentscited by 3
  8. 2026No More, No Less: Task Alignment in Terminal Agentscited by 2
  9. 2026AgentDrift: A Step-Labeled Benchmark of Injection-Hijacked LLM Agent Trajectoriescited by 2
  10. 2026Harness-MU: A Safe, Governed, and Effective Harness for Multi-User LLM Agentscited by 1
  11. 2026APPA: Recoverable Information-Flow Control for Real-World LLM Agentscited by 1
  12. 2026BenchShield: Formal Model-Backed Instrumentation for Reward Integrity in LLM-Agent Evaluation Infrastructurecited by 1
6 more
  1. 2026Security Attack and Defense Strategies for Autonomous Agent Frameworks: A Layered Review with OpenClaw as a Case Studycited by 0
  2. 2026Backdoor Decontamination Dynamics in LLM Agentscited by 0
  3. 2026Authority Is Not a String: A Capability-Scoped Harness for Prompt-Injection-Resistant Coding Agentscited by 0
  4. 2026Divide and Inject: Can Agents Reconstruct an Indirect Prompt Injection from Fragments?cited by 0
  5. 2026What Counts as the Same Task? Executable Contracts for Robustness Evaluation of Tool-Using Agentscited by 0
  6. 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

Similar, not cited

Close in wording, no citation either way

  1. 2026Architecting Secure AI Agents: Perspectives on System-Level Defenses Against Indirect Prompt Injection Attacks
  2. 2024AgentDojo: A Dynamic Environment to Evaluate Prompt Injection Attacks and Defenses for LLM Agents
  3. 2026Silent Failures in Agentic Security Evaluation: A Validated Harness for Tool-Call Mediation Under Indirect Prompt Injection
  4. 2026AutoDojo: Adaptive Black-Box Attacks Reveal the Limits of IPI Defenses and Task-Specification Effects in LLM Agents
  5. 2026Assessing Automated Prompt Injection Attacks in Agentic Environments
  6. 2026Optimizing Agent Planning for Security and Autonomy
  7. 2026The Landscape of Prompt Injection Threats in LLM Agents: From Taxonomy to Analysis
  8. 2026AgentWall: A Runtime Safety Layer for Local AI Agents