What is shadow AI? Risks, detection, and controls

Explainer · Gateways

Shadow AI is the use of AI tools, models, agents, or integrations inside an organization without approval or oversight from IT or security. It ranges from a personal chatbot account used with customer data to a coding agent on a personal API key with an unvetted tool server attached. This explainer covers the forms shadow AI takes in 2026, sourced risk figures, detection signals, layered controls, and AI agent governance. For related guides, see our AI gateways and LLM routing hub.

What is shadow AI?#

Shadow AI is any AI tool, model, agent, or integration that people use for work without approval or oversight from IT or security. It is the AI-specific part of shadow IT, and it carries more risk because prompts contain data, outputs carry obligations, and agents take actions.

Most shadow AI is not malicious. A chatbot needs only an email address, so people adopt tools that save time before anyone responsible for data or spending knows they exist. A use counts as shadow AI if the organization does not know about it, has not reviewed its data terms, or cannot revoke its access, even when the product is one the organization buys under another account.

Shadow AI vs shadow IT#

Shadow IT Shadow AI
What it is Any app, device, or service used without IT approval AI tools, models, agents, and integrations used without IT or security approval
What leaves the organization Files and records stored in another service Prompts, pasted documents, source code, and tool results
Can it act on your systems? Rarely; most tools store or share data Yes; agents can read, write, and send on a user's behalf
Cost pattern Mostly flat subscriptions Subscriptions plus token-based usage billing
Main detection signals SaaS discovery and expense data The same, plus API traffic, OAuth grants, and local agent configurations

Shadow AI examples in 2026#

Shadow AI in 2026 takes eight common forms: personal chatbot accounts used with work data, AI browser extensions, desktop AI apps, coding agents on personal API keys, unapproved MCP servers, locally run models, AI features switched on inside approved SaaS, and autonomous AI agents with their own credentials. Each form escapes a different control.

Form Example Why it escapes review
Personal chatbot accounts A consumer ChatGPT, Claude, or Gemini account used to summarize a contract Sign-up needs only an email address
AI browser extensions A writing or meeting assistant that reads page content Installs in seconds and sends data to its own backend
Desktop AI apps A desktop chat app signed in with a personal account Looks like any app install; traffic is ordinary HTTPS
Coding agents on personal keys Claude Code started with a personal ANTHROPIC_API_KEY Runs in a terminal, billed to a personal card
Unapproved MCP servers A community MCP server added to an agent's config file A few lines of JSON on a laptop, with no central registry
Locally run models An open-weight model served by Ollama on a laptop Traffic never leaves the device
AI features in approved SaaS A new assistant inside a suite the organization already licenses The vendor was approved before the feature existed
Agents with their own credentials A scheduled agent holding a repository token Runs with no person present; credentials outlive their owner

A developer can install one of the AI coding agents, set an API key, and attach MCP servers without a request reaching IT; Claude Code's MCP access documentation states that by default anyone running it can connect any MCP server. An agent built in a script can hold tokens, run on a schedule, and outlast its builder's role.

Embedded features are easy to miss because the vendor is already approved; Google's Workspace admin help states that Gemini features in Workspace services are on by default. Local models avoid network controls entirely, because Ollama binds to 127.0.0.1 on port 11434 by default. Their license terms still need review, since open-weight models ship under licenses ranging from Apache 2.0 to custom licenses with use restrictions.

How common is shadow AI?#

Survey data shows shadow AI is common and costly. Microsoft and LinkedIn's 2024 Work Trend Index found that 78% of AI users brought their own AI tools to work, and IBM's 2025 Cost of a Data Breach Report found that one in five studied organizations reported a breach due to shadow AI.

  • Microsoft and LinkedIn, 2024 Work Trend Index: a survey of 31,000 knowledge workers in 31 markets, run in February and March 2024, found that 78% of AI users brought their own tools.
  • IBM, 2025 Cost of a Data Breach Report: across 600 breached organizations studied by the Ponemon Institute, high levels of shadow AI added an average of $670,000 to breach costs, and shadow AI incidents compromised personally identifiable information in 65% of cases and intellectual property in 40%. Of the breached organizations, 63% had no AI governance policy or were still writing one.
  • IBM, 2026 Cost of a Data Breach Report: IBM X-Force's summary states that only 40% of organizations used access controls on AI models and data, and that 92% of organizations with an AI-related breach lacked proper AI access controls.

Each survey defines its terms differently, so treat the figures as direction, not a benchmark.

Shadow AI risks#

The main shadow AI risks are data leakage and retention, regulatory exposure, intellectual property and licensing problems, unmanaged spend, agent actions without an audit trail, and prompt injection through unvetted tools. The first four are familiar from shadow IT. The last two come from agents that act on systems and read untrusted content.

Data leakage and retention#

