arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.24248cs.CRcs.AIcs.SE
收藏

认证工具服务器准入:模型上下文协议的安全扩展

Attested Tool-Server Admission: A Security Extension to the Model Context Protocol

Enclawed LLC(Enclawed公司)

Alfredo Metere

AI总结:

针对MCP协议缺乏信任机制的问题,提出mcp-attested扩展,通过离线签名的权限断言、默认拒绝的工具白名单和分级强制审计日志,实现安全服务器准入与工具边界控制。

摘要:

模型上下文协议(MCP)标准化了大语言模型(LLM)代理与外部工具服务器之间的消息交换,但未标准化信任:主机读取服务器自声明的工具列表并分发调用,没有关于可以使用哪些服务器、敏感程度如何或服务器哪些工具在界限内的概念。这项工作源于一个具体需求——让Enclawed代理安全地使用Google外部运营的MCP服务器(Gmail、日历、Drive),准入服务器并限制其可能驱动的工具,而不改变MCP或Enclawed自身的工具应用程序编程接口(API)。我们构建的机制mcp-attested(已在开源enclawed-oss发行版和enclaved变体中发布)具有通用性:使未经中介的第三方连接对单个用户不安全的差距,使得受监管的部署无法获得认证。我们通过三种附加机制来弥补这一差距:(1)一个小的、离线签名的权限断言,服务器在众所周知的统一资源标识符(URI)上发布,主机在分派任何工具之前对照固定的信任根进行验证;(2)一个默认拒绝的每服务器工具允许列表,因此准入服务器并不意味着信任其每个工具;(3)一个分级门控的强制模式,将检查从警告转变为硬性拒绝,每个决策都写入防篡改审计日志。我们给出了线路格式、验证算法、安全分析和LLM驱动的对抗性评估;然后以规范的请求评论(RFC 2119)形式陈述了设计——模式、验证规则、错误注册表、众所周知的注册和机器可检查的一致性向量——以便它可以作为MCP附录被采纳,而不是重新发明。未扩展的主机会忽略众所周知的文档,行为与今天完全相同。

英文摘要:

The Model Context Protocol (MCP) standardizes how a large-language-model (LLM) agent and an external tool server exchange messages, but not trust: a host reads a server's self-declared tool list and dispatches calls, with no notion of which servers it may use, at what sensitivity, or which of a server's tools are in bounds. This work grew out of a concrete need -- letting the Enclawed agent use Google's externally-operated MCP servers (Gmail, Calendar, Drive) safely, admitting the server and bounding the tools it may drive, without changing MCP or Enclawed's own tool application-programming interface (API). The mechanism we built, mcp-attested (shipped in both the open enclawed-oss distribution and the enclaved flavor), generalizes: the gap that makes an unmediated third-party connection unsafe for one user makes a regulated deployment impossible to accredit. We close it with three additive mechanisms: (1) a small, offline-signed clearance assertion a server publishes at a well-known Uniform Resource Identifier (URI) and a host verifies against a pinned trust root before any tool dispatch; (2) a deny-by-default per-server tool allowlist, so admitting a server is not trusting its every tool; and (3) a flavor-gated enforcement mode that turns the checks from warnings into hard denials, with every decision written to a tamper-evident audit log. We give the wire format, the verification algorithm, a security analysis, and an LLM-driven adversarial evaluation; we then state the design in normative Request-for-Comments (RFC 2119) form -- schema, verification rules, error registry, well-known registration, and machine-checkable conformance vectors -- so it can be adopted as an MCP addendum rather than reinvented. An unextended host ignores the well-known document and behaves exactly as today.

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

↑