highAgent ThreatTool Poisoning

TrustShift: Temporal Trust-Horizon Defection Attacks on MCP Servers

First seen Aug 26, 2026 · Updated Aug 26, 2026

MCPrug-pulltrust-horizondelayed-payloadsupply-chainschema-valid-evasionserver-side-attackresearchASI05 · Unsafe Code ExecutionAML.T0051AML.T0053AML.T0043Surface: Tool LayerPropagation: Single Hop

This is an academic research paper (not an active exploit) describing 'TrustShift', a class of attacks where a malicious MCP tool server behaves benignly during an initial conditioning period to build trust, then switches to adversarial behavior once agents rely on it heavily. The researchers built an attack taxonomy and a benchmark showing ~69.5% attack success rate against frontier agents, plus a runtime defense (SHIELD) that reduces this to ~42.7%.

Technical Analysis

The threat originates from the trusted MCP server itself rather than user prompts or transport-layer interception, making it distinct from indirect prompt injection or MITM attacks. A compromised server operates honestly through a 'conditioning phase' to evade predeployment static analysis and build agent reliance, then defects at a chosen 'trust horizon' via structural violations, semantic corruption, or scope expansion, some of which remain schema-valid to slip past runtime protocol validators. The attacker gains disruption capability, data exfiltration, or both, by exploiting the agent's implicit trust in previously-verified tool responses, crossing the boundary between the tool/server layer and the agent's planning and execution logic without needing to compromise the user's prompt or the network channel.

Affected Systems

Model Context Protocol reference implementations, MCP client SDKs; protocols: MCP

Detection Signatures

  • Sudden change in tool output schema, semantics, or scope after a long period of consistent behavior
  • Schema-valid but semantically anomalous responses relative to historical baseline
  • Tool outputs requesting expanded permissions/scope not previously observed
  • Divergence from behavioral baseline established during a 'clean trust window'
  • Unexplained shift in tool call patterns correlated with cumulative interaction count rather than input content

Remediation Steps

  1. 1

    Deploy runtime behavioral baselining

    Continuously monitor MCP server tool outputs against learned behavioral baselines (e.g., SHIELD-style multi-tier auditing) rather than relying solely on predeployment static analysis.

  2. 2

    Enforce least-privilege and scope pinning

    Pin tool scopes/permissions at registration time and flag or block any runtime scope expansion attempts from a server.

  3. 3

    Implement trust decay, not trust accumulation

    Avoid designs where agent skepticism decreases monotonically with server tenure; periodically re-verify server behavior regardless of historical reliability.

  4. 4

    Use out-of-band integrity verification

    Independently verify MCP server code/config integrity and reputation on an ongoing basis, not just at initial onboarding.

  5. 5

    Apply anomaly detection on schema-valid payloads

    Extend runtime middleware filters to catch semantically anomalous but schema-compliant responses, not just structural protocol violations.

Industries Most Exposed

Software/AI infrastructureFinanceHealthcareEnterprise SaaSCloud services

Sources

Respond to this threat

Pro subscribers get a full AI-generated incident-response playbook for this threat — detection, containment, eradication, and recovery steps — plus an unlimited AI Threat Advisor for questions about your environment.