By NHI Mgmt Group Editorial TeamBased on Unosecur: “MCP Tool Poisoning Explained: Detection Guide for SOC Analysts” (July 8, 2026)

TL;DR: Unosecur's analysis finds that tool poisoning in MCP lets a manipulated tool description steer an AI agent into actions the SOC never sees, because the runtime metadata is treated as authoritative instruction. The control gap is that current approval and monitoring models assume tool context is static, but MCP metadata can change after deployment.


At a glance

What this is: This is an analysis of MCP tool poisoning, where malicious instructions hidden in tool metadata can alter AI agent behaviour without visible SOC or SIEM alerts.

Why it matters: It matters because IAM, monitoring, and approval controls built for stable context do not cover runtime metadata changes that AI agents treat as trusted instruction.

👉 Read Unosecur's analysis of MCP tool poisoning and AI agent metadata governance


Context

MCP tool poisoning is a governance problem in which a tool description, not the code itself, becomes the attack surface. In an AI agent workflow, the agent reads natural-language metadata and may follow embedded instructions as if they were part of the tool’s intended function.

The failure is a mismatch between approval-time review and runtime behaviour. Security teams may validate a tool once, but if its metadata can change later on the provider’s server, the agent can be steered into new actions outside the original control decision.


Key questions

Q: What breaks when MCP tool definitions change without re-approval?

A: What breaks is the assumption that a previously trusted tool still behaves the same way. If definitions can change silently between sessions, the agent may continue using a modified capability under old approval. That undermines auditability, makes security reviews stale, and hides new malicious instructions.

Q: Why do tool descriptors create a security risk in AI systems?

A: Tool descriptors are risky because models read them as instructions, not just metadata. If a third party can alter descriptions, schemas, or boot-time discovery data, they can inject directives into the model’s context with ambient authority. That turns capability discovery into a supply chain problem, especially when clients merge descriptors directly into system prompts or tools arrays.

Q: How do security teams detect MCP tool poisoning in practice?

A: Start with three signals: a stored baseline of approved descriptions, runtime diffing against the live version, and validation rules for imperatives or undeclared endpoints. Then tie those signals to agent sessions so a change can be blocked before the tool is invoked.

Q: What should security teams do when an MCP tool description changes unexpectedly?

A: Treat the change as a control exception first and an incident second. Suspend the affected tool, preserve the previous and current descriptions, review whether the new text introduces imperatives or external references, and only restore access after the change is explained and approved. The goal is to stop unreviewed semantic drift before the agent consumes it.


Technical breakdown

How poisoned MCP metadata changes agent behaviour

Model Context Protocol tool descriptions are plain text metadata that agents use to decide whether and how to invoke a tool. If that text is altered to include hidden instructions, the agent can interpret the malicious content as operational guidance rather than untrusted input. The key issue is not code execution in the classic sense but instruction smuggling through a channel the agent is designed to trust. That makes the description itself part of the execution path, even though it looks like documentation to humans.

Practical implication: Treat tool descriptions as security-relevant inputs and not as harmless metadata.

Why rug pulls defeat approval-time reviews

A rug pull works when a tool is evaluated cleanly, approved, and later updated on the remote server without a corresponding change on the buyer’s side. Because the agent fetches metadata at runtime, the approved state at installation time no longer matches the live state at invocation time. This creates a trust drift problem: the environment looks unchanged from the outside while the agent consumes a different instruction set. Static governance cannot see that shift unless it rechecks the metadata at session start or earlier.

Practical implication: Baseline approved metadata and compare it to the live version before every invocation.

Why schema validation alone is not enough for MCP

Schema validation can flag oversized descriptions, imperative phrasing, undeclared endpoints, and cross-tool instructions, but it only catches what matches known patterns. A determined attacker can hide within natural language, use softer phrasing, or exploit legitimate wording changes that still alter the agent’s behaviour. That is why structural checks need to sit alongside diffing and review, not replace them. The core architectural lesson is that natural-language context can be weaponised even when the underlying tool remains technically intact.

Practical implication: Combine content rules with change detection and human review for any modified tool metadata.


Threat narrative

Attacker objective: The attacker wants the agent to perform data exfiltration or other unauthorised actions through trusted MCP tool execution.

  1. Entry occurs when a malicious actor controls a tool's metadata or compromises the server that delivers it to the AI agent.
  2. Credential or data theft is then enabled inside a routine tool invocation, because the poisoned description instructs the agent to search for sensitive files and append their contents to the response.
  3. Impact follows when the agent executes the hidden instruction and exfiltrates sensitive data through what appears to be a legitimate tool call.

Read and download The State of NHI & AI Agent Breach Report 2026, covering 150+ breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

Metadata trust is the new control plane problem for AI agents: MCP tool poisoning shows that governance cannot stop at tool approval, because the agent reads live descriptions at runtime. If those descriptions can change on a remote server, the security boundary has moved from code review to metadata custody. Practitioners need to treat tool descriptions as controlled security artefacts, not documentation.

Runtime metadata diffing is the missing assurance layer: the article’s core lesson is that static approval cannot prove current intent. A baseline captured at onboarding becomes stale as soon as the provider changes the description, which means trust has to be revalidated at session start or invocation time. That shifts the assurance model from one-time approval to continuous comparison.