Anything put in a prompt leaves the organization, and what happens next depends on the account, not the product. Under Anthropic's 2025 consumer terms update, Claude Free, Pro, and Max users, including Claude Code on those accounts, choose whether their data may train models, and opting in extends retention from 30 days to five years. The update does not apply to Claude for Work or the API. A personal account sits outside every contract the organization negotiated.

Regulatory exposure#

Rules such as the GDPR and HIPAA govern when personal or regulated data may go to a third party, and a personal chatbot account is a third party with no agreement in place. Article 4 of the EU AI Act, in application since February 2, 2025, requires providers and deployers to support their staff's AI literacy; the European Commission's AI literacy Q&A says that applies to a company whose employees use ChatGPT for tasks such as translation.

Intellectual property and licensing#

Source code and deal documents go into assistants as easily as anything else, and IBM's 2025 study found IP compromised in 40% of shadow AI incidents. The risk also runs the other way, because generated code can raise questions about its origin and model licenses can restrict commercial use.

Unmanaged spend#

Shadow AI spend hides in expense reports and on personal cards. Individual subscriptions duplicate seats the organization already pays for, and personal API keys bill per token with no budget, so a looping agent runs up a bill nobody sees.

Agent actions without an audit trail#

An agent on a personal account acts with that person's permissions and leaves no central record of the tools it called, so the organization cannot tell its actions from the person's. OWASP's Top 10 for LLM applications calls this Excessive Agency (LLM06:2025) and traces it to excessive functionality, permissions, and autonomy.

Prompt injection through unvetted tools#

Prompt injection lets text the model reads change what an agent does. An unvetted MCP server can carry tool poisoning: instructions hidden in a tool's description that the model reads and the user never sees, sometimes added after the server was approved. Shadow MCP servers skip the review that would catch it.

How to detect shadow AI#

Detect shadow AI by combining signals, because each source misses some forms. Network and DNS logs, secure web gateway or CASB discovery, OAuth grants in the identity provider, expense and procurement data, endpoint inventory, and employee surveys together show which AI tools are in use, who uses them, and why.

Signal What it finds What it misses
Network and DNS logs Traffic to chatbot sites and model APIs such as api.openai.com and api.anthropic.com Off-network devices, local models, encrypted content
Secure web gateway, CASB, or SSE discovery AI apps by category, with users, volume, and risk scores Apps missing from the vendor's catalog
OAuth grants in the identity provider AI apps connected to mail, files, or calendars Tools with their own login or an API key
Expense and procurement data Expensed subscriptions and API bills Free tiers and privately paid tools
Endpoint inventory Desktop apps, extensions, agents, MCP configurations, local runtimes Unmanaged and personal devices
Surveys Why people adopted a tool and which need it serves Anything people choose not to report

Network and SSE discovery#

Microsoft Entra's shadow AI discovery analyzes network traffic to find chat services such as ChatGPT and Claude, SaaS MCP servers, and model provider APIs, and Microsoft's shadow AI deployment guide starts by filtering the Defender for Cloud Apps catalog to Generative AI and tagging apps sanctioned or unsanctioned. Cloudflare Gateway's common HTTP policies include blocking the Artificial Intelligence application type and isolating unreviewed apps. Each sees only traffic that passes through it.

OAuth grants in the identity provider#

AI apps that read mail, files, or calendars leave a record in the identity provider. In Entra ID, users can consent by default to permissions that do not need admin consent; Microsoft recommends limiting consent to verified publishers, and changing the setting leaves existing grants in place. Google Workspace lists apps that have accessed Google data with user counts, and admins can mark each Trusted, Limited, Specific Google data, or Blocked.

Endpoint inventory and surveys#

Device management tools list installed apps, CLIs, and extensions on managed machines. Agent configuration files show tool servers: Claude Code keeps MCP server configurations in ~/.claude.json and project .mcp.json files, and a process listening on port 11434 usually means Ollama. A short survey covers the rest; people report more when the result is a better approved tool instead of a reprimand.

How to manage shadow AI with layered controls#

Manage shadow AI in layers, starting with what people need. Offer sanctioned alternatives first, publish an acceptable-use policy, tie AI access to identity and SSO, route sanctioned API traffic through an AI gateway, and enforce at the endpoint, browser, or network for what remains.

Seven control layers from people to requests: sanctioned tools and policy, identity, endpoint, browser, network, the AI gateway, and the providers and MCP servers behind it. Closest to peopleSanctioned tools and policyWhat people may useapproved toolsuse policyrequest pathIdentityWho is using itSSO and SCIMOAuth consentorg-only loginEndpointWhat runs on the deviceMDMmanaged settingsendpoint AI controlBrowserWhat happens in AI tabsextension allowlistprompt DLPNetworkWhere traffic goesDNS filteringSWG or SSECASB discoveryAI gatewayWhat each request may dovirtual keysbudgetsguardrailslogsProviders and toolsModel APIs and MCP serversClosest to the modelPeopleDevices and trafficRequests
Figure 1: Shadow AI controls work in layers, and each layer covers forms of shadow AI that the others cannot see.

