Est.

Why CASB-Era Shadow SaaS Controls Miss Agents That Act on Their Own and What Replaces Them

Agents act without logins or proxies, so controls must move to identities and tool calls.

· 9 min read
Cover illustration for “Why CASB-Era Shadow SaaS Controls Miss Agents That Act on Their Own and What Replaces Them”
Secure AI Usage · November 25, 2026 · 9 min read · 2,042 words

To detect shadow AI, enterprise security teams need browser and proxy logs, server-side DNS and egress logs, and OAuth grant inventories. CASB covers part of that picture, but autonomous agents require controls over destinations, identities, and actions. The replacement architecture gives each agent an accountable identity, authorizes tool calls before execution, and records what happened in the organization’s existing observability stack.

What CASB was built to do and the user-centric assumptions underneath it

A cloud access security broker, or CASB, governs a recognizable encounter between a person and an application. A human uses a managed device, traverses a corporate proxy, and reaches a SaaS domain that maps to a known service. A domain catalog assigns the application a risk score, while the proxy inspects traffic or records its metadata. Policy then evaluates the user-and-destination pair. The access event is the hinge of this design.

That design gives security teams useful controls. Proxy and firewall logs reveal applications employees use, while active TLS inspection enables data loss prevention on uploads and form posts. API-mode connectors also expose OAuth grants inside sanctioned SaaS. Classic SaaS fits this arrangement because an application has a destination, a login event, and an admin console where governance can attach. CASB is an answer to a more bounded problem than enterprise AI now presents.

How AI tools already broke that model before agents arrived

Human-initiated AI use already strains the application catalog. The same api.openai.com public endpoint can serve a developer’s personal experiment and a browser extension leaking data. A sanctioned enterprise deployment may use that endpoint too, or a separate Private Link endpoint, depending on its configuration. The domain alone cannot distinguish those uses. Knowing the address is not knowing the purpose.

Inspection creates another limit because prompts travel over TLS. Without full interception, a CASB’s visibility is limited to destination and volume, leaving payload contents such as source code or patient records unseen. Certificate pinning and EU privacy constraints create exemption lists through which AI traffic can pass. Browser extensions add a local blind spot. They can read page content and send it through their own backend to generic cloud infrastructure, making the traffic look like routine HTTPS and obscuring its identity as an AI application.

Identity records are incomplete for a different reason. When an employee gives an AI meeting-notes tool OAuth access to a mailbox and calendar, the vendor’s servers can communicate directly with Microsoft’s or Google’s APIs using a persistent token. Those exchanges do not traverse the employee’s proxy. AI processing within approved services such as Notion AI, Slack AI, and Salesforce Einstein can also stay hidden in the traffic of those applications. The Cloud Security Alliance’s May 2026 research finds that a majority of enterprise generative AI usage occurs on personal rather than corporate-licensed accounts, further limiting what corporate account inventories can reveal.

Why autonomous agents invalidate every remaining CASB assumption at once

An agent can run without a browser, a managed device, a discrete login event, or a human initiating each action. A token, API key, or OAuth grant issued earlier lets the agent keep its access. There may be no fresh SSO event to inspect. The absence of a login does not mean the absence of activity.

An agent in a cloud VPC or a developer’s CI pipeline can make direct API calls without touching the corporate proxy. Instead of uploading a document through a browser, it can query a SaaS API, extract records, and write them to another system. Its credentials can outlive its builder’s role or employment, sometimes with broader permissions than the job needs. The browser tab closes. The authority does not.

These agents can enter through low-code builders such as Copilot Studio and Power Automate, features that are turned on automatically in sanctioned SaaS, coding tools that use developer credentials, or MCP servers and OAuth grants approved one at a time. Each route can hide new agency behind existing trust. Unlike a shadow SaaS application receiving data a person sends, an agent initiates connections, executes code, and chains actions across systems. The exposure therefore extends beyond leakage into active, unattributed operations. This is a structural mismatch.

The concrete threat record that makes the gap urgent rather than theoretical

The Alliance’s April 2026 research finds that a majority of organizations have already experienced AI agents exceeding their intended permissions. The postmark-mcp package illustrates a related supply-chain risk. It shipped several clean releases before adding email exfiltration code in a rug-pull update, and CASB could not tell from the network traffic that the behavior was malicious.

Retrieved content creates another route to compromise. Indirect prompt injection places adversarial instructions in web pages, documents, emails, or database records that an agent reads and may then execute. The Reprompt attack, CVE-2026-24307, enabled data exfiltration from Microsoft Copilot Personal through URL parameter injection requiring zero user-entered prompts. A control watching for a person’s risky upload is looking at the wrong event.

Permission controls inside an agent are not sufficient either. Research on the Claude Code permission system found a high false-negative rate in ambiguous authorization scenarios, with a substantial share of state-changing actions bypassing the classifier through file edits. Credentials, tool behavior, and retrieved instructions need controls outside the agent’s own interpretation of what it may do.

What the replacement architecture governs instead — actions, identities, and tool calls

