• 10 min read

Stop Shadow AI: Engineering Governance for Unapproved Agents

tl;dr

Endpoint governance is the only way to stop shadow AI agents and unapproved MCP servers. Network gateways and browser tools miss local coding agents that run with full developer permissions on endpoints.

Featured image for "Stop Shadow AI: Engineering Governance for Unapproved Agents"

Seventy-seven percent of organizations using AI have watched an agent act outside its authorized behavior, yet ninety-two percent of executives still want to grant agents independent action. That tension isn’t theoretical — it’s the daily reality for engineering teams watching coding assistants and MCP servers proliferate on developer laptops faster than any approval process can track.

What makes shadow MCP servers more dangerous than shadow SaaS?

Shadow MCP servers are unapproved Model Context Protocol servers employees wire into AI clients, each holding a live token to a corporate system. They’re worse than shadow SaaS because there’s no OAuth consent screen, no admin console, and no audit trail — the configuration is a local JSON file on a laptop. A cloud MCP gateway can’t see it because a gateway only governs traffic that flows through it, and an employee can point a client straight at any server to bypass it. Strac’s endpoint agent reads the client config files on the machine, so it inventories every registered MCP server and lets you allow or deny each one, whether or not its traffic ever touches a gateway.

The numbers back this up. Hush Security analyzed around 82,000 public MCP configuration files and found 12% of credential slots contained hardcoded secrets; among hardcoded credentials, 24% were non-expiring and broad-scope, including Anthropic and OpenAI API keys (TechTarget). A Salt Security survey found 32.9% of respondents had found an unauthorized, shadow, or misconfigured MCP server in the past 12 months, while a wider 54.3% said they had found or suspected one (The Intelligent Commit). These aren’t hypothetical risks — they’re configuration files sitting on developer machines right now, each one a potential backdoor into production systems.

The Postman incident illustrates how easily this happens. A developer opened Postman’s desktop app and it automatically wired a Postman MCP server into both Claude Code and OpenAI’s Codex without asking, adding a session-start hook marked as trusted and a connection to Postman’s remote MCP server. The developer didn’t choose this — the software chose it for them. This is what makes shadow MCP fundamentally different from shadow SaaS: it arrives without anyone choosing to install it.

Why do network gateways and browser tools miss the riskiest AI?

Browser extensions, SSE proxies, and network gateways cannot see IDE assistants, CLI agents, or local MCP servers; endpoint coverage is required to discover shadow AI in engineering environments. When an AI agent on an employee endpoint calls an MCP server, it acts with the employee’s own identity and access permissions, outside what traditional endpoint tooling inspects. This is the core pattern I’ve observed: governance has moved from the network to the endpoint, and the tools that only watch browser traffic or network flows are blind to where the real risk lives.

The detection matrix makes this clear. Browser extensions see web AI chat. CASB or SSE inline tools see API calls to known AI services. OAuth and identity logs reveal SaaS sign-ups and grants. But only an endpoint agent sees IDE assistants like Cursor and Claude Code, CLI agents like Codex and Gemini CLI, and local MCP servers running over stdio. If your developers write code — and they do — your inventory is incomplete without endpoint coverage.

This isn’t a new observation. The Shadow AI Detection: Stop Unauthorized Tools and Code Leaks analysis reached the same conclusion: network security tools miss shadow AI because the risk has moved to developer endpoints where coding agents and local MCP servers run with full developer permissions outside AI gateways and network controls. Engineering teams need endpoint and developer-layer detection, not just CASBs and secure web gateways.

How do coding agents inherit your permissions and bypass controls?

When an AI agent on an employee endpoint calls an MCP server, it holds the permissions of the person running it: agents, MCP servers, Skills, rules and hooks run on an employee’s endpoint with that employee’s identity and access. This means a coding agent can read every file the developer can read, run every command the developer can run, and reach every system the developer can reach — all without a separate audit trail or approval gate.

