A2M:MCP生态系统中基于执行轨迹优化的智能体劫持 A2M: Trace-Optimized Agent Hijacking in the MCP Ecosystem 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-09-22
⬇️ 2 次下载
👁️ 预览文献
💡 AI 中文简介
该研究揭示了MCP协议中智能体依赖语义匹配选择第三方工具的安全隐患。作者提出A2M两阶段黑盒攻击框架:先优化工具元数据提高被调用概率,再利用执行轨迹精炼恶意返回内容,从而操控智能体行为。在LiveMCPBench上,恶意工具调用率达93.6%,认知拒绝服务攻击使令牌成本增至32.4倍,信息窃取等攻击平均成功率为74.4%,且可迁移至其他模型。
领域人工智能安全 / 智能体系统安全
适合谁读需要一定专业背景(了解LLM智能体、MCP协议及对抗攻击基础)
核心贡献1. 首次提出针对MCP生态的两阶段黑盒劫持框架A2M,结合元数据优化与执行轨迹精炼;2. 在多个攻击场景下验证了高攻击成功率与跨模型迁移性,揭示了MCP语义供应链风险。
关键数据直接攻击(GLM-4.6优化评估):恶意工具调用率93.6%,认知拒绝服务下令牌成本为良性的32.4倍,信息窃取/环境完整性破坏/推理脱轨平均成功率74.4%;迁移至四个其他模型:对应指标分别为63.6%、2.7倍、24.5%。
推荐理由如果你关心AI智能体的安全漏洞,这篇论文用硬核数据展示了MCP生态的脆弱性,值得一读。
关键词["模型上下文协议", "智能体安全", "供应链攻击", "黑盒攻击", "工具调用", "执行轨迹优化"]

原文摘要

查看英文原文摘要

Agents using the Model Context Protocol (MCP) rely on semantic matching to select tools from third-party servers, exposing a semantic supply-chain risk through attacker-controlled metadata and outputs. We introduce A2M (Attraction-to-Manipulation), a two-stage black-box framework for hijacking MCP agents. The Attraction phase optimizes tool metadata to increase invocation probability; the Manipulation phase uses execution traces to refine adversarial tool returns that steer agents toward attacker-desired outcomes. On LiveMCPBench, direct attacks optimized and evaluated on GLM-4.6 achieve a macro-average malicious tool invocation rate of 93.6% across four scenarios, increase weighted token costs to 32.4$\times$ the benign baseline under Cognitive Denial of Service, and attain a mean attack success rate of 74.4% across Information Exfiltration, Environment Integrity Compromise, and Reasoning Derailment. Transfer to four other models without re-optimization yields corresponding macro-averages of 63.6%, 2.7$\times$, and 24.5%. These findings motivate stronger tool vetting and runtime isolation in MCP ecosystems. Code is publicly available at https://github.com/Lilaizhen/A2M.