arXiv:2608.23763cs.CRcs.AI2026-08

揭露MCP服务器分阶段欺骗攻击,提出检测与防御框架。

TrustShiftProbe: Characterizing, Benchmarking, and Defending Staged Trust Attacks on MCP Servers

  • 构建时序性威胁模型,识别服务器先伪装后背叛的行为模式。
  • 在多个真实场景中实现69.5%攻击成功率,防御后降至42.7%。
  • 适合安全研究人员与大模型系统开发者参考,提升服务器可信性。

模型上下文协议(MCP)已成为大型语言模型代理与外部工具后端之间的标准连接层。这种开放性引入了一种严重的服务端威胁,称为信任转移(TrustShift):被攻陷的MCP服务器在初始配置阶段表现正常,建立代理依赖并抑制其怀疑,一旦达到交互阈值便切换为恶意行为。该欺骗具有时间特征而非语法特征:部署时看似合规,静态分析无法察觉其后续背叛行为。攻击载荷包括明显结构违规或符合协议格式的隐蔽篡改,后者可规避运行时中间件过滤。关键在于,信任转移源于服务器控制的工具通道,而非用户提示(不同于间接提示注入)或传输层(不同于中间人攻击),攻击者即受信服务器本身。本文提出TrustShiftProbe评估与防御框架,包含四项贡献:(1)基于状态的时序威胁模型,将代理-服务器生命周期划分为良性配置期与信任临界点后的对抗性背叛期;(2)语言无关的攻击引擎,在四个生产领域中实例化各类受控服务器;(3)SHIELD,一种多层级、零知识的运行时防御机制,通过在清洁信任窗口学习行为基线,审计服务器载荷;(4)九类信任转移变体的分类体系,涵盖三种执行机制(结构违规、语义污染、范围扩展)和三种攻击目标(破坏、数据窃取及其组合)。在前沿私有及开源模型上,信任转移攻击平均成功率达69.5%,而SHIELD将其降低至42.7%。

原文摘要 · Abstract (English)

The Model Context Protocol (MCP) has emerged as the standard layer connecting Large Language Model agents to external tool backends. This openness introduces a severe server-side threat we term TrustShift: a compromised MCP server behaves benignly during an initial conditioning phase, building operational reliance and suppressing agent skepticism, before switching to an adversarial payload once an interaction threshold is reached. The evasion is temporal, not syntactic: benign at deploy time, the server's defection is invisible to predeployment static analysis, which sees only the honest phase. Switched payloads range from overt structural violations to schema-valid manipulations, the latter preserving outer protocol compliance to evade runtime middleware filters. Crucially, TrustShift originates in the server-controlled tool channel, not user prompts (unlike indirect prompt injection) or the transport (unlike man-in-the-middle): the adversary is the trusted server endpoint itself. We introduce TrustShiftProbe, an evaluation and defense framework with four contributions: (1) a stateful temporal threat model of the agent-server lifecycle as a benign conditioning phase followed by an adversarial defection at a trust horizon; (2) a language-agnostic attack engine that instantiates each variant as a compromised MCP server across four production domains; (3) SHIELD, a multi-tier, zero-oracle runtime defense at the MCP transport boundary that audits server payloads against behavioral baselines learned during clean trust windows; and (4) a taxonomy of nine TrustShift variants spanning three execution mechanisms (structural violation, semantic corruption, scope expansion) and three adversarial objectives (disruption, exfiltration, and their combination). Across frontier proprietary and open-weight models, TrustShift attacks achieve a 69.5% mean attack success rate that SHIELD mitigates to 42.7%.

安全评估模型协议防御机制

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。