Diagram: The Replacement Architecture: From CASB to Agent-Identity Control. Visualizes: Show a layered flow of the new agent governance architecture described in the article, contrasting what CASB controlled (user → managed device → corporate proxy…

The new unit of control is an agent-identity-to-tool-action pair. Before execution, the system must establish which agent is asking, what operation it wants, and whether policy permits it. A permitted destination is not enough. Authorization belongs at the point where a request becomes an action, with an audit record for both allowed and denied requests.

Suraj Kumar, Amy Wang, and Srinivasan Manoharan’s 2026 paper, “A Gateway Architecture for Enterprise MCP Authentication,” describes a centralized design for this purpose. At the edge, the identity provider already in place replaces long-lived API keys with short-lived, scoped tokens. An MCP gateway validates those tokens, enforces per-action policy, and maintains the tool registry. Behind it, legacy APIs, databases, gRPC services, and SaaS applications are wrapped as MCP servers. For observability, records of what each agent did go to the organization’s existing stack.

The gateway also replaces a fragmented authentication landscape. The paper describes teams choosing on their own between no authentication, API keys, or OAuth, so there is no shared authorization model or way to handle offboarding across the fleet. Centralizing that boundary makes policy coherent across tools. This replaces the CASB-era control model for agent operations without requiring the organization to discard controls that still serve human browser traffic.

Agent identity as the foundation — why every agent needs its own credential governed by the IdP

Each agent needs a persistent identity separate from its credentials. The distinction is essential. An identity lets the enterprise name an owner, set permissions, revoke access, and track who did what, while short-lived tokens give the agent authority for a given connection. A shared service account or developer API key blurs those responsibilities because the apparent actor is not necessarily the agent doing the work.

Microsoft Entra’s agent identity model separates the agent from its underlying credentials. Agent IDs acquire tokens through an agent identity blueprint, which holds federated identity credentials, certificates, or client secrets. The agent therefore does not hold its own keys to exfiltrate. Okta’s agent blueprint also includes discovery of employees’ agent connections to enterprise applications, visibility into granted scopes and potential blast radius, and remediation through registration, a human owner, and baseline policies. Auth0 made Auth for MCP generally available on May 6, 2026, another sign that agent authentication is becoming a first-class identity function.

The resulting governance pattern scopes authorization per agent and per tool through RBAC. A support agent should not reach a finance tool. The gateway brokers credentials through managed secret management so raw secrets do not live in agent code. The MCP specification version 2026-07-28 and industry practice favor short-lived, automatically refreshed tokens scoped to the target MCP server. Where agents must use managed authentication, an agent outside the IdP registry is by definition a shadow agent, so it must be registered to gain access instead of having its paperwork checked from time to time.

Observability and audit trails — logging agent actions the way CASB logged user sessions

Identity answers who the agent is, but not what it did. A complete action log must identify the agent and its named human owner, the tool called, and the parameters supplied. It must also record the allow-or-deny decision, the applicable policy rule, and the data returned or modified. With timestamps and session context, teams can use those records for incident response and compliance. An inventory is not an audit trail.

The OpenTelemetry MCP semantic conventions provide a standard schema for agent spans. They entered the OTel semantic-conventions repository in January 2026 and moved to a dedicated GenAI repository in June 2026, where they remain at Development status. Their role is practical rather than decorative. They provide a way to place agent telemetry in the same observability stack as application and human-initiated events, rather than leaving it in a vendor silo that existing SIEM rules and response workflows cannot readily use.

Action records also need to support cost attribution. Long-running tool calls can use up shared infrastructure, and finance and security need records for each agent to tell normal work from runaway sessions. MCP Tasks became an opt-in extension in the 2026-07-28 specification for asynchronous, long-running tool calls. That makes session-level accounting particularly important. The bill is another record of what an agent was allowed to do.

How do teams find shadow MCP servers employees are running without approval?

MCP servers recreate the shadow SaaS discovery problem in a less visible form. They can run on developer laptops, in personal cloud accounts, or through single-user OAuth grants. A local process may never produce a network log entry that CASB can see. Yet it can connect an LLM to filesystems, databases, and SaaS APIs. The application catalog has no useful domain to classify when the tool server is sitting on a laptop.

The risks also extend beyond generic API security. Tool poisoning embeds malicious instructions in tool descriptions, while cross-server shadowing impersonates another approved tool’s name or description. Rug-pull updates change tool definitions after they have been approved, as the earlier package incident shows. Tool responses can also return adversarial instructions. Approval must therefore cover how the tool is used over time as well as checking the server’s address once.

The recommended operating model is discovery followed by evaluation, approval or blocking, and enforcement. Once discovered servers are brought under governance, platform teams configure the gateway as the sole ingress point and use firewall rules and service mesh configurations to block direct agent-to-tool connections. Gateway records then provide the governed account of tool activity. Missing records help only when there is evidence that activity took place, so server-side DNS and egress records still matter for finding paths that bypass the gateway. This is the old discovery-and-sanctioning loop with a new enforcement point.

What security and platform teams need to do differently starting now

For teams turning this architecture into practice, inventory comes first. Human-initiated AI use needs a browser-and-proxy pass, where CASB and SSE remain useful. Agent activity needs a separate pass through DNS and egress logs from server hosts, CI runners, and agent infrastructure. OAuth grant inventories from Entra and Okta add standing permissions that traffic records alone cannot explain. No single dashboard supplies all three views.

The next step is registration through the existing IdP. Each agent needs a named human owner and short-lived, scoped credentials to replace an API key that is handed out. Agent-to-tool traffic then moves through the governed MCP gateway, where the tool registry, per-action policy, and audit log meet. Gateway telemetry should feed the existing SIEM and observability stack using the MCP semantic conventions. That sequence connects discovery to authority and then to evidence.

Shadow MCP should be treated as a discovery and promotion problem. Teams should evaluate unregistered servers and either admit them to the official registry with scoped access or block them with a documented rationale. The durable standard is accountability, with every agent action attributed to a named person, authorized by readable policy, and logged.

Sources

  1. Shadow AI Apps: The Enterprise Attack Surface That Outpaces Monitoring
Filed underSecure AI Usage

More in Secure AI Usage