arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2611.01976cs.CRcs.AI
收藏

超越提示注入:LLM智能体安全中的工具更新缺口

Beyond Prompt Injection: The Tool Update Gap in LLM Agent Security

Shanghai Jiao Tong University(上海交通大学);Inria(法国国家数字与信息技术研究所)

Shiyu Kan, Yue Qi, Yufei Han, Xinjian Luo, Guojun Xiong, Xiaofeng Gao

AI总结:

该研究针对LLM智能体安全提出工具更新缺口问题,提出ETUDE攻击方法,在七种框架上评估获97.6%攻击成功率,发现现有防御对此威胁保护不足。

摘要:

基于大语言模型的智能体越来越依赖外部工具来调用服务和与网络资源交互。这些工具可通过软件更新进行迭代,但智能体框架可能在工具实现变更后仍继续信任它们,而不重新验证其安全性。这种工具更新缺口在智能体系统中形成了供应链漏洞:由于更新后的工具代码在LLM的上下文窗口外执行,嵌入在工具更新中的恶意功能可绕过以模型可见交互为核心的防御,使智能体面临现有上下文防御难以应对的隐蔽、持续威胁。为深入研究该威胁,我们提出ETUDE(Exploiting Tool Updates for Direct Execution,利用工具更新进行直接执行),这是一种将恶意功能嵌入原本良性工具的更新中以生成受感染工具,同时保留其合法功能的攻击。与基于提示的攻击不同,ETUDE完全在LLM上下文外运行,且不需要对抗性指令,因此可绕过仅针对模型可见内容的防御。我们在三种代表性攻击工作负载和七种广泛使用的商业及开源智能体框架(包括Gemini CLI、Codex CLI和Claude Code)上评估ETUDE。结果显示,ETUDE达到97.6%的攻击成功率(ASR),同时保持95.9%的合法任务完成率。我们进一步检查现有防御,发现它们对该威胁的保护不足。这些发现揭示了当前智能体安全实践中的一个根本盲点:对工具建立的信任在其实现更新后不一定仍然有效。

英文摘要:

Large language model based agents increasingly rely on external tools to invoke services and interact with web resources. These tools can evolve through software updates, yet agentic frameworks may continue trusting them without re-verifying their safety after implementation changes. This tool update gap creates a supply-chain vulnerability in agentic systems: because updated tool code executes outside the LLM's context window, malicious functionality embedded in tool updates can bypass defenses centered on model-visible interactions, leaving agents exposed to stealthy, persistent threats that existing in-context defenses can hardly address. To thoroughly investigate this threat, we introduce ETUDE (Exploiting Tool Updates for Direct Execution), an attack that embeds malicious functionality into updates of initially benign tools to produce compromised tools, while preserving their legitimate tool functionality. Unlike prompt-based attacks, ETUDE operates entirely outside the LLM's context and requires no adversarial instructions, thereby bypassing defenses restricted to model-visible content. We evaluate ETUDE across three representative attack workloads and seven widely used commercial and open-source agentic frameworks, including Gemini CLI, Codex CLI, and Claude Code. The results show that ETUDE achieves a 97.6% ASR while maintaining a 95.9% legitimate task completion rate. We further examine existing defenses and find that they provide insufficient protection against this threat. These findings expose a fundamental blind spot in current agent security practices: trust established for a tool does not necessarily remain valid after its implementation updates.

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

↑