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

三思而后行:通过隔离规划保护LLM代理免受工具描述投毒攻击

Think Twice Before You Act: Protecting LLM Agents Against Tool Description Poisoning via Isolated Planning

Washington University in St. Louis(圣路易斯华盛顿大学);Virginia Tech(弗吉尼亚理工大学)

Shanghao Shi, Xiao Wang, Chaoyu Zhang, Hao Li, Wenjing Lou, Thomas Hou, Yevgeniy Vorobeychik, Chongjie Zhang, Ning Zhang

AI总结:

提出Tool-Guard系统级防御,通过隔离规划机制将可疑工具调用隔离到受感染列表,阻断投毒描述持续影响,在AgentDojo和ASB基准上显著降低攻击成功率并保持任务效用。

摘要:

外部工具的集成大幅扩展了大语言模型(LLM)代理的能力,但也引入了超出提示注入的新攻击面。特别是,跨工具描述投毒可以操纵规划器可见的工具元数据来引导代理的轨迹,即使被投毒的工具本身从未被选中。为了理解现有防御措施对这种新兴威胁的有效性,我们首先评估了几种提示注入防御,发现它们难以迁移到跨工具描述投毒。一个关键观察是,投毒描述在规划上下文中跨步骤持续存在,从而对后续工具选择产生持续影响。基于这一见解,我们提出了Tool-Guard,一种基于称为隔离规划的新概念的系统级防御,其中检测为不匹配或可疑的工具调用会导致相应工具被放入隔离列表(受影响列表),从而打破投毒描述的进一步影响。通过隔离这种影响,该工具可以继续用于支持任务,从而实现既保持鲁棒防御又保留合法工具效用的能力。在AgentDojo和ASB基准上的实验表明,Tool-Guard在保持高任务效用的同时显著降低了攻击成功率。我们的代码可从此https URL获取。

英文摘要:

The integration of external tools has substantially expanded the capabilities of large language model (LLM) agents, but it also introduces new attack surfaces beyond prompt injection. In particular, cross-tool description poisoning can manipulate planner-visible tool metadata to steer an agent's trajectory, even if the poisoned tool itself is never chosen. To understand the effectiveness of existing defenses against this emerging threat, we first evaluate several prompt-injection defenses and find that they transfer poorly to cross-tool description poisoning. A key observation is that poisoned descriptions persist in the planning context across steps, enabling continuous influence over subsequent tool choices. Building on this insight, we propose Tool-Guard, a novel system-level defense based on a new concept called isolated planning, in which tool invocations that are detected as misaligned or suspicious cause the corresponding tool to be placed in a quarantined list (the influenced list), breaking further influence from poisoned descriptions. With this influence isolated, the tool can continue to be used to support the task, enabling a robust defense that preserves legitimate tool utility. Experiments on the AgentDojo and ASB benchmarks show that Tool-Guard substantially reduces attack success while maintaining high task utility. Our code is available at https://github.com/shishishi123/Tool-Guard.

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

↑