Shadow AI Detection and AI Usage Monitoring

Formal Endpoint reads the LLM and MCP traffic of AI agents on macOS and Linux laptops, lists the MCP servers and Claude Code skills nobody approved, and lets you allow, limit or block each one. AI dashboards show who uses which clients and models.

shadow ai · review queueexample
# MCP Servers tab: servers with no Formal Resource
AGENT  Claude Code  https://mcp.notes-app.example/mcp   last used today
AGENT  Cursor       https://wiki.acme.example/mcp       last used today
# Skills tab: from Claude Code requests
AGENT  Claude Code  skill release-notes   Loaded
AGENT  Claude Code  skill pdf-tools       On device

The problem

Why do coding agents make shadow AI harder to see?

An engineer can wire a new MCP server into a coding agent in a minute, and from then on the agent sends it tool calls with whatever context it holds. The MCP specification says tools “represent arbitrary code execution and must be treated with appropriate caution”. Nobody files a ticket, and a survey of what people use is out of date the day an agent loads something new, so shadow AI detection has to work from the traffic agents send. The other controls coding agents need, from keys held at the proxy to blocked merges in cloud agents, are on AI coding agent security.

  1. MCP servers added in a minute

    Coding agents add tools as configuration, then act through them on their own. An unreviewed server gets the agent's tool calls with whatever it has in context.

  2. Skills that change what an agent does

    In Claude Code, a skill is a folder holding a SKILL.md file that the agent can load into a conversation. It can bundle scripts that run with the agent's permissions, and nobody reviews it.

  3. Agent traffic hides in child processes

    Agents spawn shells, git and package managers. Their connections only look like agent traffic if you follow the process tree, so detection needs the process identity and the protocol.

today · no policy on the pathexample
01
claude-code for leotools/call mcp.notes-app.exampleALLOWED
02
claude-code for leoload skill pdf-toolsALLOWED
03
bash · started by cursorPOST to an allowlisted hostALLOWED

# No inventory of the models and apps in use, and blanket blocks push people around the controls.

Definition

What is shadow AI detection?

shadow AI detectionnoun

Shadow AI detection means finding the AI tools, models, MCP servers and skills people use without a security review, in what actually runs, and then deciding what happens to each one.
  • Most of it lives inside coding agents

    Our Academy guide covers what shadow AI is and why it spreads. On engineering teams, most of it now sits inside coding agents, as servers and skills added to a config file.

  • Monitoring is the other half

    AI usage monitoring shows who uses what, and how much, approved or not, including the tools you did approve.

  • Both read the same traffic

    Formal Endpoint intercepts it on each laptop: the agent’s own MCP and LLM requests.

How it works

How shadow AI detection works

  1. Step 1 of 4

    Capture AI traffic

    Roll the Endpoint out with your MDM, enable Transparent Mode, and activate a network rule that intercepts MCP and LLM traffic from known agents.

    ENDPOINT ROLLOUTexample
    • Endpoint installed through your MDM✓
    • Transparent Mode on✓
    • network rule: mcp and llm from known agents✓
  2. Step 2 of 4

    Discover

    MCP servers with no Formal Resource and skills outside the Catalog appear in the Shadow AI queue. Until you review them, your Guardrail default applies.

    SHADOW AI QUEUEexample
    • https://mcp.notes-app.example/mcpMCP SERVER
    • release-notesSKILL · LOADED
    • pdf-toolsSKILL · ON DEVICE
  3. Step 3 of 4

    Decide

    Allow an item into the Catalog with the access you choose, or block it. Either way it leaves the queue, and you manage it from the Catalog from then on.

    DECISIONSexample
    • notes-mcp for Specific UsersALLOWED
    • notes-mcp limited to selected toolsLIMIT ADDED
    • pdf-tools for No OneBLOCKED
  4. Step 4 of 4

    Handle requests

    A blocked agent gets the list of approved MCP servers and how to request the blocked one. Employees ask from the employee Catalog, and admins approve in Access Requests.

    REQUESTSexample
    • advisory lists the approved MCP servers✓
    • employee asks from the Catalog✓
    • admin decides in Access Requests✓

Network rule

How does Formal detect shadow AI on laptops?

Formal detects shadow AI on the Endpoint, from the requests agents send. With Transparent Mode on, a network rule picks which flows to inspect. This is the rule the AI governance docs give for known agents on macOS.

  • On macOS, pre_tcp decides on the process before the flow is diverted: a known agent, or anything it started
  • pre_tls: true has the Endpoint terminate TLS with its local Formal CA, and post_tls keeps the flows it classified as MCP or LLM. Everything else passes through unlogged
  • Linux ignores pre_tcp and reads the process in pre_tls instead
  • On macOS the Endpoint also points Claude Code at a CA bundle that includes the Formal CA, so Claude Code needs no extra trust setup
  • From there, two lists fill up: MCP servers and skills. The Claude Code and Cursor pages cover each agent
