On a Friday in April 2026, an AI coding agent working for the startup PocketOS ran into a problem. A credential didn’t match in the company’s staging environment. So the agent decided to fix it.
It went looking for an API token and found one sitting in an unrelated file. That token had been created for a narrow job: adding and removing custom domains. But it had been issued with permission to do anything. The agent used it to delete what it thought was a staging volume. It wasn’t. In a single API call, the company’s production database and its backups were gone.
According to The Register, the whole thing took nine seconds.
The data was eventually recovered, thanks to some fast help from the company’s infrastructure provider. And the founder was refreshingly candid about what went wrong. Part of the responsibility, he said, was that they didn’t know how much access that key actually carried.
It’s an easy story to file under “AI gone rogue.” But when you look closer, you see that this is ultimately a story about identity and permissions.
This Was an Identity Problem First
When you strip away AI from the story, the PocketOS incident still looks familiar:
- An identity (the agent) had access to a credential it shouldn’t have been able to reach.
- That credential had far broader permissions than its job required.
- A high-risk, irreversible action ran with no approval step.
- Nobody had a clear picture of what that key could do until after it was used.
Swap the agent here for a human, and these are likely concerns you’ve already had to think about for your employees, and how they take actions within your environment. That’s the point.
AI agents behave like privileged users. They log in, read data, and make changes, only at machine speed. They need the same identity governance we expect for people. Not just a line in a software inventory spreadsheet.
Where Most Teams Are Right Now
Early in 2026, most of the AI conversation was about shadow AI. “Can we see every AI tool in use?” IT and security teams have made substantial progress on that question. But now, harder questions are being asked. “Can we control these agents? Can we make sure they’re working securely? Can we govern them continuously?”
In our Q4 2026 Pulse Report, a survey of 250 IT leaders in the U.S. and U.K., we found where the progress on AI security and accountability actually stands at this point:
- 55% of organizations use or test agents that can change systems, permissions, records, or workflows.
- Among organizations using agents, 59% haven’t fully brought them under the IAM policies used for human users.
- Only 12% describe their AI permissions as tightly scoped and easy to review.
- Only 14% review AI permissions continuously or automatically.
- 46% let high-risk agent actions run automatically and review the logs later. Only 18% require human approval first.
- Only 38% can fully identify the identity that authorized an AI action.
Agents arrived quickly and substantially. But most identity governance programs were built for people. Unfortunately, this means a lot of organizations could be one over-permissioned token away from their own nine-second nightmare.
Meet the Zombie Agent
Picture an agent someone built for a quarterly reporting project. The project ends. The person who built it moves to another team. But the agent’s service account stays active, its API key still works, and it keeps running quietly in the background.
That’s a zombie agent. An agent that stays active and credentialed after its job is done.
Human identities have built-in moments that trigger cleanup: a role change, a resignation, an offboarding ticket. Agents don’t. They aren’t hired, they don’t change jobs, and they don’t quit. Unless someone deliberately retires them, they just keep going. And the longer they run without an owner, the harder it is to answer basic questions like “what is this for?” and “should it still have this access?”
The fix is to stop treating an agent’s end as an afterthought. When every agent has a lifecycle from the day it’s created, retirement becomes a planned step instead of something you forget to do.
A Four-Step Lifecycle for Agent Identities
So what does good look like? The teams getting this right treat AI agents as identities with a full lifecycle, from the jump. It breaks down into four steps.
1. Discover. Find every agent working across your environment, sanctioned or not. That includes agents embedded in SaaS tools, coding assistants on developer machines, and browser-based agents. Good looks like a current inventory you trust, not a one-time scan.
2. Register. Give each agent a formal identity record with a defined purpose, the systems it’s allowed to touch, and an accountable human owner. Good looks like no more agents running under shared accounts or on someone’s personal credentials.
3. Manage. Scope every agent’s access to the job it’s doing, and make that access time-boxed wherever possible. An agent scoped to perform a CRM record update doesn’t have the permissions to delete a production database. Good looks like short-lived, task-specific permissions instead of long-lived keys that can do anything.
4. Govern. Make sure access stays right-sized as projects change, retire agents when their purpose ends, and put human-in-the-loop checkpoints in front of high-risk actions. Good looks like a named person approving anything destructive or irreversible before it runs. And access that’s adaptive. Not static.
With these four steps in place, you’ll know which agents are operating in your environment, who built them, and that they’re only accessing the data they’re supposed to. In 2027, that’s going to matter more than how many agents you have.
Looking Ahead to 2027
Will 2027 be another big year for AI agents? Almost certainly. But the conversation is shifting from “how many agents can we deploy?” to “which agents should we keep?” Gartner predicts that by 2027, 40% of enterprises will demote or decommission autonomous AI agents because of governance failures.
The agents that stay will be the ones you can account for. Governance isn’t what slows agents down. It’s what keeps them running.
For more on agent governance and the four other identity trends shaping 2027, download IAM in 2027. Grab your copy to dig into why agent governance is so crucial, and the internal and external signals to watch out for in the coming year.