The adversarial research confirms this isn’t theoretical. Adversa AI’s GuardFall research bypassed the command-approval guards in 10 of 11 popular open-source coding agents with decades-old shell tricks, and auto-approve flags reopened the hole even in the one agent that held. Google’s April 2026 Gemini CLI advisory patched remote-code-execution paths whose preconditions were --yolo mode and auto-trusted workspace folders. Built-in model refusal and auto-approval guards are explicitly not security boundaries — they’re convenience features that attackers know how to bypass.

The Governing Shadow AI Coding Agents Without Slowing Developers playbook frames this correctly: don’t block shadow AI coding agents. Treat them as privileged suppliers with contracts, secrets management, and pull request checkpoints instead. The control point has moved to the agent’s hooks — Claude Code, Codex CLI, Cursor, Gemini CLI and most newer harnesses expose a pre-tool hook that can allow, ask, or deny an action before it runs. But most hook-based enforcement fails open. You need to ask every vendor what happens when its daemon is unreachable, and whether you’ll see it.

What does a governance playbook actually need to cover?

Governance is four jobs: inventory, one policy, enforcement, and records. Miss one and the others stop working. A policy you can’t enforce is a wiki page. Enforcement you can’t audit is a promise. The Governing Shadow AI in Engineering Without Slowing Down framework emphasizes this: with teams running multiple agents, cross-agent checkpoints matter more than any single platform.

Start with inventory. You can’t set policy for agents you don’t know about. Ask three questions per machine: which agents are installed, which extensions and MCP servers they load, and what credentials sit within reach (cloud keys, SSH keys, tokens in dotfiles). Your MDM and EDR already have part of this. For the rest, you need endpoint agents that read agent configuration files — the JSON files where MCP servers are registered, the markdown files where Skills and rules live, the dotfiles where credentials hide.

One policy means a single set of rules that means the same thing in every agent. The major agents ship admin controls: Claude Code’s managed settings apply above every other level, Cursor admins can push a permissions file through Jamf or Intune, Codex has requirements that constrain what users and tasks can do, Copilot has enterprise policies including a toggle that blocks the cloud agent. Use all of them as a baseline. But each is a separate file format, a separate vocabulary, a separate set of switches. “No force-push to main” gets written four ways, enforced four ways, and logged four ways. You need a layer above that translates one policy into each agent’s native format.

Enforcement has to sit outside the agent. Roll it out watch-only through the MDM you already run, and give exceptions an owner and an expiry date. The CIS MCP Server Benchmark v1.0.0, released September 16, 2026, provides 55 prescriptive recommendations across 10 security domains — governance and versioning, transport and connectivity, authentication and authorization, client and server configuration, data protection, observability and audit, supply chain security, isolation and execution safety, and resource limits and caching (CIS). It’s a vendor-neutral standard you can use to assess your MCP deployments.

Records means a log of what was allowed, blocked, and asked, that an auditor can read. Every action needs to land off the device, where the agent can’t change it. Security can prove what happened, and leaders can see which teams use which models for which work.

Which tools can enforce policy at the endpoint?

The market splits into discovery-only tools and enforcement platforms. Most shadow AI detection tools stop at discovery and alerting; few enforce policy on what they find, and detection that connects to existing DLP policy closes the gap stand-alone discovery tools leave open. For engineering teams, the enforcement point has to be the endpoint agent hook — that’s where the action happens, and that’s where you can block before execution.

ToolDetection MethodSees IDE/CLI AgentsSees Local MCPEnforcement PointPublished Price (Nov 2026)
Harmonic SecurityBrowser + endpoint agentYes (Guide plan)Yes (Command plan)Endpoint hook: warn, nudge, blockDemo only; no published price
Netskope One AI Command CenterSSE inline + endpoint discoveryYes (with endpoint)YesInline + endpointContact sales; no published price
Nudge SecurityMailbox, OAuth, identity, browser extensionNoNot listedOAuth revocation (paid add-on)$750/mo up to 150 users; $5/user/mo 150–1,500
Akamai Workforce ProtectorBrowser extensionNo (PWA desktop only)Not listedBrowser DLP: redact, block$8.50/user/mo on AWS Marketplace, 50-user minimum
Microsoft Defender for Cloud AppsNetwork + endpoint log discoveryPartly (via Defender for Endpoint)Not listedUnsancions appsIn M365 E5; Defender Suite $12 on E3, $10 on Business Premium
Sysdig AI DefenseRuntime sensor (Falco-based)YesYesConfirm, block, kill processNot published
Tanium AgentSightReal-time endpoint visibilityYesYesFleet-wide policy, remove/blockNot published
Pillar SecurityEndpoint agent parsing agent configsYes (Claude Code, Cursor, Codex, Gemini CLI, OpenCode)Yes (23,000+ server catalog)Pre-action hooks on Claude Code, Codex CLI, CursorNot published

