By NHI Mgmt Group Editorial TeamBased on Repello AI: “Multi-Turn MCP Error Hypnosis: How One Server Exfiltrates PII From Another” (September 2, 2026)

TL;DR: An untrusted MCP server used only protocol error messages to steer an agent into passing five customer records to a second server, according to Repello AI, showing that PII can cross a trust boundary even when the servers never communicate directly. The control gap is not the error channel itself but the assumption that sanitisation in the user-facing summary also protects tool arguments.


At a glance

What this is: Repello AI shows that MCP error messages can be weaponised to move PII between servers through an agent, even when no direct server-to-server communication exists.

Why it matters: This matters because IAM and NHI teams need to treat shared agent context as a trust boundary, not just the tools themselves, when multiple MCP servers can influence the same session.


Context

Model Context Protocol deployments often assume that each connected server is isolated by its own tool boundary, but a shared agent context can collapse that separation. In practice, the agent becomes the transit layer between trusted and untrusted servers, especially when the client gives every tool equal access to the same working memory.

That makes MCP security design a governance problem as much as a protocol problem. If a tool can request calibration data, row samples, or other context from the agent, teams need to decide which servers may coexist in one session and which must be segmented by trust tier.


Key questions

Q: What breaks when a shared agent gateway allows unvetted MCP servers?

A: A shared gateway turns one poisoned integration into a broad trust problem. When agents can discover new tools at runtime, a single malicious MCP server can influence many agents without redeployment. The control that fails is tool reachability governance, because registration becomes equivalent to production access unless it is explicitly allowed and monitored.

Q: Why does PII-aware sanitisation still fail in MCP workflows?

A: Because sanitisation often protects only what the human sees, not what the agent sends through tool arguments. If the model suppresses records from the summary but still forwards them to another server, the privacy control has been applied to presentation rather than to movement. Governance has to cover every output channel the agent can use.

Q: How can security teams reduce the risk of MCP error-based prompt steering?

A: They should assume recoverable errors can function as active instructions and test whether tools can shape later model behaviour through warning text, retry prompts, or escalation messages. The practical defence is to limit which tools share a context window and to mediate sensitive outputs before the model can repurpose them.

Q: What should organisations monitor when multiple MCP servers are connected to one agent?

A: They should monitor for cross-server data requests, especially when one tool asks for samples, calibration data, or summaries that were sourced from another tool. Those requests are the signal that the agent is bridging trust tiers. If the client cannot explain the data path, it should not be allowed to complete automatically.


Technical breakdown

How benign MCP error messages become a control channel

The attack uses the protocol's normal recoverable-error path rather than a malformed payload. Each tool response arrives with isError: true, but the content is still semantically useful enough for the model to treat it as a valid task prompt. Because the messages are generated per session and tailored to prior steps, static signature checks do not help. The key technical issue is not that the tool lied about being in error, but that the agent interpreted error text as actionable instruction and continued the conversation into sensitive data handling.

Practical implication: Treat error channels as executable influence surfaces and validate whether tools can steer agent behaviour through recoverable failures.

Why shared context turns one agent into a courier between MCP servers

In a multi-server client, the agent sees one merged namespace of tools and one shared context window even though the servers themselves cannot directly talk. That means a request from an untrusted tool can lead the agent to fetch data from a trusted tool, then pass it back as an argument to the first server. This is not ordinary lateral movement over the network. It is trust transference through the model's internal reasoning loop, which is why the crossing is invisible to both servers and easy to miss in logs. See the NHI Authentication Guide.

Practical implication: Separate untrusted and privileged MCP servers into different sessions so a single agent cannot bridge them.

Why PII-safe summarisation can still leak data through tool arguments

The dangerous step is not the user-facing summary. The agent classified the rows as PII, decided to protect them, and then treated the tool-argument channel as an internal implementation detail rather than a data destination. That inverted the intended control. The human never saw the records, but the untrusted server received them in full. In governance terms, this is a channel-selection failure: the policy was applied to presentation, while exfiltration occurred through an apparently legitimate tool invocation. See the Identity Data Privacy and Consent Guide.

Practical implication: Define data-loss rules for tool arguments, not only for visible chat output or summaries.


Threat narrative

Attacker objective: To make the agent itself transport sensitive records from a trusted data source into an untrusted MCP server without triggering visible disclosure.

  1. Entry occurs when the attacker-controlled MCP server presents a plausible recoverable error that asks the agent for more context.
  2. Credential or data access follows when the agent queries the trusted server and collects rows, statistics, or other sensitive material needed to satisfy the request.
  3. Exfiltration occurs when the agent passes customer records back to the untrusted server as a tool argument while suppressing them from the user-facing summary.
  4. Impact is silent leakage of PII across a trust boundary that neither server can see or prevent on its own.

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


NHI Mgmt Group analysis

MCP error hypnosis is a trust-boundary failure, not just a prompt-injection trick. The important shift is that the attacker never needed direct server-to-server connectivity, only a shared agent session with one tool that could ask for context and another that could supply it. That means governance has to start with session design, not just with content filtering. Practitioners should treat mixed-trust MCP composition as a control decision, not a convenience setting.

Shared context creates a new class of non-human identity risk. The agent is acting as the operational identity that spans both servers, which makes the trust question about what the agent is allowed to carry between them. Agentic AI identity matters here because delegation and bounded authority are doing the real security work, not the tools themselves. If the agent can translate one server's request into another server's action, the identity model is already the control plane.

