签名、密封、泄露:超越签名的MCP工具链信任机制
Signed, Sealed, Leaked: Trust Beyond Signature for MCP Toolchains
AI总结:
该研究针对MCP工具链中签名工具仍可能泄露数据的问题,提出种系执行机制,通过数据隔离实现无授权泄露防护,性能优于基线防御。
摘要:
智能体依赖第三方工具,如模型上下文协议(MCP)服务器,其发布者可被认证,执行可受运行时安全策略限制。但真实性不保证良性行为:合法签名的工具可能在执行 advertised 功能的同时隐藏泄露机密信息的恶意代码。我们用一个签名的MCP工具展示了这种信任失效,该工具在向策略允许的目的地发送的请求中嵌入敏感数据。Meta的MCPGuard-Dynamic作为最先进的运行时防御机制,在同一次运行中阻止了直接数据外渗尝试,但在每次试验中都未能阻止此攻击。我们引入种系执行,该机制无需检查或信任工具实现即可限制信息泄露。每次工具调用都在从无数据的种系进程分叉出的临时副本中运行,每个副本仅接收其目的地授权的信息。即使恶意代码执行,其可泄露的内容也受限于副本可用的数据。在副本隔离和无数据种系的明确假设下,我们为每个签名发布证明了汇流非干扰性,且对于在我们的重放模型中确定性的发布,表明经过验证的见证者可建立流违规。在153次攻击运行中,种系执行下未检测到任何未授权泄露,而基线防御和消融实验下的泄露率为5.9%-74.5%。由单个副本服务的调用完成时间为10-49毫秒,比每次调用重启工具(清除状态的常规方式)快2-28倍。这些结果表明,数据隔离执行可保护智能体工具链免受隐藏在认证软件中的恶意代码攻击。
英文摘要:
AI agents rely on third-party tools, such as Model Context Protocol (MCP) servers, whose publishers can be authenticated and whose execution can be restricted by runtime security policies. Yet authenticity does not guarantee benign behaviour: a legitimately signed tool may perform its advertised function while concealing malicious code that leaks confidential information. We demonstrate this trust failure with a signed MCP tool that embeds sensitive data in requests to a policy-allowed destination. Meta's MCPGuard-Dynamic, a state-of-the-art runtime defence, blocks a direct exfiltration attempt in the same run, yet fails to prevent this attack in every trial. We introduce germline execution, which limits information disclosure without inspecting or trusting tool implementations. Each tool invocation runs in ephemeral copies forked from a data-free germline process, each receiving only information authorised for its destination. Even if malicious code executes, what it can disclose is bounded by the data available to its copy. Under explicit assumptions on copy confinement and a data-free germline, we prove sink noninterference for every signed release and, for releases deterministic within our replay model, show that a verified witness establishes a flow violation. Across 153 attack runs, no unauthorised disclosure was detected under germline execution, compared with 5.9-74.5% of runs under baseline defences and an ablation. Invocations served by a single copy completed in 10-49 ms, 2-28x faster than restarting the tool for every invocation, the conventional way to clear state. These results show that data-isolated execution protects agent toolchains against malicious code concealed within authenticated software.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。