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

对模型上下文协议生态系统安全问题的首次观察

A First Look at the Security Issues in the Model Context Protocol Ecosystem

University of Delaware, USA(德克萨斯大学)

Xiaofan Li, Xing Gao

AI总结:

本文首次研究了模型上下文协议生态系统中的跨实体安全问题,揭示了注册表层面的漏洞和代码层面的攻击风险,提出了MCPInspect工具检测漏洞和可疑元数据。

摘要:

模型上下文协议(MCP)已成为连接大型语言模型(LLMs)与外部工具的标准。然而,MCP生态系统在主机、服务器和注册表层面引入了新的安全风险。本文首次在双阶段攻击面下对MCP进行了跨实体安全研究。在注册表层面,薄弱的审核和所有权检查允许对抗性或劫持的服务器进入主机。整合后,攻击者控制的工具元数据可以影响LLM推理并诱导攻击者意图的操作,这些操作由主机执行而无需独立验证。代码层面的漏洞(如代码注入)不需要但可以放大攻击者控制的参数以供利用。我们分析了六个公共注册表中的67,057台服务器,识别了广泛存在的允许服务器劫持和调用操纵的条件。我们进一步实现了MCPInspect,一种预整合分析工具,可以检测误导性的工具元数据和可利用的代码漏洞,识别出833台有缺陷的服务器和18台描述可疑的服务器。

英文摘要:

The Model Context Protocol (MCP) has emerged as a standard for connecting large language models (LLMs) with external tools. However, this MCP ecosystem introduces new security risks across hosts, servers, and registries. In this paper, we present the first cross-entity security study of MCP under a two-stage attack surface. At the registry-level, weak vetting and ownership checks allow adversarial or hijacked servers to enter hosts. After integration, attacker-controlled tool metadata can shape LLM reasoning and induce attacker-intended operations, which hosts execute without independent verification. Code-level vulnerabilities (e.g., code injection) are not required but can amplify attacker-controlled parameters into exploitation. We analyze 67,057 servers across six public registries and identify widespread conditions enabling server hijacking and invocation manipulation. We further implement MCPInspect, a pre-integration analysis tool that detects misleading tool metadata and exploitable code vulnerabilities, identifying 833 vulnerable servers and 18 with suspicious descriptions.

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

↑