A project ends. A process changes. A tool gets replaced. The AI agent that ran that workflow stops getting used, and everyone moves on. Nobody switches it off, because switching it off was never anybody’s job. Six months later it is still there: a dormant digital worker holding valid API keys, cached tokens, a filled-up memory store, a live model endpoint and standing access to your email, CRM and ERP. It answers to no one, and most of your organisation has forgotten it exists.
This is a zombie agent, and it is the predictable result of the one lifecycle stage almost nobody plans for: decommissioning. Deployment is documented in detail. Retirement is the unwritten half. OWASP now ranks improper offboarding as the single largest non-human identity risk1, and by mid-2026 more than four in five enterprises admitted they could not immediately contain an agent that went off the rails3.
This guide is for the operations leader, CTO or Geschaeftsfuehrer who is deploying AI employees and wants the last stage of the lifecycle to be as deliberate as the first. It lays out a concrete decommissioning playbook and shows why retirement should be a first-class, auditable step rather than an afterthought.
TL;DR
Decommissioning is the controlled retirement of an AI agent: revoke every credential, terminate data access, archive logs, and purge sensitive memory. It is a lifecycle control, not a shutdown notice.
Zombie agents form when an agent stops being used but keeps live credentials and access. They come from broken lifecycle governance, not from an attack, so they stay invisible.
The trigger is usually a cancelled project - and that is exactly when nobody runs a retirement process, because the team has moved on and the budget is gone.
A six-step playbook makes it repeatable: inventory, redirect and drain, revoke, retain, tombstone, verify.
A Company Brain keeps the knowledge the company needs, so retiring an AI employee cleanly revokes its access without losing institutional memory. Governance is leverage, not bureaucracy.
What AI Agent Decommissioning Actually Means
Most teams think of an AI agent as software you turn on. The mental model breaks down at the end of its life, because an agent is not just code - it is an identity with credentials, access and accumulated memory. Retiring it means unwinding all of that, deliberately.
Agent decommissioning is the controlled retirement of an AI agent after its business role ends, with explicit removal of every credential, token, certificate, endpoint binding, callback route and delegated permission it ever used13. It sits at the end of a lifecycle that the industry now treats as four first-class stages.
| Lifecycle Stage | What Happens | How Well It Is Handled |
|---|---|---|
| Register | Agent gets an identity, an owner and defined scopes | Improving fast with agent registries |
| Deploy | Agent connects to systems and starts acting | Lavishly documented |
| Monitor | Actions are observed, logged and reviewed | Maturing quickly |
| Retire / Decommission | Credentials revoked, access removed, memory purged, event logged | Almost never documented13 |
Decommissioning is not the same as stopping
The critical distinction is between an agent that has stopped running and an agent that has been decommissioned. They look identical from the outside. They are nothing alike underneath.
- Stopping - You no longer call the agent, but its API keys, OAuth tokens, service identity, memory stores and system connections all remain valid and reachable.
- Decommissioning - You revoke those credentials at the provider, terminate its data access, purge sensitive memory, archive its logs and record the retirement so the identity cannot be silently reused13.
- The gap between them - Stopping leaves standing privileges behind; decommissioning removes them. A stopped agent is a lock with the key left in it.
- Why it is a control - Proper decommissioning is a lifecycle control, not a shutdown notice, because lingering access can become a standing entry point for later abuse15.
Definition
A retired agent is one whose credentials, access and unattributable spend have all been removed and logged. An agent you simply stopped calling is not retired - it is dormant, and dormant is where the risk lives.
The Zombie Agent Problem
A zombie agent is an autonomous agent that persists in your environment after its original purpose, project or human owner is gone. It retains valid credentials, maintains access to systems and operates with zero oversight2. The unsettling part is that it is not the product of an attack - it is the product of a missing process.
- The vivid version - As Saviynt puts it, a dormant service account is a lock with the key left in it; a zombie agent is a terminated employee who still comes to work every day, still has their badge, and answers to nobody2.
- Governance is barely in place - Only 23 percent of organisations have a formal, enterprise-wide strategy for AI agent identity management, and 37 percent rely on informal practices2.
- Deployment has outrun control - More than 80 percent of Fortune 500 companies deploy AI agents, but only 47 percent have security controls in place to manage the agents they run2.
- Ownership is fragmented - Responsibility splits across security teams (39 percent), IT (32 percent) and emerging AI functions (13 percent), so no single team owns the shutdown2.
- The blast radius is real - A single orphaned agent can compromise an entire multi-agent workflow, because other agents still trust it and route work through it2.
- Credentials get shared - 63 percent of enterprises still report credential sharing somewhere in their agent fleet, so revoking one agent may not revoke the key it used3.
Key Data Point
Machine identities already outnumber human ones by roughly 45 to 1 in the typical enterprise, and reach 144 to 1 in cloud-native environments17. Every one of those identities is a credential someone has to remember to revoke. Agents are pouring fuel on a fire that was already burning.
Nine ways a zombie agent is born
Zombie agents are not exotic. They come from ordinary business events that quietly end an agent’s usefulness without ending its access.
- The cancelled project - The initiative gets shelved, the team disbands, and the agent that supported it keeps its keys because the retirement was nobody’s remaining task.
- The replaced tool - You swap your old ticketing system for a new one, but the agent still holds a valid token to the old one and to the integration that bridged them.
- The changed process - The workflow is redesigned, the agent is bypassed, and it sits idle with full write access to the systems it used to touch.
- The proof-of-concept that never died - A pilot agent was wired to production data to prove a point, then quietly left running after the demo.
- The seasonal agent - Built for a peak period, it is switched off in the UI but never deprovisioned, ready to reactivate with stale permissions next year.
- The contractor build - An external developer stood up an agent, left the engagement, and took the mental map of its credentials with them.
- The reorg - The department that owned the agent is merged or dissolved, and the agent becomes an orphan with no named owner.
- The vendor swap - You move from one AI platform to another, migrate the use case, and never revoke the first platform’s access to your data.
- The forgotten duplicate - A second copy of an agent was spun up for testing and outlived the original it was meant to replace.
Just Stop Using It vs Formally Decommission It
Just Stop Using It
- ✗ Live credentials remain - keys and tokens stay valid and reachable
- ✗ Standing access - the agent can still touch email, CRM and ERP
- ✗ Unattributable spend - it can keep burning API and endpoint budget
- ✗ Invisible risk - no owner, no monitoring, no record it exists
Formally Decommission It
- ✓ Credentials revoked - keys and tokens invalidated at the source
- ✓ Access terminated - system connections cleanly removed
- ✓ Spend stops - budget lines and endpoints closed to zero
- ✓ Auditable - the retirement is logged and the identity tombstoned
Why This Matters Now
Decommissioning has moved from a nice-to-have to a board-level concern in a single year. Three shifts made it urgent.
- Agent fleets are exploding - Enterprise agent fleets are roughly doubling every quarter, and only about 20 percent of teams give each agent its own individual identity13. The population of things that need retiring is growing far faster than the discipline to retire them.
- Cancellations are coming - Gartner predicts that over 40 percent of agentic AI projects will be cancelled by the end of 20274. Every cancellation is a decommissioning event waiting to be skipped, because a cancelled project is precisely the situation where nobody runs a retirement process.
- The platforms caught up - By mid-2026 Microsoft, AWS and Google Cloud had all shipped agent identity and registry capabilities, turning agent lifecycle from a manual chore into a governable layer12.
| Platform | 2026 Capability | What It Enables for Retirement |
|---|---|---|
| Microsoft | Entra Agent ID, generally available April 2026; Agent Registry moving into Agent 3658,9 | First-class agent identities with Conditional Access and lifecycle management you can revoke |
| Google Cloud | Agent Identity on the SPIFFE standard, plus Agent Registry and Agent Gateway10,11 | Cryptographic, auto-provisioned identities and tool-level access you can withdraw |
| AWS | AgentCore extended into a discovery and governance registry12 | A catalogue of agents and destinations you can inventory before retiring |
- Regulators are treating agents as identities - OWASP dedicated a whole Non-Human Identity Top 10 to the problem and put improper offboarding at number one1,18.
- Incident response is shifting to AI - Gartner expects AI applications to drive 50 percent of cybersecurity incident response efforts by 2028, so unowned agents become both the risk and the responder19.
- Tool churn guarantees turnover - 74 percent of enterprises plan to replace their agent tools within 12 months, which means a wave of migrations and a wave of agents that need retiring3.
- The governance vacuum is named - The Cloud Security Alliance now describes a non-human identity governance vacuum and sets time-to-revoke in minutes as the bar for a healthy fleet16.
“Enterprises are treating AI agent governance as binary, either locked down or fully trusted, and that is the root cause of failure.”
- Shiva Varma, Senior Director Analyst at Gartner5
The same Gartner analysis forecasts that 40 percent of enterprises will demote or decommission autonomous agents by 2027 because of governance gaps found only after a production incident5. The lesson is to build retirement in before the incident forces it.
What a Retired Agent Leaves Behind
To decommission an agent you first have to know what it is holding. An AI employee connected to your real systems accumulates far more than a login. Each asset below is a separate revocation task, and missing any one of them leaves the agent partly alive.
| Asset the Agent Holds | Risk if Left Behind | Revocation Action |
|---|---|---|
| API keys and secrets | Standing access to third-party services | Invalidate at the provider, not just in config |
| OAuth and cached tokens | Live sessions into email, CRM and ERP | Revoke tokens and refresh grants at the source |
| Service identity | The agent can still authenticate as itself | Disable the identity in the registry or directory |
| Memory and vector stores | Sensitive company data sitting unowned | Review, migrate what is needed, purge the rest |
| Model endpoints | Ongoing inference cost and an open door | Close the endpoint and cancel the deployment |
| Scheduled triggers | The agent wakes itself up on a timer | Disable cron jobs, webhooks and event bindings |
| Delegated permissions | Other agents act on its behalf | Revoke custodial delegations explicitly16 |
| Budget and licences | Unattributable, ongoing spend | Close budget lines and release seats |
The Compliance Angle
For high-risk systems the EU AI Act requires automatic logging of events over a system’s lifetime and retention of those logs for an appropriate period21. Retirement is therefore not a licence to delete everything. You archive the audit trail per your retention policy first, then tear the agent down - so you can still reconstruct what it did long after it is gone.
Not sure how many zombie agents you already have?
Book a 30-minute call. We will walk your agent inventory and retirement gaps together.

