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

VIGIL: 通过验证后再提交协议保护LLM代理免受工具流注入攻击

VIGIL: Defending LLM Agents Against Tool Stream Injection via Verify-Before-Commit

University of Science and Technology of China(中国科学技术大学);North Automatic Control Technology Research Institute(北自动控制技术研究所)

Junda Lin, Zhaomeng Zhou, Zhi Zheng, Shuochen Liu, Tong Xu, Yong Chen, Enhong Chen

AI总结:

VIGIL通过验证后再提交协议保护LLM代理免受工具流注入攻击,有效提升安全性和效用平衡。

摘要:

LLM代理在开放环境中面临间接提示注入风险的上升,特别是在工具流中, manipulated metadata和runtime反馈劫持执行流程。现有防御措施遇到一个关键矛盾,因为先进模型由于严格对齐而优先考虑注入规则,而静态保护机制切断了适应性推理所需的反馈回路。为解决这一冲突,我们提出VIGIL,一个将限制性隔离转变为验证后再提交协议的框架。通过促进推测性假设生成并通过意图导向的验证来确保安全,VIGIL在保持推理灵活性的同时确保了鲁棒控制。我们进一步引入SIREN,一个包含959个工具流注入案例的基准,旨在模拟普遍存在威胁,其特征是动态依赖关系。广泛的实验表明,VIGIL在减少攻击成功率超过22%的同时,比最先进的动态防御措施在攻击下超过一倍的效用,从而在安全性和效用之间实现了最佳平衡。

英文摘要:

LLM agents operating in open environments face escalating risks from indirect prompt injection, particularly within the tool stream where manipulated metadata and runtime feedback hijack execution flow. Existing defenses encounter a critical dilemma as advanced models prioritize injected rules due to strict alignment while static protection mechanisms sever the feedback loop required for adaptive reasoning. To reconcile this conflict, we propose \textbf{VIGIL}, a framework that shifts the paradigm from restrictive isolation to a verify-before-commit protocol. By facilitating speculative hypothesis generation and enforcing safety through intent-grounded verification, \textbf{VIGIL} preserves reasoning flexibility while ensuring robust control. We further introduce \textbf{SIREN}, a benchmark comprising 959 tool stream injection cases designed to simulate pervasive threats characterized by dynamic dependencies. Extensive experiments demonstrate that \textbf{VIGIL} outperforms state-of-the-art dynamic defenses by reducing the attack success rate by over 22\% while more than doubling the utility under attack compared to static baselines, thereby achieving an optimal balance between security and utility.

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

↑