Governing Shadow AI the Way Enterprise IT Conquered Shadow SaaS
A three-phase CASB-style playbook for finding, ranking, and controlling AI agents.

Shadow AI detection and governance require the shadow SaaS playbook, adapted for tools that can act autonomously. Enterprise security teams need to discover AI use across network traffic, browsers, plugins, model APIs, and agent workflows, classify its risks, enforce policy through a centralized control layer, and make approved access fast. Policy must govern both the connections agents use and the instructions they receive.
Why shadow AI is not just shadow SaaS with a new name
Employees start using useful tools, IT finds them later, and that discovery triggers governance paperwork. Shadow SaaS followed that pattern, but its AI successor changes what happens before discovery. A Dropbox account holds files, while an employee-built agent can query internal databases, write to SaaS records, send external communications, and chain those actions without a human approving each step.
That capacity for action makes agentic shadow AI more dangerous than an unauthorized storage account. CSA and Token Security’s survey found unexpected agents in internal automation environments, LLM platforms, SaaS tools with built-in automation, and developer-created workflows. These are places designed for decentralized problem-solving, so an agent can arrive unobtrusively as part of ordinary work. Its departure is equally uncertain. An agent that was never formally onboarded is unlikely to be formally retired, leaving its access and ownership unresolved as time passes.
How widespread ungoverned AI use actually is inside enterprises today
Optro’s AI oversight gap report found that a large majority of organizations report moderate to pervasive shadow AI use, while only a quarter have comprehensive visibility into employee AI activity. More than half have only partial visibility, with a further significant share reporting limited visibility. Blind spots are the normal condition here. The scale of adoption therefore cannot be read cleanly from the inventory an organization already has.
The CSA survey exposes that problem more sharply. A majority of organizations said they had high visibility into AI agents, yet more than four in five had discovered at least one previously unknown agent or workflow in the past year. The report distinguishes operational visibility, which is enough to run known deployments, from assurance-grade oversight, which establishes that all agents are identified, scoped, and controlled. Fragmented responsibility across leadership, risk, IT, compliance, and security compounds the gap because no single function owns a majority of governance responsibility.
What the shadow SaaS playbook actually consisted of, and why it worked
The shadow SaaS response began with discovery through network visibility, browser traffic analysis, and procurement signals. Classification then grouped the tools by their data sensitivity, vendor security posture, and compliance exposure. Enforcement followed through single sign-on, cloud access security brokers, and conditional access. Finally, self-service provisioning and approved alternatives made it easy to get access through approved channels. The sequence was part of the design.
Classification without discovery was guesswork, while enforcement without classification produced blunt bans that encouraged workarounds. Fast access without enforcement merely opened another unmonitored channel. The response worked by setting a technical boundary with a useful way through it, so employees could get work done and follow the rules.
The cloud access security broker, or CASB, made that boundary enforceable at the network and identity level. Policy became a condition of access. That is the useful inheritance for shadow AI.
Applying phase one — how to find which AI tools employees are using without IT approval
Network and browser traffic are still useful places to start, but discovery now has to look beyond separate SaaS destinations. A Dropbox URL or Slack domain identifies an application relatively neatly. AI use can instead appear as an extension in an approved browser, a plugin in approved software, or model API calls within ordinary HTTPS traffic. Approved connectors can also become the building blocks of an unapproved agent. The parts may be sanctioned while the workflow is not.
The CSA report describes agents arriving through plugins, no-code workflows, SaaS feature toggles, and internal scripts that gain access to several systems. To detect those agents, discovery must explicitly target AI chatbots, model APIs, SaaS MCP servers, and AI model provider frameworks, rather than stopping at standalone application destinations. Browser and plugin activity also belongs within that scope. A catalogue of approved applications cannot establish that every AI capability inside them is approved.
Incomplete discovery weakens every later control. When an agent is unknown, no one can knowingly give it least-privilege permissions, include it in access reviews, or retire it through a governed lifecycle.
Applying phase two: classifying shadow AI risk, and why AI agents need a higher-risk tier
Data sensitivity, vendor posture, and compliance exposure still help teams judge risk, but they no longer cover all of it. An agent’s reach depends on what it can do with the data it accesses. Classification therefore needs to cover two more dimensions, degree of autonomy and tool surface. The first asks whether the agent executes multi-step plans without human approval. The second asks how many enterprise systems it can reach and write to.
Those dimensions show differences that a standard application score can miss. An agent that summarizes documents and an agent that changes records and sends external communications may encounter similar data, yet have very different capacities to cause harm. Human checkpoints change that exposure further. High-autonomy agents with broad tool access belong in the highest risk tier and warrant the scrutiny applied to privileged service accounts, regardless of how casually they were assembled.
The CSA report identifies the consequences of losing that distinction. Unknown agents can inherit permissions through tools, service accounts, and connected workflows, undermining least-privilege decisions. Security teams also need to know an agent exists before they can set up a reliable way to approve its actions. During an incident, responders then need to reconstruct what triggered an action, which systems it touched, and who owns it.
Applying phase three: why a centralized AI control layer is the direct equivalent of the CASB
A centralized broker gives policy a place to operate. The CASB controlled access between identities and SaaS destinations, so policy could be checked, enforced, and logged. The AI layer does the same job between agents and enterprise tools. Model Context Protocol, or MCP, connects agents to those tools, while an MCP gateway governs access to MCP servers and the systems they expose. Its functions include authentication, access control, routing, observability, auditing, and policy enforcement.
A conventional API gateway alone does not cover that remit. Agent-to-system traffic is nondeterministic, and authorization includes short-lived tokens and user-delegated OAuth alongside static keys. Tool poisoning, context leakage, and indirect prompt injection also extend the security surface. The broker must understand more than the destination.
Available platforms illustrate different parts of this infrastructure. Kong AI Gateway introduced an MCP Registry inside Konnect in February 2026, cataloguing and versioning servers with ownership and inherited policy, including hiding unauthorized tools at discovery time. Cloudflare MCP Server Portals aggregates registered servers behind a single portal URL, with Cloudflare Access enforcing policies through the existing identity provider. Its documentation also warns that direct server URLs can bypass those policies. A front door is not a boundary if the side door stays open.
IBM ContextForge provides an open-source, Kubernetes-capable gateway with federation and protocol bridging for REST and gRPC services. These capabilities serve different operational needs, but the governing principle is shared. Enforcement belongs where the connection is brokered, and ungoverned paths must be closed.
Why AI agent identity is the enforcement gap that makes everything else fragile
A gateway can enforce policy only as precisely as its identities allow. Over-scoped service accounts and hardcoded API keys obscure the authority an agent should have and leave gaps in the audit record. A central connection point needs to establish who the agent is acting for and which permissions apply.
Identity products are addressing that requirement directly. Okta for AI Agents reached general availability on April 30, 2026, and its Agent Gateway brokers short-lived credentials while keeping them outside the agent. Its Agent-to-Agent Connections controls task handoffs and records an auditable chain, while Resource Access Certifications for AI Agents brings agents into ongoing access reviews. Anthropic’s generally available Workload Identity Federation offers short-lived, scoped credentials as an alternative to static API keys, which remain usable.
Microsoft Entra Agent ID takes a directory-based approach. Agents built in Microsoft Foundry, Copilot Studio, and Security Copilot receive identities automatically during platform onboarding, while other platforms require additional integration. Administrators can then use tools they already know to apply policy and audit. For finer control, relationship-based or attribute-based permissions can distinguish permission to summarize project documents from permission to export them to external APIs. Yet a hijacked agent can still pass an identity check, because having authority does not show whether its current action is what it was meant to do.
Prompt injection and the runtime threats that identity alone cannot stop
A system prompt is not a security boundary. An instruction such as “do not delete files” asks the model to behave, but does not remove its ability to call a deletion tool. Prompt injection can exploit that difference between instruction and authority. Restrictions that must hold under adversarial conditions therefore need enforcement at the API level, outside the model’s interpretation of natural language.
Okta’s approach scopes the tools exposed to an agent before execution, filtering unauthorized MCP tools using the delegating user’s identity. This removes capabilities from reach rather than asking the model to ignore them, while also lowering schema token costs. Authorized capabilities still need safeguards, however. Before an agent carries out financial transactions, bulk database exports, or permission changes, it should need step-up human approval.
The governance layer also needs real-time detection of prompt injection, PII leakage, and secrets in transit. Downstream monitoring arrives too late to prevent an action already taken, and agent failures can unfold across a trajectory of multiple tool calls. EU AI Act Article 15(4) requires resilience and technical and organisational measures for high-risk AI systems, but does not specify API-level enforcement. Nannini et al.’s 2026 compliance architecture analysis argues for that approach in agentic systems. The distinction is important because an architectural interpretation should not be presented as the regulation’s explicit wording.
Applying phase four: making sanctioned AI access fast enough to outcompete the shadow
Optro’s report found that insufficient training and pressure to move quickly drive the majority of risky AI behavior. That makes access design part of the security response. Employees still need to finish the work that led them to an unauthorized tool. The policy may be immaculate while the workflow goes elsewhere.
A governed distribution layer meets that need with a catalogue of approved MCP servers, AI skills, and agents that employees can use right away through their existing identity. Employees do not need to file a ticket or wait through a security review cycle for each use of an approved capability. Governance is built into provisioning. When sanctioned access takes the same number of steps as unsanctioned access, the productivity case for the shadow weakens.
That channel also gives agents a managed lifecycle. Provisioned agents are documented in an inventory, scoped, subject to periodic access review, and available for retirement. A managed lifecycle supports velocity under governance, with less disruption from cleaning up ungoverned deployments. Enterprises that build this layer now will be better positioned to extend AI safely to every employee and avoid discovering the cost of ungoverned deployments after rollout.
Where the shadow SaaS analogy breaks down and what that demands of the governance layer
Autonomy, real-time action, and changing infrastructure standards stretch the SaaS template beyond its original design. Agents can chain actions across systems faster than an incident response process can step in, so access control needs to limit how far agents can act on their own and require human approval for exceptions. Some consequences cannot be recalled. An external communication or database modification requires enforcement before the tool call completes.
The infrastructure is also a moving target. The MCP specification’s 2026 changes include a stateless core, Enterprise-Managed Authorization, and server-to-client change notifications, so keeping the governance layer up to date means tracking changes to the specification. The CSA report frames agent governance as an interconnected system of visibility, lifecycle management, and least privilege that requires ongoing attention. The shadow SaaS playbook supplies the structure, but runtime enforcement and detection make it fit for agents. Without those additions, an enterprise can reproduce the old architecture faithfully and still leave the new risks untouched.