Each layer goes blind somewhere: identity misses personal API keys, a gateway misses traffic that never points at it, endpoint control misses unmanaged devices, browser controls miss desktop apps and CLIs, and network controls miss local models.

Offer sanctioned alternatives and a policy#

Most shadow AI fills a real need, so a block without an approved alternative moves the same use to phones and home laptops. Approve at least one general assistant on a business plan, one coding agent, and a published way to request new tools and MCP servers. Then write a one-page acceptable-use policy: which data may go into which tools, no company data in personal accounts, who approves new tools, and who reviews AI output.

Tie AI access to identity and SSO#

Connect each approved assistant to SSO and SCIM, so access ends when an employee leaves. Some tools can refuse personal sign-ins on managed machines: Claude Code's forceLoginOrgUUID setting pins claude.ai logins to your organization when set in managed settings. In the identity provider, require admin approval for AI apps that ask for mail or file access.

Route sanctioned API traffic through an AI gateway#

An AI gateway is a proxy between applications and model providers that holds provider credentials and applies shared policy to each request, as our explainer on what an AI gateway is describes. People and agents receive virtual keys instead of provider keys, each key carries a budget and a model allowlist, guardrails check prompts and responses, and every request is logged against its key.

In Bifrost, the open source gateway from Maxim AI, virtual keys reach only the providers configured on them, and an enforce-auth setting makes a valid key mandatory for every inference request. Budgets and rate limits apply per virtual key, team, and customer. As an MCP gateway, Bifrost's MCP tool filtering is deny-by-default, so a key with no MCP configuration gets no tools unless an admin marks a client as allowed by default. Its guardrails, an enterprise feature, check requests, responses, and MCP tool calls for PII and secrets. Our AI gateways directory compares other gateways.

A gateway governs only traffic that points at it, so coding agents need configuration that keeps them there. Claude Code reads managed settings, delivered by MDM or a system file, that users cannot override:

{
  "allowedProviders": ["customEndpoint"],
  "env": {
    "ANTHROPIC_BASE_URL": "https://bifrost.example.com/anthropic"
  },
  "allowManagedMcpServersOnly": true,
  "allowedMcpServers": [
    { "serverUrl": "https://mcp.example.com/*" }
  ]
}

Per Claude Code's gateway documentation, allowedProviders set to ["customEndpoint"] with the gateway URL in the same managed file makes Claude Code (v2.1.285 or later) refuse sessions pointed anywhere else, including Anthropic directly. The managed MCP settings make the allowlist authoritative, and with only serverUrl entries, local stdio servers are blocked too. Each developer's virtual key comes from secrets tooling as ANTHROPIC_AUTH_TOKEN or an apiKeyHelper script, as Bifrost's Claude Code guide describes.

Control AI apps and MCP servers on the endpoint#

Endpoint control covers what a gateway cannot reach on its own: desktop chat apps, AI in the browser, coding agents signed in with personal accounts, and the tool servers configured inside them. Software on each managed device detects AI apps, allows or denies them, and routes approved AI traffic through central policy.

Managed-device AI apps and MCP servers route through endpoint control and the AI gateway; a personal account reaches a consumer AI service past network controls only. Managed deviceShadow pathAI appsdesktop · browser · CLILocal MCP serversset up in those appsEndpoint controlallow or deny apps and MCP serversroutes only AI trafficAI gatewayvirtual keys · budgets · guardrails · logsModel providershosted APIsRemote MCP serversapproved toolsPersonal accountpersonal key or deviceNetwork controlsDNS · SWG · CASBConsumer AI serviceoutside contractsAI trafficdiscover or block
Figure 2: Endpoint control brings desktop, browser, and agent traffic under gateway policy, while a personal account on an unmanaged device meets network controls at most.

Bifrost Edge, Maxim AI's endpoint extension of the Bifrost gateway, is one example. According to Maxim's Edge page, it runs on macOS, Windows, and Linux, routes only AI traffic, and leaves everything else on the device uninspected. That traffic goes through the organization's Bifrost gateway, where, according to the Edge overview, existing virtual keys, budgets, audit logs, and guardrails apply. When Edge detects a new app or MCP server, it requests approval in the admin console, and denied apps are blocked before any data leaves the machine. It also inventories MCP servers configured in supported apps across the fleet, and a deny applies even to servers configured before the policy existed.