The pricing data comes from the Flamingo AI governance tools guide, which checked vendor pages and Microsoft Learn on November 10, 2026. A 50-developer shadow AI discovery deployment using Nudge Security costs $9,000/year in subscriptions alone ($750/month flat rate for up to 150 users × 12 months). Microsoft Agent 365 runs $15/user/month with annual commitment, included in Microsoft 365 E7 (Flamingo). Akamai Workforce Protector lists $8.50/user/month on AWS Marketplace with a 50-user minimum.

Gartner forecasts worldwide spending on securing AI at $2.835 billion in 2026 and $4.783 billion in 2027, with almost $7.7 billion forecast by 2028. More than half of successful attacks on AI agents by 2029 are expected to exploit access-control weaknesses and prompt injection. The market is moving fast, but the evaluation criteria haven’t changed: coverage breadth, enforcement point, policy granularity, forensic reconstruction, and deployment friction.

How do you roll this out without stopping development?

The Finding and Eliminating Shadow AI Without Slowing Developers analysis is clear: endpoint agents are required to catch shadow AI in engineering organizations. Network and browser tools miss CLI, IDE, and MCP traffic where sensitive code and credentials actually flow. But deployment friction is real — installing agents on developer laptops is the highest-friction part of governance.

Start with watch-only mode. Deploy the endpoint sensor through your existing MDM (Jamf, Intune, Kandji) in detect-only configuration. Let it build the inventory for two weeks without blocking anything. You’ll see every agent, every MCP server, every Skill and rules file, every credential in reach. Then write one policy that maps to each agent’s native controls. Push the policy through the same MDM. Keep watch-only for another week. Only then enable blocking — and give every exception an owner and an expiry date.

The MCP Audit Checklist reinforces this: shadow MCP is the critical blind spot your gateway misses. Gateways govern only their own traffic while unapproved MCP servers run as local JSON files on laptops with live credentials and no audit trail. Your audit checklist should start with endpoint discovery, not network logs.

Security owns the policy and the exceptions. Engineering owns the workflow and the speed. Write down three names: who approves a new agent, who approves a policy exception, and who reads the weekly records review. The split matters because the two sides want different things. The platform leader wants agents running unattended for hours; the security leader wants to say yes without being the one blamed when an agent does something bad. A shared policy, owned by security and tuned with engineering, gets both.

What’s your next move?

If you’re running Microsoft 365 E5, you already have AI app discovery, Copilot data posture, and local agent discovery through Defender for Cloud Apps and Purview. Start there — it’s paid for. If you’re on Business Premium, the two add-ons ($15 together) close the main gaps, though Agent 365 costs extra at $15/user/month and requires E7 (Flamingo). For multi-tenant MSP environments, Auvik SaaS Management and AvePoint Elements are the confirmed multi-tenant picks.

If you have a real developer population, you need an endpoint agent. Harmonic Security and Netskope (if you already own it) are the only tools confirmed to see IDE assistants, CLI agents, and local MCP servers. Nudge Security is the right buy for a SaaS-heavy company with few developers — it’s the only one that lists a price on its own website. A browser extension like Akamai Workforce Protector is a good enforcement layer and a poor sole inventory.

The governance boundary that matters is pre-action hook enforcement on the developer endpoint. Not policy documents. Not SaaS discovery dashboards. Not model-level guards that adversaries know how to bypass. The endpoint is where the agent runs, where the MCP server lives, where the credentials sit, and where the action happens. Put your control there, or accept that you don’t have one.

What’s the first agent your endpoint sensor will find that you didn’t know about?