arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.05244cs.CR
收藏

间接提示注入:防火墙足够吗,还是需要更强的基准?

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

ServiceNow;Mila;Université de Montréal(蒙特利尔大学);University of Guelph(圭尔夫大学);Vector Institute(Vector研究所)

Rishika Bhagwatkar, Kevin Kasa, Abhay Puri, Gabriel Huang, Irina Rish, Graham W. Taylor, Krishnamurthy Dj Dvijotham, Alexandre Lacoste

AI总结:

本文提出一种简单高效的防御机制,通过防火墙在代理-工具接口实现高安全性和实用性,同时指出现有基准的不足,并提出改进方案。

摘要:

AI代理易受间接提示注入攻击,恶意指令嵌入外部内容或工具输出导致意外或有害行为。受防火墙概念启发,本文展示一种简单、模块化且模型无关的防御机制,在四个公开基准(AgentDojo、Agent Security Bench、InjecAgent和tau-Bench)中实现完美安全与高实用性,同时达到最先进的安全-实用性权衡。具体采用两种防火墙:工具输入防火墙(Minimizer)和工具输出防火墙(Sanitizer)。不同于以往复杂方法,该防御对代理无假设,可即插即用。分析揭示现有基准的局限性,包括错误的成功指标、实现漏洞和最关键是弱攻击,阻碍进展。为此,本文为AgentDojo和Agent Security Bench提出针对性修复,并提出更稳健的基准设计最佳实践。此外,引入三阶段攻击策略,依次评估标准提示注入攻击、二次攻击和自适应攻击的鲁棒性。总体而言,本文表明现有代理安全基准易被简单方法饱和,凸显需要更严格的基准,包含精心选择的评估指标和强自适应攻击。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