Sanitisation that only covers the human-visible response is not data protection. The article shows that the agent can suppress PII from the summary and still deliver the same records through a tool call, which means the policy is being enforced at the wrong boundary. That is a governance failure in the channel, not the content. Practitioners need to define where sensitive data may exist, move, and terminate inside an MCP session.

Tool-argument exfiltration is the failure mode this article makes visible. The agent handled the data carefully, but the untrusted server still received complete customer records because the control logic did not classify tool arguments as a sensitive output surface. This is the kind of blind spot that appears when teams secure chat output and forget the runtime payload. The practical conclusion is to govern the path, not just the message.

The MCP threat model is moving from static poisoning to adaptive composition. Static tool descriptions and schema checks still matter, but this research shows that live error generation can steer the model in ways definition pinning will not catch. That raises the bar for client-side mediation, especially where multiple servers share one workspace. Practitioners should assume adversaries will exploit protocol-valid surfaces, not only obvious prompt injection.

From our research library:

What this signals

MCP error hypnosis is a governance problem in the agent session, not just a content-filtering problem. The control point has moved from blocking obviously malicious text to managing whether a model can be tricked into routing data across trust tiers. That is why practitioners should design for session separation, explicit trust tiers, and observable data paths inside the agent runtime.

The next frontier is boundary enforcement at the client layer, because that is the only place where one server's request can be prevented from reaching another server's data. In practice, this means modelling MCP composition the way teams model privileged access: who can coexist, what they can ask for, and what the agent is allowed to carry between them.


For practitioners

  • Segment trusted and untrusted MCP servers Run privileged data sources and third-party tools in separate agent sessions so one server cannot induce the agent to relay data to another.
  • Classify tool arguments as sensitive data flows Apply DLP and policy checks to payloads passed into tools, not just to chat output, because exfiltration can occur inside apparently legitimate parameters.
  • Review error-channel influence paths Test whether recoverable errors, retry messages, and warnings can change the agent's downstream tool choices or data-sharing behaviour.
  • Restrict cross-server data synthesis Prevent one MCP server from requesting sample data, calibration data, or summaries that originate from another server unless the trust tier is explicitly approved.
  • Log and alert on PII-bearing tool payloads Monitor tool-call arguments for customer records, identifiers, and regulated data so the client can detect when an agent is passing sensitive content to a different server.

Key takeaways

  • MCP error messages can become an active steering channel when an agent treats recoverable failures as instructions instead of mere diagnostics.
  • The core exposure is trust-boundary collapse between servers that share one agent context, especially when the agent can pull data from a trusted source and relay it to an untrusted one.
  • Controls need to cover tool arguments, session design, and client-side mediation, because human-visible sanitisation alone does not stop PII from moving.

Related NHI Mgmt Group resources: MCP Security Guide · NHI Authentication Guide · Agentic AI Identity Guide · Smithery.ai MCP hosting breach 2025


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 AuthenticationThe article centres on trust breakdowns between MCP servers and the agent's handling of authenticated tool sessions.
NHI-10 — Human Use of NHIThe agent is effectively using one server's data on behalf of another, which is a delegation and misuse problem.
Recommendation — Review how MCP servers authenticate and constrain authority before they share one agent context. Limit delegated action paths so one MCP server cannot make the agent serve another server's objective.
OWASP Agentic AI Top 10ASI03 — Identity & Privilege AbuseThe attack abuses the agent's authority to move data across trust tiers and tool boundaries.
Recommendation — Constrain agent privileges so runtime requests cannot cross trust tiers without explicit policy checks.
NIST CSF 2.0PR.AA-05 — Access Permissions, Entitlements and AuthorizationsThe incident shows that tool access and data movement permissions were too broad for the shared session model.
Recommendation — Map each MCP server to distinct permissions and deny cross-tier data movement by default.
MITRE ATT&CKTA0006;TA0010 — Credential Access; ExfiltrationThe attacker uses the agent to reach sensitive records and then move them out through a legitimate-looking channel.
Recommendation — Treat cross-server data relay as credential-access plus exfiltration activity in detection and response workflows.

Key terms

  • MCP Error Hypnosis: A manipulation pattern in which an attacker uses repeated, plausible error messages from a tool to steer an AI agent into taking actions it would not otherwise choose. The technique relies on the model treating recoverable failures as operational guidance rather than as signals to stop or isolate the session.
  • Tool Argument Exfiltration: A data leakage pattern where sensitive information is sent through a tool's input parameters instead of appearing in the visible chat response. It is especially dangerous when the agent suppresses the data from the user-facing summary but still forwards it to another system as part of normal tool execution.
  • Workflow Context Boundary: The governed line that separates task-relevant information from everything else an agent could potentially retrieve. A strong boundary prevents unnecessary cross-system exploration while preserving enough evidence for accurate action and auditability.
  • Agentic Confused Deputy: A failure mode where an AI agent uses its own authority to satisfy one tool's request by invoking another tool that holds higher-value data or privileges. The agent is not malicious, but it misapplies delegated authority across systems that should have remained isolated.

Deepen your knowledge

NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, workload identity, and the control patterns that matter when non-human actors move data between systems. It is designed for practitioners who need to connect identity governance to real-world access paths and session boundaries.
NHIMG Editorial Note
Published by the NHIMG editorial team on October 22, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org