Network rules docs ›
network rule · known agents on macOStext
{
  "condition": {
    "pre_tcp": process.is_agent || process.has_agent_ancestor,
    "pre_tls": true,
    "post_tls": technology in ["mcp", "llm"]
  }
}

Shadow MCP and skills

Shadow MCP: how to detect MCP servers nobody approved

To detect shadow MCP servers on a laptop, watch the requests the agent itself sends. OWASP’s MCP Top 10, still a beta, lists Shadow MCP Servers as MCP09:2025, and its prevention advice leans on network discovery: scanning subnets and cloud environments for open MCP ports and routes. That finds servers your own teams host. It misses a third-party server an engineer adds to Claude Code or Cursor by URL: that server runs on someone else’s network, and the only trace inside yours is the request leaving the laptop.

Shadow MCP

Find MCP servers outside your Catalog

Formal Endpoint watches known agents and their child processes. Each MCP call to a server with no Formal Resource puts the server on the Shadow AI MCP Servers tab within 15 minutes, with its endpoint and Last Used, and the Guardrail default decides what happens to it until someone reviews it.

  • Agents: recognized by code signature on macOS and by process name on Linux
  • Claude connectors: servers Claude reaches through its connector proxy carry a Claude Connector badge
  • Not covered: a local stdio server talks to the agent through pipes, which no network proxy sees, so it never reaches the queue
Shadow AI docs ›
shadow ai · MCP Servers tabexample
todayclaude-codehttps://mcp.notes-app.example/mcpREVIEW
todaycursorhttps://wiki.acme.example/mcpREVIEW
Skills

See the skills Claude Code lists and loads

Skills come from Claude Code’s own requests, which list the skills available to the agent and the ones loaded into the conversation. A skill can bundle scripts that run with the agent’s permissions, one of the ways skills differ from MCP servers.

  • Skills tab: each skill marked Loaded in a conversation or On device, refreshed every 24 hours
  • Claude Code only: skills used by other agents don’t appear in the queue
Claude skills guide ›
shadow ai · Skills tabexample
security@acme.com> skills outside the Catalog
agentskillseen
Claude Coderelease-notesLoaded
Claude Codepdf-toolsOn device
2 rowsREVIEW

Detection tools

Shadow AI detection tools: where each one sits

Shadow AI detection tools differ less in their dashboards than in where they collect evidence, and that position decides what they can see. When you compare them, ask which of these each one uses.

  • SaaS and identity logs

    SSO sign-ins, OAuth grants and expense data show which AI apps people log in to with corporate accounts. Personal accounts, local tools and MCP servers added by URL leave no trace there.

    Corporate accounts
  • Browser extensions

    They read prompts and uploads in browser AI apps, and nothing that runs in a terminal or a desktop agent.

    Browser only
  • Network and DNS controls

    A secure web gateway or DNS filter records which AI hostnames a device reached. A destination allowlist, the usual form of egress filtering, can’t tell an engineer’s request from an agent’s tool call to the same host, and without TLS inspection it can’t tell which account was used.

    Hostnames
  • Agent config scanning

    Reading MCP config files on disk lists what is configured. It can’t say what gets called, and connectors added in a chat app don’t live in those files.

    Configured, not called
  • A proxy on the device

    It reads LLM and MCP requests per process after TLS termination, so it records what agents actually call. It covers only the devices that run it.

    What agents call

We built Formal on the last one, because engineering laptops are where agents pick up new tools, and because the same position can block on the next request. For browser and SaaS use, sign-in logs are usually collected already and make the cheaper first map. The shadow AI guide compares the methods in more detail.

Governance

Govern shadow AI without blocking developers

Shadow AI governance holds up when the approved path is easier than the workaround. In Formal that means a default for each item type, a Catalog that records each decision, and a way to ask for exceptions.

Guardrails

Block unknown MCPs and point agents to approved ones

Guardrails has one setting for unknown MCP servers and one for unknown skills. Allow and Monitor lets the traffic through, logs it and queues the item for review; Block stops it with a generated Rego policy. We’d start on Allow and Monitor to build the inventory, then switch to Block once the Catalog covers what teams actually use.

  • Block an MCP server: the tool call returns an advisory written for the agent. It lists the approved MCP servers and explains how to request the blocked one, so the agent can switch servers or tell the engineer what to ask for
  • Block a skill: the user sees Formal’s standard block message
  • Decide in the queue: allowing an item adds it to the Catalog for Everyone or Specific Users, and blocking adds it with No One. For an MCP server, you can also limit which tools people can call
