Est.

Building a Shadow MCP Discovery Program That Turns Security Teams Into Enterprise AI Enablers

Security teams must map and govern MCP connections before agents act on enterprise data unsafely.

· 8 min read
Cover illustration for “Building a Shadow MCP Discovery Program That Turns Security Teams Into Enterprise AI Enablers”
AI Risk & Compliance · October 26, 2026 · 8 min read · 1,864 words

A shadow MCP discovery program finds unauthorized AI tool connections by inspecting developer endpoints, network traffic, installed packages, and credentials, then routes each server through approval, retirement, or quarantine. Its purpose is not just to stop unsafe connections. Discovery gives security teams the visibility to build a governed registry and a sanctioned path that the rest of the workforce can use safely.

Why MCP became critical enterprise infrastructure faster than security could follow

The protocol was donated to the Linux Foundation’s Agentic AI Foundation in December 2025, with OpenAI, Google, Microsoft, AWS, Bloomberg, and Cloudflare as platinum backers. It now has roughly 97 million monthly SDK downloads. Major AI platforms and enterprise applications now ship MCP support by default, spanning CRM, marketing automation, and developer tooling. What began as a way to connect agents to tools has become enterprise infrastructure.

Security did not arrive at the same speed. MCP was built to reduce integration friction. Its stdio-based servers have no built-in authentication by default, and though the specification defines OAuth 2.1 for remote HTTP servers, it does not require authorization to be enforced in every case. Unless external controls intervene, servers operate with the permissions they receive without verifying each agent’s right to act. That gap helps explain why enterprise agentic AI pilots stall on identity management, auditability, and access control.

What shadow MCP actually is and why traditional security tools miss it

Shadow MCP means unauthorized or unmanaged MCP servers connected to enterprise AI workflows. Developers or AI IDEs may install them without security review, giving agents direct tool-calling access to databases, file systems, internal APIs, and CI/CD pipelines. This is more than another unapproved application. Shadow IT exposes data, while shadow MCP also gives an agent the ability to act on that data autonomously. A dedicated discovery program must therefore identify both the connection and the authority it gives the agent.

A server may bind to localhost, use a random high port, sit behind a proxy, or run in an IDE plugin. Those locations make a network-only inventory incomplete even when the scan works as intended. The server may also hold credentials for several enterprise systems behind one interface. A single compromise can therefore spread from the tool where it began to everything those credentials can reach.

That concentration changes what security needs to know. Finding a process or endpoint is not enough to establish its risk. The inventory must connect the server to its tools, credentials, and downstream access. If those links are missing, a small local installation can look harmless even when it lets an agent act across many systems.

The threat surface that unmanaged MCP servers open up

Tool poisoning targets the text an agent reads to choose and use tools. OWASP MCP03 covers malicious instructions hidden in tool descriptions, which can make an agent leak data or call restricted tools while giving a response that looks normal. The task can look successful to the user even as the agent follows instructions that user never gave. Reviewing only the final answer misses the attack.

The rug pull exploits a different weakness in approval. A server begins with a benign tool description or behavior, gains approval, and then changes without triggering another review. UltraViolet Cyber’s threat advisory explains how tool definitions can change after a connection is made while tool responses keep flowing into the agent’s context.

Supply chain abuse makes this risk concrete. The CSA guide describes a fake npm package named postmark-mcp that silently added a BCC recipient to every email sent by AI agents. It was a new malicious package built from legitimate server code. The attack came through a normal channel for sharing software and made the agent’s tool connection do things that had not been approved.

Without invocation logs and records of context changes, investigators may not be able to establish what happened. If the server touches regulated data, that missing record also poses a problem for an audit. Discovery is therefore a prerequisite for both incident response and documented governance.

How do security teams find employees using unauthorized MCP servers?

Security teams should combine endpoint, network, package, and credential inspection rather than extend a network scan and call the job done. On endpoints, the search should cover Cursor, Windsurf, and Claude Desktop configuration files, plugin manifests, developer tool directories, and dotfiles. Server entries are often there in plain text. Teams should also check environment variable stores because credentials may sit beside server definitions. Localhost bindings and high random ports must remain in scope even when they are not visible from elsewhere on the network.

Network inspection adds a separate view of activity. It should look for MCP-characteristic traffic patterns, JSON-RPC endpoints, and unexpected outbound connections from developer machines and CI/CD runners. Checking packages, including installed npm packages, covers another way MCP servers get in. Qualys TotalAI provides layered discovery across network, host, and supply chain perspectives.

Credential mapping then establishes what each server can reach. The review should find long-lived static secrets, shared API keys, and cloud credential files that the server has or can access. UltraViolet Cyber recommends a full inventory that distinguishes local from remote servers and removes or isolates unvetted or unused entries. The OWASP MCP Top 10 provides risk categories for prioritizing the findings. The result should classify each server by active or inactive status, local or remote operation, authentication, and credential scope.

