Engineers building rogue MCP integrations are creating shadow AI infrastructure. The risk comes from live credentials, executable tools, and agent decisions that sit outside organizational control. Governing that infrastructure requires more than approving an editor or discovering a server. It requires control over who authorizes each tool call, what the tool can do, and what changes after approval.
How MCP became infrastructure before it became governed
Anthropic released the Model Context Protocol in late 2024 [1][2][3]. The Cloud Security Alliance’s MCP best practices guide says that by 2025, MCP was widely used in enterprise development environments, cloud-based AI platforms, and multi-agent orchestration frameworks. By mid-2025, Cursor, Claude Code, Windsurf, VS Code, Zed, and Cline supported the protocol natively. Within months, the community’s server catalogues had thousands of entries. The integration layer spread faster than the practices needed to secure it.
An engineer could connect an agent to a production database in an afternoon, rather than build a separate integration from scratch. But the same low friction made a security review easy to bypass. Researchers filed more than 30 CVEs against MCP infrastructure between January and February 2026 alone, showing how far its use had outpaced checks on its security. Adoption created a governance vacuum that engineers filled with their own judgment.
What engineers are actually doing when they wire up MCP servers outside any review process
An engineer wants an agent to work with information or tools it cannot yet reach, and a community registry offers a server that makes the connection. Installation takes minutes. The engineer pastes GitHub, Slack, Stripe, or other production API keys into an editor configuration file, often with permissions far broader than the task needs. A useful shortcut has now given another piece of software access to production systems.
The server might run on a laptop, in a container, or in a personal cloud account. None of those paths necessarily creates a procurement record or an entry in the organization’s asset inventory. Meanwhile, Claude Code and GitHub Copilot have become extensible agent runtimes. Installed servers, plugins, and repository instructions can influence what an agent reads, which tools it chooses, what commands it runs, and where it sends data. Approving the application does not approve everything installed inside it.
Local servers deepen that gap without another login. Pluto Security describes how STDIO servers inherit the developer’s ambient credentials and operating-system privileges, including active SSO sessions, cached cloud credentials, local configuration files, and development secrets. Engineers are following the path the tooling makes available. That explains the behavior without making it safe.
Why shadow MCP is structurally invisible in ways traditional shadow IT was not
Traditional security controls look for signals that shadow MCP may never send. MCP can communicate through standard input and output, known as STDIO, without putting that exchange on the network. Its HTTP or HTTPS traffic presents a different problem. Without protocol-specific instrumentation, a firewall, data loss prevention tool, or security information and event management system cannot distinguish it from normal API traffic.
The content also resists familiar inspection methods. Agents can transform data within natural-language context, obscuring it in ways that signature-based data loss prevention tools cannot parse. An API request by itself does not explain which agent acted, which user authorized it, or which policy applied. Ungoverned MCP deployments lack the connected record needed to answer those questions.
Security researchers report a 3–10x gap between the MCP deployments security teams expect to find and those they find when they actively look. Each additional ungoverned installation widens the gap without necessarily producing a signal standard controls recognize. This is why shadow MCP is distinct from simply buying software outside procurement. Its architecture lets new capabilities appear inside an already approved working environment, beyond the view that approval established.
The authentication gap that turns every ungoverned server into an open door
Finding a server does not establish who can use it. The Cloud Security Alliance guide reports that roughly half of nearly 7,000 internet-exposed MCP servers catalogued by early 2026 operated without authentication controls. Only a small fraction of MCP servers use OAuth. The rest rely on static secrets or no authentication at all, leaving discovery and access control as separate problems.
OAuth addresses only part of the chain of authority. MCP tokens authenticate the final hop but contain no delegation chain. When an orchestrator delegates to a specialist agent that calls an MCP tool, the token does not record those intermediate authorization steps. The connection can therefore be authenticated without explaining how the action came to be authorized. Valid access at the edge is not complete governance.
A STDIO server usually needs no separate authentication and runs within the developer’s privilege context, so a compromise could put the developer’s full credential set at risk. Pluto Security also describes token passthrough as a documented anti-pattern. A server accepts a client’s token without validating that it was issued for that server. An overly broad token can then give the connected server permissions that should never have been extended to it.
Tool poisoning and rug pulls: how a server that passed review can still be weaponized
Microsoft Defender research shows how an attack can follow a tool’s initial approval. An agent used by a finance team connects to an approved third-party invoice enrichment tool. An attacker later changes the tool’s description, hiding an instruction to collect unpaid invoices and attach them to the next outbound call. MCP picks up the description change without triggering re-approval. The approved connection becomes the route for the attack.
This is tool poisoning through text the agent treats as trusted context. A malicious server embeds instructions in a description or schema that the user almost never sees. The agent can follow those instructions and still send back a response that looks normal. The dangerous input can be the material that tells the agent how an apparently legitimate tool works.
A rug pull exploits the ability to change that material after trust has been granted. MCP’s notifications/tools/list_changed mechanism lets servers push changes to tool definitions after a client connects, with no re-approval by default, no version pinning, and no content hash. A clean description can pass review and be replaced later. Cross-server tool shadowing extends the attack further, as one malicious server’s description manipulates how the agent uses another, trusted server’s tools. CyberArk’s research identifies any server-controlled field, including names, arguments, results, and error strings, as a possible injection channel. Runtime monitoring is therefore necessary even for tools that passed a legitimate review.
The STDIO command-execution flaw and what supply chain attacks look like in practice
With STDIO, someone who controls the configuration may also be able to run code. OX Security demonstrated the exposure across official SDKs in Python, TypeScript, Java, and Rust. The affected SDKs account for more than 150 million package downloads and an estimated hundreds of thousands of vulnerable deployments. Multiple CVEs were assigned, including CVE-2026-30623. LiteLLM’s advisory says its authenticated remote-code-execution issue under that identifier has been fixed, so whether each affected product has been patched is a separate question from the risk in the shared design.
The Windsurf vulnerability CVE-2026-30615 shows how an attacker could get code to run through content, without directly asking to install anything. When attacker-controlled HTML, such as a malicious README or web page, is rendered, it triggers prompt injection that rewrites the local MCP configuration and starts a malicious STDIO server. It was classified as zero-click.
Supply chain attacks reach the same environment through software that seems to help people do their work. The Deadbugz Campaign spread a malicious MCP server called “productivity-suite” through public GitHub pull requests in August 2026. Orca Security reported that attackers hijacked a maintainer account in September 2026 and shipped a malicious release of a legitimate MCP server with valid npm provenance signatures. The registry itself did not need to be compromised. Provenance could show how the release was published without showing that it could be trusted.
Other documented failures show the breadth of the exposure. Microsoft’s @azure-devops/mcp package was found in April 2026 to lack an authentication layer on a server handling work items, repositories, and pipelines, tracked as CVE-2026-32211 with a CVSS score of 9.1. The Cloud Security Alliance guide also documents 2025 incidents involving cross-tenant data exposure at Asana, prompt injection against the GitHub MCP server, and unauthenticated remote code execution in Anthropic’s MCP Inspector. These different failure paths require different fixes.
Why compliance frameworks and audit logs have not kept pace with the attack surface
The missing chain of authority makes this an executive problem. After an agent acts, an organization needs to reconstruct what happened, on whose authority, and under which policy. Ungoverned MCP does not provide an identity-bound audit trail connecting those facts. Delegation steps missing from the record of the final authenticated request leave a gap in accountability.
The NSA’s Artificial Intelligence Security Center published its first formal MCP guidance in May 2026, warning that adoption had outpaced the protocol’s security model. The guidance says familiar controls such as authentication, authorization, and input validation remain necessary but do not adequately address the novel and systemic risks of agentic AI. Basic controls are still required, but they are insufficient. The Singapore IMDA Model AI Governance Framework for Agentic AI, published in January 2026, also set out a governance framework specifically for agentic AI. Together, these developments make the issue harder to treat as an isolated developer-tool concern.
The July 2026 MCP specification revision adds stricter authorization checks and removes the session-ID mechanism, eliminating the protocol-level session hijacking surface identified in prior disclosures. Those changes address a specific attack path. They do not create an organization’s inventory, delegation records, or policy decisions. Enterprises still have to implement the controls that make agent activity explainable to security teams and auditors.
The case against banning MCP and what governing it actually requires
Akamai’s senior director of threat research Maxim Zavodchik described the implementation burden plainly, saying “critical security boundaries are now entirely dependent on how developers implement them”. That is the strongest argument against waiting for the protocol to solve enterprise governance. A ban offers no reliable substitute. When an organization cannot find the deployments, a ban leaves engineers using the same tools to get work done, even further out of its view. The behavior persists while the opportunity to govern it shrinks.
The practical response is a governed path engineers want to use. It starts with an inventory of every MCP server and identity tied to every tool call by replacing pasted static secrets with SSO and scoped credentials. It also requires real-time detection of tool-description changes between sessions. Tamper-proof audit logs need to record the agent identity and session context for each action, and policy must be enforced on each tool call. Application-level approval is too coarse for tools whose permissions and behavior can change underneath it.
A registry supports inventory and approval workflows and needs to connect to a broader AI control plane that provides runtime enforcement and governs agents, identities, and activity together. A unified platform can handle OAuth and credential management, enforce tool-level policy, and provide tamper-proof audit logs with full OTEL tracing without forcing engineers into a different workflow. That makes security and platform teams enablers of adoption.