用自适应攻击测试大模型代理防御,发现多数防护形同虚设。
AutoDojo: Adaptive Black-Box Attacks Reveal the Limits of IPI Defenses and Task-Specification Effects in LLM Agents

- 设计自适应攻击工具AutoDojo,动态优化钓鱼指令突破防御。
- 黑盒攻击使成功率飙升,部分防御失效率达64%以上。
- 行动开放任务漏洞更大,因攻击可伪装成普通数据绕过检测。
间接提示注入(IPI)是大语言模型代理的主要安全威胁。现有防御方法分为三类:基于提示、基于检测和系统级。但常用基准如AgentDojo本质静态,无法评估对自适应攻击的鲁棒性。本文提出AutoDojo,作为AgentDojo的自适应扩展,针对特定防御优化攻击。在三个任务套件和五种目标模型上测试,发现多数防御保护有限:使用前沿大模型进行黑盒迭代优化,攻击成功率(ASR)显著高于静态攻击;即使某过滤器将静态ASR降至0%,AutoDojo仍恢复28%整体成功率,行动开放任务达64%。此外,提示级与过滤类防御在行动开放任务上表现更差,因其攻击可伪装为普通数据而非指令,规避检测机制。代码已开源。
原文摘要 · Abstract (English)
Indirect prompt injection (IPI) is a major security threat to LLM-powered agents. Thus, a growing body of work have proposed a variety of defensive approaches against IPI. These can be grouped into three broad categories: 1) prompt-based (using prompting as a way to prevent agents from following malicious instructions), 2) detection-based (identifying and filtering malicious instructions), and 3) system-level (using systems insights, such as control and data isolation, for defense). However, commonly used benchmarks for evaluating defense, such as AgentDojo, are \emph{inherently static}, generating a fixed distribution of IPI attacks. Consequently, static benchmarks do not usefully evaluate defense robustness to adaptive threats. We address this issue by developing AutoDojo, an adaptive extension of AgentDojo that optimizes IPI against a given defense. Using AutoDojo against state-of-the-art IPI defenses across three task suites and five target models, we make two key observations. First, many defenses offer only limited protection: a cheap, black-box adaptive attack using a frontier LLM to iteratively optimize the injection raises attack success rate (ASR) well above the level achieved by static injections against nearly all evaluated defenses. Against a filter that reduces static ASR to 0\%, AutoDojo recovers 28\% overall and 64\% on action-open tasks. Second, for prompt-level and filter-based defenses, ASR is substantially higher on \emph{action-open} tasks -- where the user's request delegates the action itself to attacker-controlled content -- than on precisely specified tasks. This is a structural limit: on such tasks the injection can pose as ordinary data rather than an explicit instruction, bypassing defenses that rely on detecting instruction-like text. AutoDojo is publicly available at https://github.com/xhOwenMa/AutoDojo.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。