As of November 2026, Edge's supported applications include Claude Desktop, the ChatGPT desktop app, Cursor, Codex, the ChatGPT and Claude websites, Claude Code, Codex CLI, and OpenCode. It deploys through MDM platforms including Jamf, Microsoft Intune, Kandji, Omnissa Workspace ONE, and JumpCloud, requires the Bifrost Enterprise Gateway, and is priced by the number of devices. Like any endpoint control, it covers managed devices and supported apps, not a personal phone.

Network and browser controls cover other ground. An SSE or secure web gateway, such as Entra Global Secure Access or Cloudflare Gateway, blocks AI app categories for any device whose traffic it carries. In managed browsers, Chrome's ExtensionInstallBlocklist set to * blocks every extension not in ExtensionInstallAllowlist, and Purview data loss prevention can detect sensitive data pasted into AI sites. Our guardrails and AI security directory lists more platforms that govern employee and agent AI use.

AI agent governance#

AI agent governance applies the same controls to agents that act on their own: an inventory of every agent and the credentials it holds, scoped and expiring keys, approval before an agent gets a new tool or MCP server, human approval for sensitive actions, and an audit trail that ties each action to an agent and an accountable owner.

An agent that shares a person's credentials cannot be told apart from that person in logs, and an agent with a broad token can do anything the token allows.

Control Question it answers Example implementation
Agent inventory Which agents run, who owns each, and what they can reach A registry entry per agent with owner, purpose, credentials, and tools
Scoped credentials What the agent can do if it misbehaves A dedicated virtual key per agent with model, budget, and tool limits
Tool approval Which tools and MCP servers the agent may call Per-key MCP tool allowlists and managed MCP allowlists on devices
Human approval Which actions need a person first Human-in-the-loop checkpoints before writes, payments, or external messages
Audit trail What the agent did, and on whose behalf Gateway request and tool-call logs exported to the security team

These controls follow OWASP's mitigations for excessive agency, including minimizing extensions and their permissions and requiring user approval. An agent that runs with no person present needs its own scoped credential instead of a person's account or a shared admin key, so revoking it does not lock out its owner. In Bifrost's agent mode, no tools run automatically by default: teams list the tools that may auto-execute, and Bifrost returns other tool calls to the application for approval. Our Model Context Protocol explainer covers how agents discover the tools these controls restrict.

Where to go next#

Run discovery before blocking anything, and publish the approved catalog before the first block goes live. Our explainer on what an AI gateway is covers the routing, keys, and logging behind sanctioned AI traffic, and our LLM observability guide covers tracing what an approved agent did inside its loop. More guides are in the AI gateways and LLM routing hub.

Frequently asked questions

What is an example of shadow AI?

A common example is an employee pasting customer records into a personal chatbot account to draft a reply. Others include a developer running a coding agent on a personal API key, an engineer adding an unvetted MCP server to an agent, and a team using a new AI feature inside an approved SaaS suite without review.

What is the difference between shadow AI and shadow IT?

Shadow IT is any technology used without IT approval, such as personal cloud storage or an unapproved SaaS tool. Shadow AI is the AI-specific subset, with added risks: prompts can carry sensitive data that a provider may retain or train on, outputs can raise licensing questions, and agents can act on systems for a user instead of only storing data.

How do you detect shadow AI?

Combine several signals, because each one misses something. Network and DNS logs show traffic to AI services, secure web gateways and CASB tools classify AI apps, identity providers list OAuth grants, expense data reveals personal subscriptions, endpoint inventory finds apps, agents, and MCP configurations, and surveys explain why people adopted each tool.

How do you prevent shadow AI?

You reduce shadow AI rather than eliminate it. Approve AI tools that meet real needs, publish a short acceptable-use policy, require SSO, route sanctioned API traffic through an AI gateway with per-user keys, and enforce at the endpoint, browser, or network for the rest. Blocking without an approved alternative tends to push use onto personal devices.

What is AI agent governance?

AI agent governance is the set of controls that decide which agents run in an organization, what credentials and tools each one holds, which actions need human approval, and how each action is recorded. In practice it means an agent inventory, scoped credentials, tool and MCP server allowlists, approval steps for sensitive actions, and audit logs tied to an accountable owner.

Is using ChatGPT at work shadow AI?

Using ChatGPT at work is shadow AI when the organization has not approved that use, for example a personal account used with work data. The same product used through an organization-managed workspace, with SSO, reviewed data terms, and admin controls, is sanctioned AI. The distinction is approval and oversight, not the product.

Terms in this guide

Cite this guide

The AI Engineering Editors. "What is shadow AI? Risks, detection, and controls." The AI Engineering, updated Nov 20, 2026. https://theaiengineering.com/articles/shadow-ai

Title
What is shadow AI? Risks, detection, and controls
Author
The AI Engineering Editors
Publisher
The AI Engineering
Published
Updated
View as Markdown

The AI Engineering Editors ·