endpoint · guardrails: unknown MCPs = blockexample
cursor for leotools/call notes-mcp, no Formal ResourceBLOCKED
endpointadvisory: approved MCP servers, and how to request notes-mcp
claude-code for leoload skill pdf-toolsBLOCKED
Access Requests

Let developers ask for what they need

Requests go through the employee Catalog at catalog.formal.ai. An employee asks for a new MCP server, access to one already listed, or an exception to a policy that blocked them, and an admin decides in Access Requests. Approved MCP servers can then run through the MCP gateway.

  • Exceptions: granted once, for 30 minutes to 7 days, or for good
  • Urgent requests: Access Requests sends no notifications, so pair it with a Slack approval flow in Workflows
catalog.formal.ai · access requestsexample
mayarequest notes-mcp after a blocked tool callREQUESTED
admin (Access Requests)exception for maya, 7 daysAPPROVED
cursor for mayatools/call notes-mcpALLOWED

Generated policy

What Block generates for unknown MCP servers

Choosing Block for unknown MCP servers generates this Rego policy. It matches MCP tool calls to a resource with no name, which is a server with no Formal Resource, and returns the mcp_suggest_alternatives block type that carries the agent’s advisory.

Guardrails docs ›
policy · Block unknown MCPsrego
# generated by the Unknown MCPs guardrail
request := {
  "action": "block",
  "type": "mcp_suggest_alternatives",
  "reason": "This MCP is not approved by your organization.",
} if {
  input.resource.technology == "mcp"
  input.resource.name == ""
  input.mcp.method == "tools/call"
}

Coverage

Works with the agents your engineers run

Shadow AI detection on macOS and Linux laptops. On macOS, Formal recognizes signed builds of these agents and the processes they start; on Linux, most match by process name. The queue lists MCP servers with no Formal Resource and skills from Claude Code requests, and the dashboards chart AI clients, models and providers.

Known agent identities ›

AI usage monitoring

AI usage monitoring: who uses which AI tools

Once agent traffic flows through the Endpoint, every LLM and MCP request becomes a log line with a user, a client and a model, and AI usage monitoring comes down to charting those logs.

Dashboards

Templates for usage, models, skills and spend

Formal’s Dashboards under Observability ship templates: AI Usage for who uses AI through which clients and models, AI Models, Skills, MCP Servers and Tools, Model Adoption, AI Spend, and Risk and Labels for the policies that fired and the data labels the traffic carried. Editing a template saves a new dashboard, so AI usage tracking can follow your own source, grouping and chart without touching the templates.

  • Read-only: dashboards only read data and need the Dashboard permission. To act on what one shows, you go back to Guardrails, the Catalog or a policy
  • Spend: each request is priced from token prices you set, and a policy can cap each user per day, week or month (LLM spend)
dashboards · AI Usageexample
security@acme.com> AI Usage template: users by client and provider
userclientprovider
leo@acme.comClaude CodeAnthropic
maya@acme.comCodexOpenAI
2 rowsRECORDED
Risk

Read the same LLM traffic for risk

Two features read that LLM traffic for risk. Insights runs every 15 minutes, maps findings to the OWASP Top 10 for LLM Applications and sends them to your log integrations; it flags and never blocks. Assessments score each tool call for risk and for alignment with the user’s intent, and LLM response policies can block on those scores.

logs · llmexample
every 15 mininsightsfinding mapped to the OWASP Top 10 for LLM ApplicationsREVIEW
assessmenttool call scored for risk and intent alignment
llm response policyblock on the assessment scoreBLOCKED

The limits

What shadow AI detection covers today

Discovery runs where Transparent Mode runs, on macOS and Linux.

  • macOS

    Agents match by code signature, and network rules feed the Shadow AI queue.

    Covered
  • Linux

    Agents match by process name, which is less precise than code signatures on macOS.

    Process names
  • Windows

    The Endpoint is generally available on Windows, but without Transparent Mode or network rules, so Windows laptops don’t feed the Shadow AI queue today.

    Not today
  • Skills from other agents

    The queue lists MCP servers and Claude Code skills. Skills used by other agents don’t appear.

    Claude Code only
  • AI chat apps in a browser tab

    They aren’t MCP servers or skills, so they aren’t in the queue either. For that side, sign-in logs and tenant restrictions on corporate accounts are where we’d start.

    Not in the queue
  • Laptops without the Endpoint

    Every page reflects only the traffic Formal proxies, so shadow AI tools on a laptop without the Endpoint stay invisible. Check rollout coverage before you read a short queue as good news.

    Not visible

How it fits

Detection in the traffic path