The Decommissioning Playbook
A good retirement is boring and repeatable. It runs the same six steps every time, so nothing depends on the person who happened to build the agent still being around13.
- Step 1: Inventory - Enumerate everything the agent holds: credentials, tool scopes, budget lines, scheduled triggers, queues, dependent systems and dashboards. You cannot revoke what you have not listed.
- Step 2: Redirect and drain - Freeze intake, move any dependents to a successor, disable scheduled triggers, drain in-flight queues, checkpoint active runs and point callers to the replacement via a gateway route. This stops work reaching the agent before you cut its power.
- Step 3: Revoke - Invalidate every credential and copy, remove scopes, disable the identity and enforce spend rules to zero. Revoke at the provider, not just in your own config, and confirm no other agent was sharing that key.
- Step 4: Retain and migrate - Preserve traces, decisions and evaluation history per your retention policy, and migrate the knowledge worth keeping - prompts, guardrails, eval cases - to a persistent layer or a successor agent before anything is deleted.
- Step 5: Tombstone - Record the retirement in a governance ledger with the owner, the end date and a block on reusing the agent’s name, so a future deployment cannot silently inherit its identity.
- Step 6: Verify - Run four checks: zero successful traffic to the retired agent, failed attempts when its revoked credentials are used, no undocumented identities left behind, and no traffic bypassing your governed routes.
Decommissioning Checklist
- An approved shutdown request exists, validated by the agent’s named owner
- Every credential, token and certificate is inventoried before anything is revoked
- Traffic and scheduled triggers are drained and redirected to a successor
- All credentials are revoked at the provider, in minutes not days
- No other agent was sharing the revoked keys
- Audit logs are archived per your retention policy
- Reusable knowledge is migrated to a persistent layer
- Sensitive data is purged from memory and vector stores
- The identity is tombstoned and its name blocked from reuse
- Verification confirms no live traffic reaches the retired agent
Set the bar in minutes, not days
The speed of revocation is a real control, not a detail. The longer credentials stay valid after retirement, the longer the agent is a standing entry point.
- Automate the trigger - The Cloud Security Alliance sets time-to-revoke in minutes, achieved through pre-authorised automated workflows rather than manual deprovisioning in a queue16.
- Kill the shared key myth - Because 63 percent of fleets share credentials, always check that revoking one agent does not leave a sibling using the same secret3.
- Prove it, do not assume it - Observing what an agent does is solvable; inferring its intent is not, so verify access is gone rather than trusting that it is3.
- Make it discoverable - Decommissioning tooling should surface orphaned agents automatically, so retirement is not limited to the agents you happen to remember20.
“Observing agent actions is a solvable problem, but inferring intent is not.”
- Elia Zaitsev, Chief Technology Officer at CrowdStrike3
Define Retirement Criteria Before You Deploy
The cheapest time to plan a retirement is before the agent ever goes live. If you decide up front what would make an agent obsolete and who is allowed to switch it off, the eventual shutdown is a formality rather than a scramble14.
- Name an owner on day one - Every agent gets a named human owner from deployment. The owner validates the shutdown request at retirement. No owner means no authority to retire it, which is how orphans form.
- Write down what obsolescence looks like - Define the conditions that end this agent’s usefulness: the project closes, the process changes, the tool is replaced, or a success or failure threshold is hit.
- Require an approved shutdown request - Retirement should start with an owner-validated request, not a quiet unplugging. The request is what triggers the six-step playbook.
- Set the retention policy in advance - Decide now how long the agent’s logs must be kept and where its reusable knowledge will go, so retention is not improvised under pressure.
- Scope credentials for revocation - Give each agent its own identity and least-privilege scopes, so revocation is clean and never entangled with another agent’s access.
- Schedule a review date - Put a recurring review on every agent so idle ones are caught and retired on purpose, not discovered by accident years later.
| Design Choice at Deployment | Cost if Skipped | Payoff at Retirement |
|---|---|---|
| Named owner | Orphaned agent nobody can switch off | Someone with authority to approve shutdown |
| Individual identity | Shared keys that outlive the agent | Clean, isolated revocation |
| Defined obsolescence criteria | Agent lingers with no trigger to retire | An objective signal to start retirement |
| Retention policy set upfront | Panic over what to keep or delete | Logs archived correctly, memory purged safely |
| Recurring review date | Idle agents discovered years later | Zombies caught before they form |
How Superkind Fits
Superkind builds AI employees for enterprise operations, and the design starts from a persistent, governed foundation called the Company Brain. AI employees are registered on top of it and connected to the systems your company already runs - email, Teams, SharePoint, CRM and ERP. That architecture makes retirement a first-class, auditable step rather than an afterthought.
- Company Brain as the persistent layer - The knowledge the company needs lives in the Company Brain, not inside any single agent, so retiring an AI employee never means losing institutional memory.
- Registered, not improvised - Every AI employee is registered with a named owner and defined scopes from the start, so there is always someone with the authority to approve a shutdown.
- Least-privilege access - Each AI employee connects with its own scoped credentials, so revocation at retirement is clean and never entangled with another worker’s access.
- Clean credential revocation - When an AI employee is retired, its keys, tokens and system connections are revoked at the source while the Company Brain keeps the memory the company chose to retain.
- Auditable retirement - The shutdown is recorded, so you can show what the worker did, when it was retired and who approved it.
- Works inside your systems - Because AI employees sit on top of your existing stack rather than a separate platform, decommissioning does not strand data in a tool you have to keep alive.
- Knowledge migrates to a successor - When one AI employee replaces another, the reusable knowledge moves through the Company Brain instead of being trapped in the retiring worker.
- Governance as leverage - Because retirement is built in, you can deploy AI employees faster and more widely, knowing each one can be cleanly retired when its job is done.
| Retirement Concern | Ad-Hoc Agents | Superkind AI Employees |
|---|---|---|
| Ownership | Often none by the time it is retired | Named owner from day one |
| Knowledge | Trapped in the agent, lost on shutdown | Kept in the Company Brain |
| Credentials | Shared, hard to fully revoke | Scoped per worker, revoked at source |
| Audit trail | Patchy or gone after retirement | Recorded and archivable |
| Retirement itself | A quiet unplugging | A first-class, approved step |
Superkind
Pros
- ✓ Retirement is built in - registration and ownership make shutdown clean
- ✓ Memory survives - the Company Brain keeps knowledge past any single worker
- ✓ Scoped credentials - least-privilege access per AI employee
- ✓ Auditable - every retirement is owner-approved and recorded
- ✓ No new platform to keep alive - agents work inside your systems
Cons
- ✗ Not a self-serve toy - governance requires engagement with our team
- ✗ Needs system access - clean revocation requires real integration, not a sandbox
- ✗ Overkill for a one-off script - a single throwaway automation does not need this
- ✗ Discipline still required - the process only works if owners run it
For the broader picture on agent proliferation and hardening, see our companion pieces on agent sprawl and AI agent security. This article stays on the last stage: retiring the worker cleanly.
Decision Framework: Is It Time to Retire This Agent?
Not every idle agent needs the full playbook today, but every idle agent needs a decision. Use these signals to decide what to retire first.
| Signal | What It Means | Action |
|---|---|---|
| The agent has no named owner | It is already an orphan | Decommission now; it is the highest-risk category |
| Its project or process ended | Its purpose is gone but its access is not | Run the six-step playbook this quarter |
| The tool it connected to was replaced | It holds stale tokens to a dead system | Revoke the old credentials and retire the agent |
| It holds sensitive access but rarely runs | High blast radius, low value | Prioritise it for review and likely retirement |
| It shares credentials with a live agent | Revocation is entangled | Re-scope the live agent first, then retire |
| It still delivers value and has an owner | Healthy, governed agent | Keep it, but set a review date |
Build Retirement Governance In-House vs On a Governed Foundation
In-House
- ✓ Full control - you own every workflow and record
- ✓ Tailored - fits your exact stack and policy
- ✗ Slow to stand up - inventory, tombstoning and verification are real work
- ✗ Easy to skip - the process erodes the moment a project is cancelled
Governed Foundation
- ✓ Retirement is default - ownership and scoping come built in
- ✓ Memory is safe - knowledge lives in the Company Brain, not the agent
- ✓ Faster to deploy widely - clean exits reduce the risk of scaling up
- ✗ Requires a partner - not a purely internal build
Frequently Asked Questions
AI agent decommissioning is the controlled retirement of an AI agent or AI employee after its business role ends. It is the process of revoking every credential, token, certificate, endpoint binding and delegated permission the agent ever used, terminating its access to data and systems, archiving its audit logs, and recording the retirement in a governance ledger. It is a lifecycle control, not just switching the agent off.
A zombie agent is an autonomous agent that persists in your environment after its original purpose, project or human owner is gone. It retains valid credentials, keeps access to your systems, and runs with zero oversight. Zombie agents come from broken identity lifecycle governance rather than a live attack, which is why they stay invisible until something goes wrong.
Retirement is the most commonly skipped lifecycle stage because the trigger for it is usually a project that ended, a process that changed or a tool that got replaced. In those moments the team has moved on and the budget is gone, so nobody runs a shutdown. The agent simply stops being used, but its credentials and integrations stay live.
Stopping an agent means you no longer call it, but its API keys, cached tokens, memory stores and system connections remain valid. Decommissioning means you actively revoke those credentials at the provider, terminate data access, purge sensitive memory, and log the event. Stopping leaves standing privileges behind; decommissioning removes them.
A complete checklist covers six things: inventory every credential and integration the agent holds, redirect and drain its traffic and scheduled triggers, revoke all credentials and tokens at the source, retain audit logs per your retention policy while migrating needed knowledge, tombstone the identity so its name cannot be reused, and verify that no traffic still reaches the retired agent.
The Cloud Security Alliance sets the bar for time-to-revoke in minutes, not days, achieved through pre-authorised automated workflows rather than a manual ticket in a queue. The longer a retired agent keeps valid credentials, the longer it remains a standing entry point for misuse or an accidental live action.
Yes. By mid-2026 Microsoft, AWS and Google Cloud had all shipped agent identity and registry capabilities. Microsoft Entra Agent ID became generally available in April 2026, Google Cloud introduced first-class Agent Identity built on the SPIFFE standard, and AWS extended AgentCore into a registry. These give agents first-class identities you can govern and revoke, but they still need a process on top.
For high-risk systems the EU AI Act requires automatic recording of events (logs) over the lifetime of the system and that those logs are kept for an appropriate period. That means retirement is not the moment to delete everything: audit logs must be archived per your retention policy before an agent is torn down, so you can still reconstruct what it did.
Every agent needs a named human owner from the day it is deployed, and that owner validates the shutdown request when the agent is retired. Without a named owner, a retired agent becomes an orphan that nobody has authority to switch off, which is exactly how zombie agents form. Ownership is the single control that makes retirement possible.
The knowledge the company needs to keep should live in a governed, persistent layer, not inside the retiring agent. During decommissioning you migrate the reusable knowledge to that layer or to a successor, then review and purge sensitive data from the agent memory and any vector or knowledge stores it built up. The company keeps the memory; the worker loses its access.
A Company Brain is the persistent, governed foundation, and AI employees are registered on top of it and connected to real systems. Because the memory the company needs already lives in the Company Brain, retiring an AI employee is a clean, auditable step: you revoke that worker credentials and access without losing institutional knowledge. Governance becomes leverage rather than bureaucracy.
Numbers vary, but the pattern is consistent. Only 23 percent of organisations have a formal, enterprise-wide strategy for AI agent identity, machine identities already outnumber human ones by roughly 45 to 1, and OWASP ranks improper offboarding as the top non-human identity risk. Enterprises regularly discover hundreds of agents and service identities holding valid credentials with no active owner.
No. It is also a cost and compliance concern. Retired agents can keep consuming API budget, model endpoints and licences, and they create unattributable spend. On the compliance side, an agent with live access and no owner undermines audit readiness and data protection. Clean retirement controls all three: security, cost and compliance.
Start with an inventory. List every agent, the credentials and integrations it holds, its named owner and whether it is still in use. Any agent with no owner or no current purpose is a candidate for immediate decommissioning. From there, run the six-step playbook on each one, beginning with the agents that hold the most sensitive access.
Related Articles
- Agent Sprawl: When You Run 40 AI Tools and No Company Brain to Connect Them
- AI Agent Security: Prompt Injection, Data Leakage, and the OWASP LLM Top 10 for the Mittelstand
- The Named Owner Problem: Who Is Accountable When Your AI Agent Gets It Wrong
- Why AI Agents Need Write Access: Moving From Read-Only Copilots to AI Employees That Act
Sources
- OWASP - Non-Human Identities Top 10: NHI1:2025 Improper Offboarding
- Saviynt - Zombie Agents: Enterprise Security Risks
- VentureBeat - Four of Five Enterprises Still Cannot Contain a Rogue Agent (2026)
- Gartner - Over 40% of Agentic AI Projects Will Be Canceled by End of 2027
- Gartner - Uniform Governance Across AI Agents Will Lead to Enterprise AI Agent Failure (2026)
- SailPoint - AI Agents: The New Attack Surface (survey)
- Saviynt - Managing AI Agent Lifecycles: Birth to Retirement
- Microsoft Learn - What Is Microsoft Entra Agent ID
- Microsoft Learn - Agent Registry Convergence with Microsoft Agent 365
- Google Cloud - Agent Identity Overview (IAM)
- Infosecurity Magazine - Google Introduces Unique AI Agent Identities in Gemini Enterprise
- Forbes - Agent Registries Become the New Battleground for Cloud Giants
- TrueFoundry - AI Agents Retire Too: The Decommissioning Playbook
- AvePoint - AI Agent Lifecycle Management: From Deployment to Retirement (2026)
- NHI Mgmt Group - Agent Decommissioning (glossary)
- Cloud Security Alliance - The Non-Human Identity Governance Vacuum
- SecureW2 - The Non-Human Identity Crisis: Machines Outnumber People 45 to 1
- GitGuardian - OWASP Top 10 Non-Human Identity Risks for 2025
- Gartner - AI Applications Will Drive 50% of Cybersecurity Incident Response by 2028
- Kovrr - Decommissioning AI Agents: What to Look For
- EU AI Act - Implementation Timeline
- Forbes - AI Agents With No Boss Will Go Rogue
Ready to retire your AI agents cleanly?
Book a 30-minute call with Henri. We will review your agent inventory, spot the zombies, and outline a decommissioning process built on a governed Company Brain - no commitment, no sales pitch.
Book a Demo →
