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

TRAP:用于探测大语言模型智能体中绑定错误的工具结果重放攻击

TRAP: Tool-result Replay Attack for Probing Misbinding in LLM Agents

Tsinghua University(清华大学);Shanghai AI Laboratory(上海人工智能实验室)

Yutong Zhi, Jie Zhang, Xiuqi Lu, Jiayuan Xu, Jing Shao

AI总结:

本研究提出TRAP攻击,引入ReplayBench基准,发现8种大语言模型在跨任务重放下平均最终状态错误率达0.649,证实工具结果绑定错误广泛存在,呼吁智能体运行时显式上下文绑定。

摘要:

随着人工智能智能体越来越多地通过外部工具执行操作,工具结果不再是简单的输出,而是必须与产生该结果的上下文正确关联的执行产物。然而,当结果在缓存、恢复机制和共享运行时状态中持续存在时,这种关联可能会断裂,导致真实且未修改的结果被用于不兼容的执行上下文,进而使智能体采取不安全的行动。我们将这种失败特征化为工具结果绑定错误。为了系统地研究该失败,我们引入了ReplayBench,这是一个使用受控工具结果重放来评估19种代表性智能体场景、4种失败属性和3种重放机制下绑定错误的基准。在8种大语言模型、3种智能体框架和各种有状态工作流中,我们发现了广泛的重放诱导失败,在跨任务重放下,平均最终状态错误率为0.649。分阶段分析将这些失败定位到模型侧的动作生成。进一步分析表明,重放敏感性随任务相似性而变化,与对象相似性几乎无关,并且在结果陈旧和隐式环境变化下仍然很高。这些发现催生了运行时有效性机制,该机制在我们评估的设置中消除了最终状态错误,同时保留了合法恢复。结果呼吁在使用工具的智能体运行时中显式的上下文绑定。本研究公开于此https URL。

英文摘要:

As AI agents increasingly act through external tools, tool results are no longer simple outputs but execution artifacts that must remain correctly associated with the context that produced them. Yet as results persist across caches, recovery mechanisms, and shared runtime state, this association can break, causing a real and unmodified result to be consumed in an incompatible execution context and lead the agent to an unsafe action. We characterize this failure as tool-result misbinding. To systematically study this failure, we introduce ReplayBench, a benchmark that uses controlled tool-result replay to evaluate misbinding across 19 representative agent scenarios, 4 failure properties, and 3 replay mechanisms. Across eight LLMs, three agent frameworks, and diverse stateful workflows, we find widespread replay-induced failures, with a mean Final-State Error Rate of 0.649 under cross-task replay. Stage-wise analysis localizes these failures to model-side action generation. Further analyses show that replay susceptibility varies with task similarity, shows little dependence on object similarity, and remains high under result staleness and implicit environment changes. These findings motivate runtime validity mechanisms that eliminate final-state errors in our evaluated settings while preserving legitimate recovery. The results call for explicit contextual binding in tool-using agent runtimes. Our work is public at https://github.com/Phitooo/Replaybench.

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

↑