Natural-language instruction channels create a semantic gap that traditional IAM does not close: the problem is not just access, but meaning. IAM can tell you which agent may call which tool, yet it does not prove that the text attached to that tool still describes only the intended function. The result is identity-controlled access with behaviour-controlled abuse.

AI agent metadata needs its own governance concept: semantic inventory integrity: the operational risk here is that the inventory is correct while the semantics are poisoned. Tool names and manifests may remain unchanged, but the instructions the agent consumes are no longer aligned with approved purpose. That means governance teams must extend inventory control into text integrity and change provenance for agent-facing metadata.

Telemetry without invocation context is not enough to detect MCP abuse: SOC visibility breaks when a tool call appears routine but the hidden instruction sits in the metadata the agent read moments earlier. The article shows why call logs alone are insufficient if they do not preserve the exact description version, session context, and change history. Practitioners should assume that incomplete telemetry will always understate this risk.

From our research library:

What this signals

Semantic inventory integrity: AI agent governance now has to cover the meaning attached to a tool, not just whether the tool is listed in an inventory. If the metadata can change after approval, then inventory accuracy is not the same thing as execution safety.

Access review cadences do not solve this class of abuse on their own because the agent consumes metadata at runtime. The control point moves to description provenance, runtime comparison, and change logging before the agent takes action.

MCP is where metadata becomes policy-bearing input, which means telemetry has to include the exact description version the agent read, not just the tool name. A tool call can be legitimate while the instruction embedded in its metadata is not.


For practitioners

  • Baseline every approved tool description Capture the exact text and hash of each MCP tool description at approval time so later comparisons have a trusted reference point.
  • Compare live metadata before each session Fetch the current description at agent session start and block invocation when the live text differs from the approved baseline.
  • Quarantine descriptions with imperative language Flag instructions that tell the agent to search, append, send, ignore, or otherwise act outside the declared tool purpose.
  • Require human review for changed descriptions Do not let an altered tool description become active until a reviewer has confirmed the change is legitimate and logged the decision.
  • Log session context with every tool call Record the exact description version, session ID, agent identity, and parameters so the SOC can reconstruct what the agent actually read.

Key takeaways

  • MCP tool poisoning works because AI agents trust tool descriptions as instruction-bearing context, creating a security gap that is invisible to ordinary monitoring.
  • The most important defensive shift is from one-time approval to runtime comparison, because tool metadata can change after deployment on a remote server.
  • SOC teams need session-aware logging, metadata diffing, and human review for changed descriptions to prevent routine tool calls from carrying hidden instructions.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10, OWASP Agentic AI Top 10 and MITRE ATT&CK address the attack and risk surface, while NIST CSF 2.0 sets the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-04 — Insecure AuthenticationRuntime trust in mutable tool metadata creates an unsafe authorization path for agent behaviour.
NHI-10 — Human Use of NHIHumans approving one version while agents consume another highlights governance drift in non-human access paths.
Recommendation — Treat live tool metadata as an authenticated input and block invocation when provenance cannot be verified. Separate human approval records from agent-facing runtime metadata and reconcile them before execution.
OWASP Agentic AI Top 10ASI03 — Identity & Privilege AbusePoisoned tool metadata abuses the agent's trusted execution path to obtain actions outside intended scope.
Recommendation — Restrict agent tool execution to verified metadata and block privilege-bearing actions when descriptions change.
NIST CSF 2.0PR.AA-05 — Access Permissions, Entitlements and AuthorizationsThe article centres on whether the agent is authorised to act on changing tool context.
Recommendation — Revalidate entitlements against live tool context before allowing the agent to invoke a changed MCP tool.
MITRE ATT&CKTA0006;TA0009 — Credential Access; CollectionThe poisoned description is used to collect sensitive information through a legitimate agent action.
Recommendation — Map poisoned tool behaviour to credential access and collection so detections look for hidden exfiltration in routine calls.

Key terms

  • MCP tool poisoning: MCP tool poisoning is the practice of hiding malicious instructions in a tool name, description, or metadata exposed by an MCP server. Because those fields are often treated as trusted configuration, the agent may adopt the attacker’s instructions during tool selection or invocation.
  • Rugpull: A change in an MCP tool’s advertised behaviour after approval while agents continue using a cached definition. The server appears familiar, but its semantics have shifted, which means the identity and access decision made at approval time no longer matches the live system.
  • Runtime Metadata Diffing: Runtime metadata diffing is the practice of comparing the live tool description with an approved baseline before an agent is allowed to act. It turns mutable text into a monitored control point and helps detect poisoning, unexpected updates, and silent drift.
  • Semantic Gap: The semantic gap is the distance between what a tool description is supposed to be, a functional explanation, and what it can become, a covert instruction set. In agentic environments, that gap is a governance problem because the model may treat plain language as authority.

What's in the full article

Unosecur's full blog post covers the operational detail this post intentionally leaves for the source:

  • Exact detection-rule logic for tool description hash mismatches and alert severity
  • Example schema-validation patterns for imperative language and undeclared endpoints
  • How the MCP Gateway captures session context and compares live metadata
  • Practical logging fields needed to reconstruct a poisoned tool invocation

👉 The full Unosecur post covers the semantic gap, rug pull behaviour, and detection rules in more operational detail.

Deepen your knowledge

NHI governance, agentic AI identity, and machine identity lifecycle are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are building or maturing an identity security programme, it is worth exploring.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 15, 2026.
Updated on October 7, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org