Why the Shadow SaaS Discovery Muscle Translates Directly to Agentic AI Surface Coverage
Security teams can reuse their shadow SaaS playbook to govern MCP servers and agents.

Enterprise security teams can detect unauthorized AI use by extending shadow SaaS discovery beyond DNS, proxy, and SSO records to endpoint processes and runtime tool calls. The operating model transfers directly to agentic AI, which is to find ungoverned connections, identify their owners, assess their access, and route them through a governed path. MCP servers, persistent agent identities, and tool-call audit trails are the new surface for the existing governance model.
How the same human behavior that created shadow SaaS is now creating shadow MCP
Shadow SaaS began with a practical mismatch. Developers and business teams could set up tools in hours, while procurement and security reviews took longer. Employees took the path that let them finish their work. Developers make the same choice when they connect an agent framework to a corporate data store, messaging platform, or API through a Model Context Protocol server. The developer supplies the connection, but the machine keeps working after the developer goes home.
Kumar et al.’s 2026 paper, A Gateway Architecture for Enterprise MCP Authentication, describes how large organizations went from zero to dozens of MCP servers built in-house within a year. Each team implemented authentication independently, using anything from no authentication to API keys or full OAuth. That fragmentation left no consistent way to authorize callers, attribute actions, or offboard a departing employee across the fleet. This is the old organizational gap at higher velocity. Local teams can create useful connections faster than the enterprise can establish who owns them and what they should be allowed to do.
Why the blast radius of an ungoverned agent is larger than that of an ungoverned SaaS subscription
Where a shadow SaaS application receives data a person sends it, an agent can initiate connections, execute code, call APIs, write files, and retain credentials. A single agent may have access to CRM, email, cloud infrastructure, and payment systems. Long-lived API keys embedded in configuration turn those permissions into standing access beyond one bounded task.
An agent chooses which tools to call and which data to read while it works, so prompt injection can redirect a legitimate workflow mid-session. The general attack chain is straightforward, even when its execution is not. If injected instructions get an agent to read sensitive data and send it through an external connection it can use, the capabilities it is allowed to use become an exfiltration path. No employee has to decide to steal anything.
A malicious extension payload that harvests developer credentials directly from the local environment does not need to manipulate a model at all. The distinction prevents prompt injection from becoming a catch-all explanation for every AI-adjacent compromise. Both risks are harder to contain when agents share accounts or pass work to other agents. Without a traceable authorization chain, a compromised step can propagate through other agents while obscuring the person who originally approved the work.
Why traditional shadow IT discovery tools undercount agentic AI exposure
DNS queries, proxy logs, and browser traffic remain useful for finding employees’ direct use of consumer AI services. Traditional discovery checks those signals for known SaaS domains. But a domain is not a tool call. API-based agent activity may produce no distinctive domain-level signal, leaving the discovery system able to recognize a destination without understanding the action performed there.
Approved SaaS products create another blind spot. An AI workflow builder inside a CRM or an agent integration inside a ticketing tool can look like ordinary use of an already permitted application. Existing allowlists admit the traffic because the product is approved, even though its new agentic connections may not be governed. Approval of the container does not establish approval of everything it can now do.
MCP also lets agents discover and invoke tools dynamically. Configuration review can show a connection, but it cannot fully enumerate the tools an agent actually touched at runtime. To find unauthorized AI usage, security teams need to see endpoints, processes, and runtime traffic alongside their DNS and proxy records. Those layers answer different questions. Network records help locate usage, while runtime evidence reveals the tool calls that turn usage into access.
The four steps of the shadow SaaS playbook and how each maps onto the agentic surface
The first step is enumeration. It finds connections whether or not anyone approved them. Shadow SaaS programs use DNS, proxy logs, and SSO federation records to map tools in use. The agentic equivalent includes internal MCP servers, remote servers configured in developer tools, STDIO servers running on endpoints, agent frameworks, and AI-enabled SaaS features. A public MCP registry is only a starting point. It leaves out servers built in-house, so it cannot show all the servers in the enterprise.
The second step is attribution, which connects each discovery to a named person, team, and business purpose. For SaaS, knowing which business owner was responsible was often enough to start a review. Agents require a further link. Each tool call must connect to the agent identity that made it and the human who authorized that agent to act. Otherwise, finding the server resolves the question of where work happened but leaves unanswered who was responsible.
The third step is assessment of actual access. SaaS reviews examine available data and excess permissions, while agent reviews must also examine reachable tools, credential lifetime, and the tool surface each MCP server exposes. Broad API keys granted during development can survive unchanged into production. Convenience becomes a permission model by default. Runtime observation is necessary because the access available at the moment of a call may differ from what a static policy document suggests.
The fourth step is to route connections through a path with controls in place. SaaS programs redirected usage through SSO, DLP, and procurement review. The agentic counterpart is a centralized MCP gateway that authenticates callers, applies role-based tool policies, injects short-lived credentials at the relay, and logs invocations. Routing remains the approach because bans drove shadow SaaS out of sight, and blocking shadow MCP gives employees the same reason to find another path.
What the MCP gateway does that the SaaS SSO proxy could not
A SaaS SSO proxy controls entry to a session. Once the user is inside the application, the proxy does not govern each action taken there. An MCP gateway instead intercepts individual tool invocations, making each call a point where access policy, DLP, and rate limits can apply. Authentication is the beginning of control. The architectural change follows from the agent’s ability to choose its next action at runtime.
A production gateway authenticates the agent, consults policy, and routes the request to the appropriate registered upstream MCP server. Filtered discovery limits the tools the agent can see to those it is permitted to invoke. Invocation logging then connects activity to authenticated identity. Together, these functions replace a mesh of direct agent-to-server connections with a managed path where platform teams can change policy, revoke access, and check what happened.
Credential injection strengthens that path by keeping raw upstream secrets out of the agent. The relay supplies them, rather than leaving them available in agent configuration or logs. This narrows credential exposure without making the agent immune to malicious instructions. Operational design remains important too. Separating policy evaluation from the gateway’s data path allows policy changes without proxy redeployment and avoids forcing a choice between stale rules and slow tool calls.
Agent identity: the specific gap the shadow SaaS motion left unresolved and why it must be closed first
A shared API key identifies possession. When several agents use it, the key alone cannot establish which agent acted, which human authorized it, or which policy should have applied. Shadow SaaS had the same attribution failure when several teams shared one account. Assigning an owner to the application did not identify the person behind a particular export. Agents reproduce that unresolved problem at tool-call speed.
Persistent, per-agent identity tied to a named human is therefore a prerequisite for attribution, policy, and audit. The paper addresses this through a two-axis authentication model that separates interactive users from automated non-user personas. These flows connect client, gateway, and server so that tool calls remain traceable across different authentication paths. The useful distinction is between how an action authenticates and whose authority permits it.
For enterprises, the practical starting point is the identity provider already in place. Existing joining, moving, and leaving workflows should extend to agents. Offboarding must reach beyond the developer’s laptop access. It should also revoke the agents operating under that developer’s authority. At the credential layer, short-lived, task-scoped access replaces long-lived API keys, with credentials available only for the specific action and expiring when the task ends.
What the audit trail for agents must capture that SaaS audit logs never had to
SaaS audit logs record authentication events and high-level actions such as opening files or exporting records. An agent session can instead produce a sub-second chain of tool calls, each with a separate authorization decision. Its audit record must identify the agent, the identity it used, the tool called, the data accessed, the initiating prompt, and the authorizing human. A timestamp and a successful response are not enough. The record must also explain which policy permitted or denied the action.
Every allow and deny needs its governing rule recorded. That evidence lets security teams reconstruct not only what happened but whether the policy was correctly applied. An outcome without its rule leaves a gap. A denied request may demonstrate enforcement, but an auditor still needs to know what was enforced and against which identity. Auditors need the same evidence for successful calls, because a call that looks normal may still have used access it should not have had.
Spans, latency, error rates, and hallucination scoring help explain how a system behaved and how well it performed. Agent tool-call events should still use OpenTelemetry spans so they can enter the Datadog, Grafana, or SIEM infrastructure the enterprise already operates. A separate logging pipeline is not the objective. But an audit trail that cannot attribute a tool call to a named person and a named rule is, for compliance purposes, engineering telemetry that happens to be stored.
How to extend the shadow SaaS motion incrementally without waiting for a complete agentic inventory
Start with the highest-risk agentic surface already known. A team in that position should deploy a centralized MCP gateway behind its existing identity provider, register known MCP servers, and make that path the default for new agent projects. This creates an enforceable distinction between governed connections and exceptions. Complete visibility can follow incrementally. If teams wait for it, each new connection they find has no managed path to use.
When a developer leaves, asking which agents were running under that person’s credentials can expose connections that never entered the inventory. Shadow SaaS programs used SSO deprovisioning in much the same way. The gateway should also apply the DLP rules, rate limits, and access policies already in place to MCP traffic. The work is to apply the enterprise’s current governance posture to tool calls, rather than rewrite that posture because the caller is now an agent.
Discovery and governance must then continue together. The deployment described in the paper evolved from a CDN/WAF/edge perimeter to private MCP tunnels and enterprise-wide connectors as its fleet grew. That progression supports an incremental approach in which the governed path expands with the surface, instead of waiting for a final inventory that growing adoption keeps moving out of reach. Teams already running shadow SaaS discovery have the ties to stakeholders and the trust needed to lead this work. Their transferable skill is turning unofficial use into accountable use, even when the unofficial user now runs unattended.


