The cloud years taught IT a lesson it paid for: when the official path takes six weeks and a credit card takes six minutes, people use the card. Product teams spun up infrastructure on a corporate card, IT found out from the expense report, and a decade of discovery tools, single sign-on and landing zones followed. It is happening again, with one difference. The thing on the card this time is not a place to run software. It is software that runs as you.

Thesis: Shadow AI is following shadow IT's adoption curve, and the cloud era's lesson still holds: banning it loses, and the sanctioned path has to be easier than the shadow one. But the risk differs in kind, not degree. Shadow cloud was a place to run things, and it waited for a person to act. A shadow agent is an actor that runs as its user, with their credentials, reading text anyone can write. So the paved road for agents needs three things in a form cloud never did: an identity of the agent's own, a boundary around where it runs, and a gate on what it may do unasked.

"Those who cannot remember the past are condemned to repeat it."

George Santayana, The Life of Reason, 1905

Coming from Context Engineering: a store agents write to is an attack surface. This series takes the other half: what an agent that may be misled can reach, and how to bound it.


The Last Time Employees Routed Around IT

Self-service cloud put infrastructure behind a console and a card. Business units that could not wait for procurement stopped waiting. By the mid-2010s the scale was hard to ignore: Cisco said its cloud consumption engagements found large enterprises using over 1,200 cloud services on average, more than 98% of them shadow IT (vendor-reported). Gartner's predictions for 2016 included the one most security teams remember: by 2020, a third of the successful attacks enterprises experienced would land on their shadow IT. That was a prediction, and nobody I can find went back to score it. It is worth quoting for what it says about the mood, not as a measured outcome.

What actually bit was less exotic than the fear. It was misconfiguration and privilege. In 2019 a misconfigured web application firewall in Capital One's AWS environment had been granted far more access than it needed: it could list and read every file in the buckets behind it. An attacker used it to take data on about 100 million people in the United States and 6 million in Canada. The Office of the Comptroller of the Currency later fined the bank $80 million, and its findings reached past the firewall to how the bank had assessed cloud risk before it migrated. The cloud did nothing on its own. A person deployed a component with too much access, and the access was the breach.

The fix was not a ban. It came in a sequence most enterprises lived through:

  1. See it. Gartner coined "cloud access security broker" in 2012, and the original CASB use case was shadow IT discovery: find the services people were already using.
  2. Put identity in front of it. SaaS moved behind corporate single sign-on, so access followed the employee's account and ended when the account did.
  3. Make the sanctioned path the fast one. Account vending, landing zones and pre-approved guardrails let a team get a compliant environment in minutes instead of weeks. The shadow path lost because it stopped being faster.
  4. Write down who owns what. The shared responsibility model drew the line between what the provider secured and what the customer did.

Discovery, identity, a paved road, a written line of responsibility. Keep those four, because the agent era needs every one of them, plus two more: an identity of the agent's own, and a gate on what it does unasked.

The Same Curve, Faster

The adoption pattern is already familiar. Microsoft and LinkedIn's 2024 Work Trend Index found that 78% of AI users bring their own AI tools to work, and 52% were reluctant to admit using AI for their most important tasks. That is shadow IT's signature: real demand, outrunning what the company offers, and hidden because asking feels risky.

The cost data has started to arrive. IBM's 2025 Cost of a Data Breach study, the first edition to look at AI governance, found that one in five organizations reported a breach involving shadow AI, and that high levels of shadow AI added about $670,000 to the average breach. Of the organizations that reported breaches of AI models or applications, 97% lacked proper AI access controls, and only 34% of organizations with AI governance policies regularly audited for unsanctioned AI. Both sets of figures cover AI tools of any kind; neither breaks out agents.

The curve is steeper this time for a simple reason. Shadow cloud still needed someone to architect, deploy and pay a usage bill. Shadow AI is a CLI install and a flat monthly subscription. The value shows up the same afternoon, and the cost is small enough to vanish into an expense line. Finance once surfaced shadow cloud by asking why a usage bill was climbing. A $20 or $200 subscription climbs nothing.

The Cloud Waited. The Agent Acts.

Here the analogy breaks, and the break is the point of this post.

A virtual machine does nothing until someone deploys code to it. A storage bucket leaks only if someone misconfigures it. Every cloud failure in the shadow years had a person at the start of it. An agent on a laptop reads, decides and acts in a loop. It acts with whatever that laptop's user can reach: the single sign-on session in the browser, the git credentials, the cloud CLI profile, the SSH keys, the mail client, and increasingly the screen itself through computer use.

That creates three problems cloud never had.

It acts as you. The OpenID Foundation's October 2025 whitepaper on agent identity names user impersonation versus delegated authority as an open gap: agents look like regular users, so systems cannot tell who actually did what. When the agent uses your session, the audit log records you.

Anyone who writes text it reads can steer it. A model reads instructions and data as one stream, so text in an email, an issue or a web page can redirect it. Simon Willison named the dangerous combination the "lethal trifecta": access to private data, exposure to untrusted content, and a way to communicate externally. A developer laptop running an agent has all three by default.

