Securafy AI Lab

AI Agent Offboarding: Close the Ghost Agent Gap

Written by Rodney Hall | Nov 27, 2026, 1:00:00 PM

When an employee leaves, their AI agents do not automatically leave with them. An agent built during a project, connected to a CRM, or scheduled to run reports keeps its credentials and access intact unless someone deliberately finds it, reassigns it, or shuts it down. That gap between a disabled employee account and a still-running agent is where orphaned access quietly accumulates.

What actually happens to an AI agent after the person who built it leaves?

Nothing happens to it automatically. The agent keeps whatever API keys, data connections, and permissions it had on day one, and it keeps running on schedule or on trigger regardless of whether the person who created it still works there. This is the exact failure mode described in Lutril's breakdown of AI agent offboarding, where the employee's user account gets disabled but the agent they configured continues operating under its own separate credentials.

Most IT offboarding checklists were written for a world of laptops, email accounts, and shared drives. They were not written with the assumption that a single employee might have spun up five or six automated agents across different tools, each with its own standing access. 1Kosmos calls this the ghost agent problem, and the name fits: the agent has no human attached to it anymore, but it still has a working identity and a working set of permissions.

Why doesn't disabling the employee's account fix this?

Disabling a person's login does not touch the non-human identities tied to that person, because agents, service accounts, and API keys are usually provisioned separately from the employee's own credentials. Token Security's guide to offboarded employees and non-human identities walks through how these identities are created outside the normal HR-to-IT deprovisioning flow, which means they are invisible to a checklist that only tracks user accounts.

An agent built to pull sales data, send Slack summaries, or trigger invoices does not check whether its creator still has a badge. It checks whether its API key still works. If nobody revokes that key, the agent keeps functioning exactly as it did the day before the employee's last day, often for weeks or months before anyone notices.

Who should own an agent once its creator is gone?

Every agent needs a named human owner at all times, and that ownership needs to transfer before the creator's last day, not after. Traversaal's framework for ownership reassignment argues that the offboarding gap exists specifically because organizations treat agent ownership as informal, tied to whoever happened to build the thing, rather than as a tracked attribute that gets reviewed like any other access right.

Practically, this means building an inventory before the exit interview, not during it. A manager cannot reassign an agent they don't know exists. The inventory should capture:

  • What the agent does and what systems it touches
  • What credentials or API keys it uses to do it
  • Who currently owns it and who should own it next
  • Whether it still needs to exist at all

That last question matters more than it sounds. Some agents built for a one-time project or a short-term initiative have no reason to keep running once the person who needed them is gone, and the safest offboarding step is simply to turn them off.

Why should this be part of the standard offboarding process, not a separate project?

Because offboarding is already the moment when access review happens for everything else, and AI agents are no exception, just an overlooked one. isolved HCM frames this directly as an exit process every organization already needs, pointing out that the same discipline applied to revoking building badges and email access should extend to the agents and automations an employee built or had access to.

The risk profile is easy to state. A forgotten agent with live access behaves like a forgotten user account with standing permissions, except it is less visible. It does not show up in the departing employee's mailbox, it does not trigger a sign-in alert from a new country, and it may run under a service identity that nobody connects to the person who created it.

What does a practical AI offboarding checklist actually include?

At minimum, it should mirror the existing IT offboarding steps but extended to non-human identities. Before an employee's last day, IT and the employee's manager should jointly confirm every agent the employee built or owns, reassign or retire each one, rotate any API keys tied to those agents, and remove the departing employee's individual access to the platforms those agents run on. This cannot be a verbal handoff. It needs the same documented sign-off as returning a laptop.

Teams that build this discipline early tend to do it because they trained their staff to document what they build as they build it, not after someone leaves. That habit is worth developing across the whole organization, not just IT, which is part of what a structured program like the AI University course catalog is built to teach: how to use AI tools with the kind of operational discipline that makes offboarding a five-minute checklist item instead of a forensic search.

How do platforms like Microsoft 365 help you find these agents?

The tooling is improving. Microsoft now creates a dedicated identity for agents built in Copilot Studio. According to Microsoft's Copilot Studio documentation, each new agent automatically receives a Microsoft Entra Agent ID that administrators can view and manage in the Entra admin center. Microsoft's Agent ID release notes also describe registry experiences converging under Microsoft Agent 365, giving admins one place to discover and manage agents.

That visibility is a real step forward, but it only solves discovery inside one ecosystem. Your team may also have automations in Zapier or Make, custom GPTs in ChatGPT, scheduled scripts that call an AI API with a personal key, and agents inside your CRM or help desk platform. Each of those lives in its own admin console, with its own idea of ownership. An offboarding process that only checks Entra will miss most of them.

The fix is a single inventory that spans platforms, even if it starts as a spreadsheet. For each agent or automation, record the platform, the owner, the systems it connects to, the credential it uses, and the date it was last reviewed. Then make that inventory part of the offboarding ticket so HR's exit date triggers a review automatically.

What about personal API keys and shared accounts?

These are the hardest cases. An employee who generated an API key under their own account to power an automation has tied that automation to their identity in a way the platform may not show clearly. When their account is disabled, the automation may break, which is a visible problem, or the key may keep working because it was issued at the organization level, which is an invisible one.

Set a rule now: production automations and agents run under organization-owned service identities with named owners, never under a personal key. Shared logins to AI tools should be eliminated for the same reason. If five people use one account to build agents, nobody can tell who owns what, and nobody can offboard cleanly when one of them leaves. Moving to individual accounts with central administration costs a little more, and it pays for itself the first time someone resigns.

What should happen in the first 30 days after someone leaves?

Treat the month after departure as a verification window. Check that every agent on the departing employee's inventory has either a new owner or has been retired. Confirm rotated keys are actually in use and the old ones no longer authenticate. Review the activity logs of reassigned agents for anything unusual, especially outbound data transfers or messages sent externally. Then close the ticket with a record of who verified each step. That record is what an auditor or insurer will ask for if an orphaned agent ever causes a problem.

Where To Go From Here

If your offboarding checklist still ends at laptops and email, extend it to the agents and automations your team has built. Start with a cross-platform inventory, require a named owner for every agent, and move production automations off personal keys.

For help building agent inventories and offboarding controls into your AI governance, see Securafy's AI services. To find where your governance gaps are, take the free AI readiness assessment. To compare providers on identity and access management support, download the Cybersecurity Buyer's Guide 2026.