We put discovery and enforcement on the same path for one reason: the decision you make in the queue applies to the agent’s next request, on the same device, with no second system to keep in sync. Cursor’s security team made the same call for access to internal systems: Formal sits in front of the SSH, PostgreSQL, Redis, ClickHouse and Kubernetes access of its engineers and AI agents, and its Cloud Agents reach internal data through Formal, which inspects every request. Read how Cursor gives engineers and AI agents secure access.

Formal Endpoint on laptops

Transparent Mode on macOS and Linux; roll it out to Macs with your MDM. Existing clients keep working without a base URL change (Endpoint docs).

Formal Connector in your VPC

Linux on AMD64 or ARM64: AWS ECS Fargate behind a Network Load Balancer, or Helm on EKS, GKE, AKS or on-premises Kubernetes. In production, run 2 or more nodes behind a load balancer (deployment docs).

Approved servers behind the MCP gateway

Approved MCP servers move behind the MCP gateway on the Connector, and the Catalog keeps each decision with its access controls.

Model traffic and egress

Model traffic gets policies on the AI gateway, prompts get AI DLP, and agent egress beyond AI traffic has its own controls. Coding agents get egress rules and keys held at the proxy on AI coding agent security.

One Control Plane

The Control Plane holds Guardrails, dashboards and logs in one place. People sign in with SSO, and SCIM keeps users and groups in sync.

Policy as code, audited controls

Policies are written in Rego. Manage Formal with Terraform, Pulumi or the Kubernetes Operator. Formal holds SOC 2 Type II and ISO/IEC 27001; the reports are on security.formal.ai.

In production

Technologies secured
10+
Resources secured
1,000+
Logs per week
40M+
Sessions per week
600K+
“With Formal, we can finally manage least privilege access across our entire infrastructure through a single control plane.”
Tom Daniels
Tom Daniels
CISO, Cursor
Read the Cursor story ›

FAQ

Questions about shadow AI detection

Buying and fit

How is shadow AI detected?

By comparing what AI tools send with the list you approved. On engineering laptops, Formal Endpoint reads MCP and LLM requests from known agents, and anything with no Formal Resource lands in the Shadow AI queue. AI usage monitoring on the dashboards covers the approved side: which clients, models and providers each person uses. Sign-in logs and browser extensions detect shadow AI elsewhere, compared under shadow AI detection tools above.

How do you detect shadow MCP servers on employee laptops?

Install the Endpoint through your MDM, turn on Transparent Mode, and activate a network rule that keeps mcp flows from known agents and the processes they start. Within 15 minutes, servers with no Formal Resource appear on the MCP Servers tab. If the tab stays empty, check that rule first: the queue only fills from intercepted MCP traffic.

What tools discover shadow MCP servers on developer machines?

Ones that see the agent’s own requests. Subnet scans find MCP servers your teams host, SSO logs find apps people sign in to, and config scans find what’s configured. A remote server added to Claude Code by URL and then called shows up in none of them reliably. A proxy on the device, such as Formal Endpoint, sees each call, along with which process made it.

How do you prevent shadow AI without blocking developers?

Treat each unsanctioned AI tool on the first inventory as a request someone never filed. Move the useful ones into the Catalog before you block anything, so most people never hit a block. After that, speed matters more than the setting: an exception answered the same day keeps engineers on the approved route, and one that waits a week sends them back to the old tool.

Product

What is a shadow MCP server?

An MCP server that people or agents use without your organization approving it; OWASP’s MCP Top 10 files the category as MCP09:2025. In Formal, it’s a server the Endpoint saw in intercepted traffic that has no Formal Resource. It stays in the Shadow AI queue until you allow it into the Catalog or block it. The shadow AI guide covers how they get added.

Does shadow AI detection see Claude connectors and ChatGPT apps?

In part. Claude connectors and ChatGPT apps reach MCP servers through Anthropic and OpenAI, so they never match the Catalog. Servers that Claude reaches through its connector proxy still show in the queue with a Claude Connector badge. When you block unknown MCPs, Allow managed connectors keeps those connectors working; personal accounts use the same relays, so the Guardrails docs pair it with tenant restrictions. Shadow AI monitoring of these apps therefore depends on your account setup too.

Which AI tools does Formal recognize?

Formal recognizes 22 AI agents and coding tools by name, including Claude Code, Claude Desktop, Codex, Cursor, GitHub Copilot CLI, Gemini CLI, Devin, Windsurf, Amazon Q Developer, OpenCode and Antigravity. Code signatures identify them on macOS. Linux falls back to process names, and a few agents are matched on one platform only. The known agent identities in the docs keep the current list.

Find the AI tools nobody approved

Shadow AI detection for MCP servers and skills on engineer laptops, with a Catalog and requests for everything you approve.