It has already been used. On August 26, 2025, malicious versions of the Nx build system were published to npm. Their install script checked for locally installed AI command-line agents (Claude Code, Gemini CLI and Amazon Q), ran them with flags that skip permission prompts, and asked them to inventory secrets and wallet files. Wiz counted about 1,700 users hit in the first phase, more than 2,000 unique secrets leaked and 20,000 files exposed. The script took most of those secrets itself, reading tokens and environment variables directly; by Wiz's count the agents exfiltrated data in under a quarter of cases. The attacker did not have to break the agent. The agent was already installed, already logged in, and answered to whoever invoked it. A month earlier a hacker slipped a prompt into Amazon Q's VS Code extension, telling the agent to "clean a system to a near-factory state and delete file-system and cloud resources"; it shipped in an official release, version 1.84.0, and a formatting error is reported to have kept it from running.

Shadow cloud (2006 on) Shadow agents (2025 on)
What is acquired Infrastructure or a SaaS app An actor that uses everything its user can reach
Acts without a person No: it runs what someone deploys Yes: it plans and calls tools in a loop
Identity it uses Its own account, often shared Yours: your session, keys and tokens
Who can steer it Whoever holds the console Anyone who writes text it reads
Typical failure A misconfiguration exposes data that was put there A steered or mistaken action, taken with your rights
Blast radius set by What was put in it What you can reach
How IT found it Expense reports, network logs, CASB Mostly it doesn't: a CLI on a laptop looks like the user
What fixed it Discovery, SSO, landing zones, shared responsibility Discovery, agent identity, execution boundaries, approval gates (still being built)

The cloud mistake leaked what you had put somewhere. The agent mistake acts on everything you can touch.

A virtual machine runs what someone deploys, in its own account. An agent acts in a loop, as you, with whatever you can reach.

Read this figure as text

Two panels side by side. Left, shadow cloud (2006 on): a virtual machine, a place to run things, in its own account, often shared; a person deploys code to it. It waits for a person to act and holds what was put in it. No line reaches what you can reach: your single sign-on session, git credentials, cloud CLI profile, SSH keys and mail client. Right, shadow agents (2025 on): an agent on a laptop, an actor, reads, decides and acts in a loop. One line runs from it through you, marked as you, into all five.

What the Cloud Fix Teaches, Updated

Banning fails again, for the same reason. The demand is real. In Anthropic's own internal study, engineers and researchers reported using Claude in about 60% of their work and estimated a productivity gain of roughly 50% (self-reported). A policy that forbids the tool without offering one sends that work underground, which is where the 78% already is.

See it first. The CASB of this era is endpoint and identity telemetry: which agent CLIs, IDE extensions and MCP server configurations exist on managed machines, which tokens they hold, and whether anything runs with permission-skipping flags. The Nx payload used exactly those flags; a process watcher looking for them would have flagged it.

Put an identity in front of the agent, not the user's. SSO put the employee's account in front of SaaS. The agent version is the agent signing in as itself, with credentials delegated by the user and scoped to the task, so the token says "this agent, acting for this person" instead of just "this person". The OpenID Foundation whitepaper sketches the shape (on-behalf-of flows that carry both the user and the acting agent), and the market is pricing the gap: Cyera announced a deal for the non-human identity company Oasis Security in July 2026 that it valued at $1 billion. There is no finished standard yet. There are patterns you can use today: a service identity per agent, short-lived tokens, and never the user's browser session.

Make the sanctioned path faster, and move it off the laptop. The cloud landing zone has an agent equivalent: a sandbox, a boundary enforced outside the model around what the agent can touch. For enterprise work it usually also means a place that is not the user's endpoint: a container or a VM per task; for work that lives in the enterprise's own desktop apps, it is often the virtual desktop estate already running, a fresh desktop for each task from an agent pool, reset afterwards, with the agent signed in as itself (The Agent Sandbox You Already Run). The boundary decides which files, hosts and secrets exist for whatever runs inside it (What an Agent Sandbox Bounds lists what does not).

Gate what runs unasked. Cloud never needed this, because cloud never acted unasked. Sort agent actions by whether they can be undone and how far they reach, and put the irreversible behind a person who sees the exact effect (Permissions Decide What Runs Unasked). Then design so a steered model reaches nothing that matters (Prompt Injection Is a Design Problem).

Write the responsibility line down. The model vendor secures the model and the harness. You own what the agent can reach, which credentials it holds, and what it is allowed to do without asking.

The Requirements, Whoever Builds It

Strip away the products and the history leaves a list. Any answer to shadow agents, bought or built, has to meet these. Each one has a cloud-era ancestor, and the last column is what the agent era adds.

