arXiv(opens in a new tab)cs.CRAug 2026Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2608.23763

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

Mehrdad Rostamzadeh, Sidhant Narula, Mohammad Ghasemigol, Daniel Takabi

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Mehrdad Rostamzadeh*, Sidhant Narula*, Mohammad Ghasemigol*, Daniel Takabi†

*Department of Computer Science

†School of Cybersecurity

Old Dominion University

Norfolk, USA

mrost004@odu.edu, snaru002@odu.edu, mghasemi@odu.edu, takabi@odu.edu

This work has been submitted to the IEEE for possible publication. Copyright may be transferred without notice, after which this version may no longer be accessible.

Abstract—The Model Context Protocol (MCP) has emerged as the standard layer connecting Large Language Model (LLM) 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 pre-deployment 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%.

Index Terms—Autonomous Agent Security, Model Context Protocol, Temporal Threat Modeling, Runtime Defense.

I. INTRODUCTION

Large language model (LLM) agents have rapidly evolved from isolated natural language interfaces into autonomous systems [1], [4] that orchestrate external tools, query databases, execute code, and interact with third-party APIs [3], [34]. The Model Context Protocol (MCP) [5], an open standard for agent-tool integration, standardizes this ecosystem via JSON-RPC 2.0 over STDIO or HTTP-based transports. Within months of release, MCP was widely adopted across frontier proprietary and open-source agent frameworks [6]–[8], establishing itself as the standard communication layer for production agentic workloads.

The TrustShift Threat. MCP’s rapid adoption exposes agents to an unvetted server-side attack surface [33]: because agents dynamically invoke third-party tools without runtime integrity verification [24], a compromised server can manipulate an agent’s execution trajectory [21]. We term this exploitation TrustShift: a compromised MCP server behaves benignly during an initial trust phase, building operational reliance and suppressing the agent’s contextual skepticism; upon reaching an interaction threshold, it defects, injecting adversarial payloads that preserve outer application-layer schema compliance to evade static middleware filters [9]. TrustShift is distinct on two axes: (1) Channel Origin: payloads originate within the server-controlled JSON-RPC tool channel, not user prompts or network transport; (2) Temporal Staging: the server stays benign during deployment testing, defeating pre-execution static analysis and manifest scanners. It is also semantically polymorphic, manifesting across distinct execution vectors (context starvation, parameter swapping, continuous feature drift, scope escalation) while sharing one temporal conditioning dynamic.

Temporal trust exploitation is no longer theoretical. In 2025, the published postmark-mcp package maintained clean operational history across fifteen release versions before an update silently began exfiltrating processed message data to an unauthorized endpoint [17]. Similarly, CVE-2025-54136 (“MCPoison”) demonstrated that IDE-integrated agents continue trusting previously approved tool configurations even after underlying executable definitions are mutated post-approval [16]. Additional disclosures exposed platform-level vulnerabilities where compromised MCP backends exposed credentials only after sustained periods of benign execution [18]. These incidents highlight a core systemic flaw in current agent architectures: agents implicitly assume temporal invariance in third-party tool backends, leaving them blind to runtime behavioral shifts.

Limitations of Existing Benchmarks. Despite the severity of this threat, current safety-evaluation suites have three limitations:

  1. Fragmentary Attack Surface Coverage: benchmarks test static, single-shot attacks (e.g., SHADE-Arena [2], SafeMCP [28]) or stage time-based scenarios as isolated scripts with fixed payloads (e.g., MCP-SafetyBench's Rug-Pull [25]), lacking a systematic taxonomy of execution mechanisms.

  2. Coarse Outcome Granularity: prior suites (e.g., MCP-Tox [26], MCIP-Bench [29]) report post-hoc binary success, not temporal trajectory divergence, or when the agent's context window becomes compromised.

  3. Absence of Zero-Oracle Runtime Defenses: they evaluate security in isolation without runtime defenses, preventing a holistic assessment of how effectively transport-layer monitors can detect and mitigate these threats during live execution.

Contributions. We introduce TRUSTSHIFTPROBE, a unified framework for modeling, executing, and defending against TrustShift in MCP-enabled agents:

  • C1: Stateful Temporal Threat Model. A formal model of the agent–server lifecycle as a benign conditioning phase (t<N)(t < N) followed by an adversarial phase (t≥N)(t \geq N) in which a trusted server endpoint defects after accruing operational reliance.

  • C2: Compromised-Server Attack Engine. A language-agnostic engine that instantiates each attack variant by mutating an endpoint's own JSON-RPC responses over live backends in four production domains (repository management, financial analysis, browser automation, navigation), modeling server defection.

  • C3: Zero-Oracle Runtime Defense (SHIELD). A multi-tier transport-boundary firewall auditing server responses using only clean-phase behavioral baselines, with no hardcoded rules or ground-truth oracles.

  • C4: Attack Taxonomy. Nine TrustShift attack variants across three mechanisms (structural violation, semantic corruption, scope expansion) and three objectives (disruption, exfiltration, their combination).

References (60)