Est.
MCP securityLong read

What a Threat Assessment Looks Like for MCP Tool Poisoning

A good MCP threat assessment tracks live agent behavior, not just one-time scans.

· 9 min read
Cover illustration for “What a Threat Assessment Looks Like for MCP Tool Poisoning”
MCP security · November 8, 2026 · 9 min read · 1,976 words

A threat assessment for MCP tool poisoning must connect server inventory, tool-definition review, trust checks, and live agent behavior. Real-time AI agent observability for MCP-connected data access means seeing tool invocations, context changes, and user-agent interactions as they happen, against approved behavioral baselines. A one-time scan cannot provide that visibility, because servers can change their definitions and return malicious instructions after approval.

Why MCP tool descriptions are a structurally different attack surface from conventional API vulnerabilities

An agent reads a tool’s description before deciding whether to invoke it. That makes documentation an input to reasoning. A poisoned description can influence the agent even when it never calls the poisoned tool. Loading the description into context is enough.

Cloud Security Alliance’s July 2026 analysis identifies the underlying trust gap [1][2][3]. Tool descriptions, system instructions, and user prompts share a semantic context without a structural boundary that reliably separates documentation from directives. Unlike REST or gRPC, which separate data transport, authentication, and execution, MCP couples model reasoning with tool execution. A threat assessment therefore has to examine both what the model reads and what an endpoint accepts.

The protocol does not supply cryptographic attestation of tool-description integrity, verification that current definitions match those approved at onboarding, or runtime inspection for adversarial instructions. Those protections cannot be assumed. Conventional API controls still address their own risks, but they do not resolve this reasoning-level exposure. An assessment borrowed unchanged from API or RAG security leaves the central trust boundary unexamined.

The four attack variants an assessment must distinguish, and why each requires a different detection approach

Tool description poisoning embeds adversarial instructions in metadata that the agent reads during reasoning. Invariant Labs’ April 2025 proof-of-concept against Cursor used a calculator tool description to silently exfiltrate an SSH private key while returning the correct arithmetic result. Detection requires examining the instructions surrounding the tool, rather than judging its advertised function or final answer.

Rug-pull attacks change tool definitions after review and approval. CVE-2025-54136, rated CVSS 8.8, showed that approval in production AI development environments no longer held after server-side changes. Reviewing the initial definition cannot reveal a malicious replacement that does not yet exist.

Tool shadowing crosses a different boundary. A malicious server’s description influences how the agent uses unrelated legitimate tools, enabling cross-server exfiltration or workflow manipulation without changing trusted tool code. Detection must examine the combined server context and live behavior. An isolated review of the legitimate tool misses the source of the instructions.

Supply chain compromise concerns how the malicious server or update enters the environment. In the postmark-mcp case, fifteen clean releases came before the malicious version, so release history helps but cannot prove that a server is safe. This variant requires scrutiny of server provenance, additions, and updates. The four variants overlap, but their detection requirements cannot be collapsed into one metadata scan.

Scoping the assessment before any technical scanning begins

The first assessment step is inventory. Identify every MCP server connected to any AI client, including workspace-local configurations that activate when a project opens. The Deadbugz campaign in August 2026 distributed a malicious server called “productivity-suite” through public GitHub pull requests. Developers who applied or locally tested the configuration changes could inherit the server without awareness.

Workspace behavior belongs in that inventory because connecting a server can also execute code. CVE-2026-12957 used a crafted .amazonq/mcp.json file for arbitrary code execution and cloud credential theft when Amazon Q loaded it automatically without a dedicated MCP-server consent step. CVE-2026-12958 concerned a separate symlink-validation flaw. These are distinct paths into the environment.

For each client, document its privilege context. An IDE that can write source files, execute shell commands, and access cloud credentials presents a different exposure from a customer-facing agent with read-only tools. Record whether calls are approved automatically or need explicit confirmation. That distinction helps establish the blast radius.