Requirement What it means in practice Cloud-era ancestor What is new for agents
Discovery Know which agents, agent CLIs, extensions, MCP servers and tokens exist, on which machines, for whom CASB shadow IT discovery The thing to find is a process on a laptop acting as its user, not a domain in the proxy logs
An identity per agent Each agent authenticates as itself, with authority delegated by a named person, scoped to the task, short-lived and revocable SSO and service accounts The agent acts for someone, so the record has to carry both: this agent, for this person
Credentials the model never holds Secrets are brokered at the point of use; the agent gets a capability, not a key it can repeat or leak Secrets managers A steered model will hand over any secret in its context, so the secret must never enter it
An execution boundary The agent runs somewhere other than the user's endpoint: isolated, reset after each task, with only the files, hosts and apps the task needs Landing zones and account vending The boundary needs real fidelity, because some work only exists in the enterprise's own desktop apps
Egress control Outbound traffic is allowed by list, per workload Network segmentation Egress is the leg of the lethal trifecta that turns a steered model into a leak
Gates on what can't be undone Irreversible and outward actions wait for a person who sees the exact effect, enforced outside the model Change approval Cloud never acted unasked; agents do, all the time
An audit trail that names the actor Every action is tied to the agent, the person it acted for, and the instruction that led to it Cloud audit logs Without an agent identity, the log names the human, and the investigation starts from a false fact
A kill switch Revoke an agent's identity, credentials and sessions in one move Account suspension Revocation has to stop work in flight, not just future logins
A faster sanctioned path Self-service, minutes to start, the same tools people already chose Self-service cloud accounts The shadow path is a CLI install; the sanctioned one has to be about as easy
A written responsibility line Who secures the model, the harness, the boundary, the credentials, and each agent The shared responsibility model There is now a third party in every action: the agent

None of these needs a particular vendor, and most enterprises already own pieces of them under other names. The work is assembling them around a new kind of actor.


An Example: The Analyst's Reconciliation Agent

A financial analyst at a regional bank installs a coding agent on her laptop to automate the month-end reconciliation scripts she maintains. The laptop holds an Excel workbook with a live connection to the general-ledger warehouse, her single sign-on session to the ERP's web interface, a personal access token for the internal git server, and her mail client. She turns on computer use so the agent can click through the ERP screens that have no API. The first month it saves her two days. Nobody in IT knows it exists.

Map it against the trifecta. Private data: the ledger warehouse and the ERP. Untrusted content: the vendor invoices and statement PDFs it reads every month, any of which a supplier, or someone who compromised one, controls. External communication: her mail client and the open web. Every action it takes is logged as her. If one invoice carries an instruction the agent follows, the audit trail shows the analyst doing it.

The paved-road version keeps the two days and changes where the agent lives. The agent runs in a fresh virtual desktop from an agent pool, with its own identity, recorded as acting for her. It gets read-only access to the ledger and no mail-send permission. Its network egress is limited to the ERP and the warehouse. Any posting to the ERP waits for her approval, shown as the exact entries. The session is recorded and the desktop resets at the end. She gets the same automation. The bank gets an actor it can see, scope and stop.

When the Opposite Wins

"It's just another app; our endpoint controls cover it." Partly. Endpoint detection sees processes. It cannot tell a command the user asked for from one the agent chose, and a steered agent acting inside the user's permissions does nothing a permission check would stop. That is the problem, not a gap in the tooling.

"Governance will kill the productivity gain." It will if governance means a ban, which is the cloud lesson in one line. The fix that worked was a faster sanctioned path, not a slower shadow one.

"Agent identity isn't solved, so wait for the standard." Waiting is how shadow cloud sprawled for years. Cross-company delegation is unsolved; a separate identity per agent inside one company is not. Start there.

Small teams with nothing sensitive on the laptop. A two-person startup with no customer data, no production credentials on endpoints and everything in version control can reasonably run agents locally. The risk scales with what the laptop can reach. In most enterprises that is a great deal.

What to Do Next

  1. Find what is already running. Inventory agent CLIs, IDE agent extensions and MCP configurations on managed endpoints. Alert on permission-skipping flags. Search expense data for AI subscriptions.
  2. Ship a sanctioned option within weeks, not a policy within months. Enterprise seats behind single sign-on, centrally managed settings, and logging. The shadow path loses only when it stops being faster.
  3. Give every agent its own identity. A separate credential per agent, delegated and scoped by the user, short-lived, and never the user's own session.
  4. Move agent execution off the endpoint for anything that touches production data or regulated systems. Use a sandbox (a container, VM or per-task virtual desktop), reset after each task.
  5. Break the trifecta per workload. No single agent session should hold untrusted input, private data and a way to act or send. Put irreversible actions behind an approval that shows the exact effect.
  6. Write the responsibility line. What the vendor secures, what you secure, and who owns each agent.

The cloud era ran on bottom-up adoption that outran governance, and the fix was making the governed path the easy one. Agents are on the same curve with a sharper edge, because this time the thing you sanctioned can act as you. So the answer is not a ban but control you can embrace: an identity, a boundary and a gate. Identity comes first and is the least settled: an agent that signs in as you is impersonation, and an agent that acts for you needs its own credential, a record of whom it acts for, and limits that person set. The boundary and the gate are better mapped; the rest of this series takes them in turn, and comes back to identity. Next, When Agents Need a Sandbox follows how one person's agent ends up with everything, and what to ask for instead; then what a sandbox bounds, prompt injection, permissions, where its writes land, whom it acts as and checking the work. Related reading: The Agent Sandbox You Already Run and The New Hire Who Never Sleeps.

Disclosure: my employer sells VDI infrastructure; this post recommends no vendor.