arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2510.15994cs.CRcs.AI
收藏

MCP安全基准(MSB):针对LLM代理中模型上下文协议的攻击评估

MCP Security Bench (MSB): Benchmarking Attacks Against Model Context Protocol in LLM Agents

Beijing University of Posts and Telecommunications(北京邮电大学);University of California, Santa Barbara(加州大学圣巴巴拉分校)

Dongsen Zhang, Zekun Li, Xu Luo, Xuannan Liu, Peipei Li, Wenjun Xu

AI总结:

本文提出MSB,首个端到端评估套件,系统评估LLM代理在MCP全流程中的抗攻击能力,包含12种攻击类型及性能指标NRP,评估九种主流LLM代理在10个领域405种工具上的表现。

摘要:

模型上下文协议(MCP)标准化了大型语言模型(LLM)代理发现、描述和调用外部工具的方式。尽管MCP解锁了广泛互操作性,但也通过使工具成为具有自然语言元数据的标准输入输出的一级可组合对象,扩大了攻击面。我们提出了MSB(MCP安全基准),首个端到端评估套件,系统衡量LLM代理在完整工具使用流程中抵御MCP特定攻击的能力:任务规划、工具调用和响应处理。MSB贡献:(1)12种攻击类型,包括名称冲突、偏好操纵、嵌入在工具描述中的提示注入、超出范围的参数请求、用户伪装响应、虚假错误升级、工具转移、检索注入和混合攻击;(2)评估工具,通过MCP运行真实工具(良性与恶意)执行攻击;(3)鲁棒性指标,量化安全与性能之间的权衡:净稳健性能(NRP)。我们评估了九种流行LLM代理在10个领域和405种工具上的表现,生成2000个攻击实例。结果揭示了攻击对MCP各阶段的有效性。性能更强的模型更易受攻击,因其出色的工具调用和指令遵循能力。MSB为研究人员和实践者提供了研究、比较和加强MCP代理的实用基准。代码:https://github.com/dongsenzhang/MSB

英文摘要:

The Model Context Protocol (MCP) standardizes how large language model (LLM) agents discover, describe, and call external tools. While MCP unlocks broad interoperability, it also enlarges the attack surface by making tools first-class, composable objects with natural-language metadata, and standardized I/O. We present MSB (MCP Security Benchmark), the first end-to-end evaluation suite that systematically measures how well LLM agents resist MCP-specific attacks throughout the full tool-use pipeline: task planning, tool invocation, and response handling. MSB contributes: (1) a taxonomy of 12 attacks including name-collision, preference manipulation, prompt injections embedded in tool descriptions, out-of-scope parameter requests, user-impersonating responses, false-error escalation, tool-transfer, retrieval injection, and mixed attacks; (2) an evaluation harness that executes attacks by running real tools (both benign and malicious) via MCP rather than simulation; and (3) a robustness metric that quantifies the trade-off between security and performance: Net Resilient Performance (NRP). We evaluate nine popular LLM agents across 10 domains and 405 tools, producing 2,000 attack instances. Results reveal the effectiveness of attacks against each stage of MCP. Models with stronger performance are more vulnerable to attacks due to their outstanding tool calling and instruction following capabilities. MSB provides a practical baseline for researchers and practitioners to study, compare, and harden MCP agents. Code: https://github.com/dongsenzhang/MSB

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

↑