Scope must also include combinations of servers. Shadowing may emerge only when multiple servers share the agent’s context, so single-server audits cannot cover it. OWASP MCP09 identifies unapproved or unsupervised MCP deployments outside formal governance as shadow MCP servers. A scan limited to declared servers cannot establish whether those undeclared deployments exist.

Static analysis of tool definitions and the limits of scanners

Static review should check the whole tool manifest. Instructions can appear in function names, parameter type annotations, required-field arrays, default values, and the description field. Review must also account for Unicode homoglyphs, zero-width spaces, and malicious instructions appended after legitimate text. A definition that looks harmless on screen may not read that way to the model.

Automated scanning provides a useful first pass over installed configurations and tool definitions. Its coverage still has limits. A scanner that checks only descriptions misses other schema fields, and a snapshot cannot show server-side changes that happen later. A person needs to review documentation that seems helpful to judge whether it tells the agent to do more than the tool claims to do.

Approved definitions also need hash pinning. Checking current definitions against the approved baseline shows what has changed, so the original approval does not silently carry over to the changed definitions. The Microsoft finance team scenario illustrates the gap left when a review process is followed but a subsequent description change goes unnoticed.

Static analysis can identify description poisoning and some supply-chain indicators. It cannot detect a future rug pull, prove how shadowing will affect a multi-server agent, or inspect an output payload that has not arrived. Tool responses therefore remain a separate assessment surface. They enter the agent’s context during execution, beyond the reach of a definition-only review.

Evaluating trust inheritance across MCP clients and servers

Server trust is neither binary nor permanent. A client accepts metadata from a server, and that metadata can influence reasoning about tools supplied by other servers. A weak server can therefore affect more than its own calls. The assessment must trace where approval carries over and where new checks stop.

Adversa AI’s TrustFall disclosure on May 7, 2026, showed auto-execution following folder-trust acceptance across Claude Code, Cursor CLI, Gemini CLI, and GitHub Copilot CLI. The prompts differed. Gemini CLI named MCP servers, while Cursor CLI included an MCP-specific warning without enumerating individual servers. Claude Code and Copilot CLI used generic folder-trust dialogs without separately disclosing MCP server execution. The trust decision presented to the user was not always the execution decision the system made.

Authorization needs its own boundary checks. Assess token audience binding, because without it a token stolen from one server can work against others. The iss parameter validation requirement in SEP-2468 / RFC 9207 addresses mix-up attacks. This is especially relevant when one client connects to several servers and identity providers.

Agent-level role-based access control belongs in the same review. Which tools each agent role may invoke should be an explicit governance decision. Otherwise, every tool available to the client is available to every agent it runs, regardless of the task. Authentication alone does not constrain that inherited reach.

How do you monitor live MCP tool calls and data access?

Deadbugz’s “productivity-suite” executed three ordinary tool calls before changing its instructions. Connection-time inspection would have seen the earlier state. Runtime assessment must therefore examine behavior after normal operation begins, including changes that follow a period of apparently safe use. A clean first call is not a lasting guarantee.

Establish normal tool-invocation sequences, parameter ranges, and response patterns so deviations trigger review. Huang et al.’s March 2026 paper proposes model decision path tracking and behavioral anomaly detection as parts of a layered defense. These capabilities connect what the agent was asked to do with the tools and data it actually reaches.

The criteria for observability are concrete. It needs live tool-invocation telemetry, context changes, and user-agent interactions, with enough behavioral context to recognize departures from approved patterns. OWASP MCP08 identifies limited audit and telemetry as an obstacle to investigation and response. Logs reviewed only after an incident are a postmortem. They do not provide live visibility into changed access behavior.

Returned content also needs scrutiny because instructions can arrive in documents, tickets, web pages, or tool results. OWASP MCP06 covers prompt injection through these contextual payloads. Treating server responses as untrusted data, rather than trusted instructions, addresses the boundary the attack tries to cross.

