Join our Newsletter — 33% off our NHI Course
Home› FAQ› Governance, Ownership & Risk› What is the difference between shadow agents and…
Governance, Ownership & Risk

What is the difference between shadow agents and ghost identities?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated November 5, 2026 Domain: Governance, Ownership & Risk

Shadow agents are created outside approved governance, so the organisation may not know they exist or who owns them. Ghost identities are retired agents that still retain access because decommissioning failed. Both are governance failures, but shadow agents are an onboarding problem while ghost identities are a revocation problem.

How shadow agents and ghost identities differ in practice

The distinction is mainly about where the governance failure occurs. Shadow agents appear because an agent was introduced outside approved controls, while ghost identities persist because an authorised agent was not fully removed. That means one problem starts with unsanctioned creation and the other with incomplete retirement, even though both leave the organisation exposed.

For practitioners, the operational question is whether the issue is discovery and ownership, or revocation and cleanup. Shadow agents usually require inventory correction, sponsorship, and baseline approval checks. Ghost identities usually require access removal, dependency tracing, and confirmation that no live credentials, tokens, or integrations remain active.

Both conditions often look similar at first because neither may be visible in normal reporting. The difference matters because the remediation path is different: a hidden agent may still need to be formally onboarded or shut down, while a ghost identity should be treated as a decommissioning failure until proven otherwise.

Why the governance failure is different

Shadow agents are usually an AI discovery and ownership problem: something exists before governance does. Ghost identities are a lifecycle and offboarding problem: governance existed, but the retirement step failed. That difference changes how teams investigate, because the first question for a shadow agent is “who created this and what can it reach?”, while for a ghost identity it is “what should have been revoked, but was not?”

That lifecycle split is why agent registries, ownership records, and termination workflows matter. A good control environment should make it hard to create an agent without registration and just as hard to leave a retired agent with residual access. When that separation breaks, organisations get either unmanaged growth or lingering access, both of which weaken accountability.

In governance terms, shadow agents are usually a control-gap at entry, while ghost identities are a control-gap at exit. The first indicates the organisation failed to gate a new runtime actor. The second indicates it failed to close down an old one. They are related, but they should not be investigated as the same failure mode.

What the difference means for containment and cleanup

The first step is to determine whether the object is still active, still authorised, or both. A shadow agent may need to be suspended, assigned an owner, and assessed for blast radius before it is either sanctioned or removed. A ghost identity should usually be disabled or deleted after you confirm that no workload, API client, automation chain, or human workflow still depends on it.

For a shadow agent, the priority is to establish provenance, business purpose, and allowed scope. For a ghost identity, the priority is to revoke access, rotate any exposed secrets, and remove stale trust relationships. If you find long-lived credentials or unattended tokens, treat them as a residual access problem rather than a paperwork problem.

These are also different evidence problems. Shadow agents require discovery evidence, such as logs, OAuth grants, cloud app registrations, endpoint traces, or repository references. Ghost identities require retirement evidence, such as deprovisioning records, access review results, and proof that dependent systems no longer authenticate with the retired principal.

Risk and Threat Considerations

Both issues create governance blind spots, but ghost identities are often more dangerous for persistence because they can preserve access after the supposed owner has moved on. Shadow agents are attractive to attackers or careless users because they can be created outside normal review and may inherit powerful permissions by default.

Failure mechanism: Shadow agents bypass intake controls, while ghost identities bypass offboarding controls. In both cases, the organisation loses reliable ownership, which weakens review, monitoring, and timely revocation.

Impact: Unowned or retired-but-active agents can keep access to data, APIs, and automation paths longer than intended, increasing the chance of misuse, lateral movement, and hard-to-spot unauthorised activity.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 and OWASP Agentic AI Top 10 address the attack and risk surface, while NIST SP 800-53 Rev 5 sets the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-01 — Improper OffboardingGhost identities are a failed offboarding pattern for non-human principals.
NHI-05 — Overprivileged NHIShadow or ghost agents often retain excessive permissions that widen exposure.
NHI-09 — NHI ReuseRetired or unsanctioned agents may reuse credentials or trust paths across systems.
Recommendation — Enforce decommissioning checks to revoke access and retire stale identities promptly. Review and trim agent permissions to the minimum scope needed for each task. Prevent credential and identity reuse across agents, environments, and integrations.
OWASP Agentic AI Top 10ASI03 — Identity & Privilege AbuseThe question turns on unmanaged agent identities and residual privilege exposure.
Recommendation — Bind every agent action to an owned identity and review its delegated authority.
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementBoth shadow and ghost identities hinge on credential lifecycle and revocation.
Recommendation — Track, rotate, and revoke authenticators when agent ownership or status changes.

Practitioner Guidance

What to verify: For a suspected shadow agent, verify origin, sponsor, permissions, and whether it was ever formally approved. For a suspected ghost identity, verify decommission status, active credentials, linked workloads, and whether any integrations still call it.

Decision rule: If the principal still has valid access, treat the issue as an access-control problem first, not an admin tidy-up task. If the principal is already retired, focus on revocation completeness, secret rotation, and dependency removal before closing the case.

What practitioners underestimate: The hardest part is often not discovery or deletion, it is finding the hidden dependencies that keep a supposedly dead identity alive. The longer those dependencies persist, the more likely the organisation will misread a live trust path as harmless legacy.

Practitioner takeaway: Shadow agents demand stronger front-door governance, while ghost identities demand stronger exit control; mature programmes need both because unmanaged creation and incomplete revocation create different but equally real exposure.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 5, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org