吸引性元数据攻击:诱导LLM代理调用恶意工具
Attractive Metadata Attack: Inducing LLM Agents to Invoke Malicious Tools
AI总结:
本研究提出AMA攻击,通过操纵工具元数据诱导LLM代理调用恶意工具,揭示了系统性安全漏洞。
摘要:
大型语言模型(LLM)代理通过利用外部工具在复杂推理和决策中表现出显著能力。然而,这种以工具为中心的范式引入了一个此前未被充分探讨的攻击面,即攻击者可以操纵工具元数据——如名称、描述和参数模式——以影响代理行为。我们将其识别为一种新的、隐蔽的威胁面,允许恶意工具被LLM代理优先选择,而无需提示注入或访问模型内部。为了演示和利用这一漏洞,我们提出了吸引性元数据攻击(AMA),一种黑盒上下文学习框架,通过迭代优化生成高度吸引但语法和语义上有效的工具元数据。所提出的攻击无缝集成到标准工具生态系统中,无需修改代理的执行框架。在十个现实的、模拟的工具使用场景和多种流行的LLM代理上进行的广泛实验显示,攻击成功率(81%-95%)和显著的隐私泄露,对主要任务执行影响极小。此外,该攻击在提示级防御、审计员级检测和结构化工具选择协议如模型上下文协议中仍然有效,揭示了当前代理架构中的系统性漏洞。这些发现表明,元数据操纵构成了一个强大而隐蔽的攻击面。值得注意的是,AMA与注入攻击相互独立,可以与之结合以实现更强的攻击效果,突显了需要超越提示级和审计员级机制的执行级防御的必要性。代码可在https://github.com/SEAIC-M/AMA上获得。
英文摘要:
Large language model (LLM) agents have demonstrated remarkable capabilities in complex reasoning and decision-making by leveraging external tools. However, this tool-centric paradigm introduces a previously underexplored attack surface, where adversaries can manipulate tool metadata -- such as names, descriptions, and parameter schemas -- to influence agent behavior. We identify this as a new and stealthy threat surface that allows malicious tools to be preferentially selected by LLM agents, without requiring prompt injection or access to model internals. To demonstrate and exploit this vulnerability, we propose the Attractive Metadata Attack (AMA), a black-box in-context learning framework that generates highly attractive but syntactically and semantically valid tool metadata through iterative optimization. The proposed attack integrates seamlessly into standard tool ecosystems and requires no modification to the agent's execution framework. Extensive experiments across ten realistic, simulated tool-use scenarios and a range of popular LLM agents demonstrate consistently high attack success rates (81\%-95\%) and significant privacy leakage, with negligible impact on primary task execution. Moreover, the attack remains effective even against prompt-level defenses, auditor-based detection, and structured tool-selection protocols such as the Model Context Protocol, revealing systemic vulnerabilities in current agent architectures. These findings reveal that metadata manipulation constitutes a potent and stealthy attack surface. Notably, AMA is orthogonal to injection attacks and can be combined with them to achieve stronger attack efficacy, highlighting the need for execution-level defenses beyond prompt-level and auditor-based mechanisms. Code is available at https://github.com/SEAIC-M/AMA.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。