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

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Bhagwatkar, Rishika, Kasa, Kevin, Puri, Abhay, Huang, Gabriel, Rish, Irina, Taylor, Graham W., Dvijotham, Krishnamurthy Dj, Lacoste, Alexandre
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866915882490396672
author Bhagwatkar, Rishika
Kasa, Kevin
Puri, Abhay
Huang, Gabriel
Rish, Irina
Taylor, Graham W.
Dvijotham, Krishnamurthy Dj
Lacoste, Alexandre
author_facet Bhagwatkar, Rishika
Kasa, Kevin
Puri, Abhay
Huang, Gabriel
Rish, Irina
Taylor, Graham W.
Dvijotham, Krishnamurthy Dj
Lacoste, Alexandre
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2510_05244
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Indirect Prompt Injections: Are Firewalls All You Need, or Stronger Benchmarks?
Bhagwatkar, Rishika
Kasa, Kevin
Puri, Abhay
Huang, Gabriel
Rish, Irina
Taylor, Graham W.
Dvijotham, Krishnamurthy Dj
Lacoste, Alexandre
Cryptography and Security
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.
title Indirect Prompt Injections: Are Firewalls All You Need, or Stronger Benchmarks?
topic Cryptography and Security
url https://arxiv.org/abs/2510.05244