Finally, check auto-approval and process isolation together. Auto-approval removes a per-call checkpoint, while an unsandboxed IDE server running with developer-level OS privileges exposes the developer’s runtime environment. Monitoring can show suspicious behavior, but those permissions stay the same. The assessment must record both what can be observed and what a compromised agent can reach.

Applying structured threat-modeling frameworks — STRIDE, DREAD, and OWASP MCP Top 10 — to MCP’s five components

Huang et al. applies STRIDE and DREAD across five components, namely the host/client, LLM, MCP server, external data stores, and authorization server. STRIDE distinguishes the kinds of threat, while DREAD supports prioritization. The host/client analysis checks how workspaces load, how consent is given, which tools can be used, and what execution privileges they have. Those findings define the authority under which malicious instructions could act.

The LLM deserves a separate component-level assessment. It makes decisions from tool descriptions, including any embedded directives it follows. The CSA analysis notes that more capable models can be more susceptible because stronger instruction-following can produce more reliable compliance with malicious instructions. Model capability is therefore not a substitute for a trust boundary.

For the MCP server, STRIDE asks whether identity can be spoofed, definitions tampered with, actions denied without logs, data disclosed, service denied, or privileges expanded. Definition tampering covers rug pulls, while absent telemetry connects to MCP08. OWASP MCP02, formally “Privilege Escalation via Scope Creep,” covers permissions that grow beyond their intended bounds.

External data stores require attention to what retrieval exposes. OWASP MCP10, “Context Injection & Over-Sharing,” covers sensitive information exposed through shared or insufficiently scoped context. GDPR’s data-access requirements apply to AI retrieval, and HIPAA’s minimum necessary standard applies to queries against patient data. The assessment should also surface missing data-protection agreements where MCP servers touch protected health information.

The authorization-server analysis returns to token audience binding and issuer validation. DREAD then helps prioritize findings across components by damage, reproducibility, exploitability, affected users, and discoverability. Credential theft and data exfiltration illustrate potential damage, while repeatable poisoning demonstrates that the risk is not merely hypothetical. The OWASP MCP Top 10 helps check for categories that the component analysis missed, while that analysis is still needed.

Continuous assessment after deployment and why the cycle restarts

Deployment makes the attack surface dynamic. Servers update, new servers appear outside the registry, and agent behavior can drift without a declared configuration change. After deployment, controls must therefore keep checking hashes against approved tool definitions and comparing live behavior with behavioral baselines. Any changed definition reopens a question that the initial review answered only for an earlier state.

An incomplete registry also weakens the assessment’s reach. OX Security traced a single architectural flaw to an estimated 200,000 vulnerable MCP instances, illustrating the ecosystem-scale consequences of weak controls. An organization cannot account for the identity or access of a server it has not recorded.

Regulated data adds obligations throughout operation. GDPR audit trails, HIPAA’s minimum necessary standard at each query, and FedRAMP audit-log requirements within authorized information systems do not end at approval. Real-time logging supports that continuing record, while behavioral monitoring serves the separate purpose of detecting changed access as it happens.

A central access-control gateway can enforce the allowlist, verify definition integrity against the approved registry, and produce real-time telemetry. Without such a layer, server additions and updates force the assessment steps back into a manual cycle.

Teams that can reach approved servers through a clear path have less reason to create unsupervised alternatives. The purpose of continuous assessment is to give organizations a defensible way to say yes to production without treating yesterday’s approval as proof of today’s safety.

Sources

  1. MCP Attack Surface: Tool Poisoning and IDE Auto-Execution
  2. MCP Tool Poisoning: Adversarial Hijacking of AI Agent Workflows
  3. [2603.22489] Model Context Protocol Threat Modeling and Analyzing Vulnerabilities to Prompt Injection with Tool Poisoning
  4. Poisoned MCP Tool Descriptions: A Silent Exfiltration Path
  5. Model Context Protocol Threat Modeling and Analysis of Vulnerabilities to Prompt Injection with Tool Poisoning
Filed underMCP security

More in MCP security