The approve-or-retire decision that converts an inventory into governance

Every discovered server needs an explicit disposition. A useful server can be approved and governed, an unused or unsuitable server can be retired, and an unclear or high-risk server can be quarantined pending review. Quarantine isolates the server from production agent traffic while its purpose and risk are examined. Discovery becomes governance only when someone makes and records that decision.

A server running on a developer’s static API key needs migration to governed credentials, such as OAuth 2.1, JIT credentials, or SSO-bound identity. An approval checkbox does not narrow its access. Credential migration directly reduces the reach of a future compromise, while retirement requires removing the server and rotating its credentials. This is the most concrete risk reduction in the triage process.

Palo Alto Networks operationalizes the allowlist pattern by placing newly registered MCP servers in a “disabled” state. A security admin must explicitly enable them before agents can connect, with per-invocation audit trails exported to SIEM. Approved servers also need a named owner, a review cadence, and version history so that changes do not quietly escape scrutiny. The registry provides intake and accountability, but it does not replace identity management, network controls, or runtime enforcement.

The regulatory requirements that make a documented discovery program non-optional

An unmanaged tool connection can create an undocumented data flow. When that flow includes personal or cardholder data, security teams must account for it under the applicable requirements of GDPR, PCI DSS, and their audit commitments. High-risk AI actions also bring the EU AI Act into the governance discussion. The server does not need to cause harm for its absence from the records to become a problem. An auditor still needs to understand where data went and which controls applied.

The NSA published an MCP security advisory in May 2026 addressing the lack of standardized authorization and credential isolation at the protocol level. It recommends sandboxing tool execution, audit logging in SIEM, and scanning for unauthorized MCP servers. These security recommendations have advisory status. Their operational significance is direct, however, because they target the same gaps that prevent an organization from explaining its agent activity.

A dated inventory establishes what was known, triage records explain decisions, and credential governance records show how access was controlled. Those records help legal, compliance, and audit teams answer questions under the frameworks that apply. They do not prove compliance by themselves. But an undocumented scan cannot even establish that the organization reviewed the connections it found, making documentation part of the program.

How continuous monitoring prevents a governed registry from decaying back into shadow

An inventory starts to go out of date as soon as discovery ends. Developers install new servers, credentials change, and approved tool definitions evolve. The rug pull is especially difficult because it needs no new installation or network event to turn an approved connection into a threat. Monitoring must therefore watch the approved tools themselves as well as look for new servers. A named owner and version history make clear who must review those changes and what has changed.

UltraViolet Cyber recommends tool description fingerprinting at the proxy layer to counter that attack. The control generates a hash of each definition at registration, then detects, logs, and blocks changes before they reach the agent. This makes a changed definition a review event. Runtime behavioral monitoring addresses a different risk, because an agent can drift from sanctioned behavior even when the registry and tool definitions appear clean. Patterns across tool invocations can reveal that drift when a single call does not.

Full OpenTelemetry tracing of tool invocations, tied to agent identity through SSO or SCIM, supports reconstruction of an incident. It gives investigators the sequence they need to determine what the agent did. The advisory also recommends quarterly red-team exercises against agentic workflows to test whether monitoring detects the attacks it is meant to catch. Controls need that test of actual performance. Each unauthorized server or definition change caught then gives security a real example to discuss with engineering and helps make the case for an approved path over another round of rules that restrict everyone.

Turning the discovery program into a sanctioned path the rest of the workforce can use

Employees who are not developers or power users cannot be expected to evaluate an MCP server’s security before connecting an agent. Without an approved route, they either get stuck or choose whatever is easiest. A governed registry changes that choice. Servers that have already been vetted, built-in credential handling, and instant agent setup from tools like Slack make the approved route easy to use without making every employee review security. The controls built for early adopters become the onramp for everyone else.

Discovery also reveals what that route needs to offer. Unmanaged servers show which tools and integrations employees want when approved options are missing. Security earns credibility by distinguishing useful work from unsafe implementation, then preserving the former while fixing the latter. A registry filled without that understanding may have rules in place but still lack what employees need.

Broad access depends on controls that limit what agents can do. Per-agent tool allowlists, OAuth 2.1 identity binding, a central gateway, and human approval for irreversible actions provide that structure. Continuous monitoring then feeds new demand and newly found risks back into the registry. As the sanctioned route expands, it can reduce shadow usage by being easier to use than ad-hoc installation.

Security teams are the organizational function positioned to combine visibility across these connections with authority over their access. The discovery program gives them the evidence and credibility to exercise that authority constructively. Its lasting achievement is not a cleaner list of forbidden tools, but a practical way for the wider workforce to use agents without rebuilding the same hidden risks.

Sources

  1. Agentic MCP Security Best Practices Guide
  2. MCP Servers: The New Shadow IT for AI in 2026

More in AI Risk & Compliance