Revocation should be tied to service ownership, application boundaries, and lifecycle events, not left to ad hoc operational cleanup. When a workload is retired, the identity, its children, and its downstream tokens should be invalidated together. That is the only practical way to stop credential persistence from outliving the service.
How revocation should be governed across the machine identity lifecycle
Machine identity revocation works best when it is governed as a lifecycle control, not a one-off cleanup task. Teams should define the business owner, technical owner, and trigger events that require action, then revoke the identity in the same change window as the service retirement or replacement. That keeps authority aligned to the service boundary instead of to an individual operator.
The practical rule is that revocation should follow ownership and dependency mapping. If a workload can still reach downstream systems, its credentials, tokens, certificates, and delegated access paths need to be removed together so the identity cannot keep authenticating after the service is gone. This is where a clear offboarding process prevents orphaned access and ambiguity over who is allowed to disable it.
Good governance also means defining what counts as a revocation event. Retirement, migration, environment decommissioning, supplier exit, and major architecture change should all trigger the same review path. When teams leave revocation to manual tickets after the fact, machine identities tend to survive the application that created them, which is exactly how stale access persists.
What should happen when a workload is retired
Offboarding should treat the workload, its identity, and its children as one unit of removal. If a service is being retired, teams should invalidate any linked tokens, certificates, API keys, trust relationships, and automation credentials at the same time, then confirm that no remaining job, integration, or scheduled task can still use them. The goal is to remove the whole access chain, not just the visible parent identity.
That approach matters because machine identities are often embedded in other systems. A service may have issued child tokens, cached secrets, or federation trust that outlives the original host. If those downstream artefacts are not revoked, the retirement is incomplete even if the original account is disabled. Ultimate Guide to NHIs is useful here because it frames revocation as part of the broader NHI lifecycle, including governance, visibility, and offboarding.
Teams should also distinguish between temporary interruption and permanent decommissioning. A paused service may only need constrained suspension, while a retired service should have credentials and trust material destroyed or invalidated. That distinction avoids both premature breakage and the far more serious problem of a dead service still holding live access.
Why offboarding fails, and how to avoid credential persistence
The main failure mode is incomplete dependency removal. A machine identity can remain usable if another service still trusts it, if a token exchange path remains open, or if a child credential was never rotated after the parent was retired. In practice, the risk is not just an unused account, it is an access path that quietly keeps working after the team believes the system is gone.
Offboarding also fails when ownership is unclear. If no team owns the credential lifecycle, nobody feels responsible for revocation, and stale access becomes an operational habit. That is why machine identity offboarding should be tied to the same ownership model used for the workload itself, rather than to generic infrastructure cleanup. NHI Ownership and Accountability Guide supports that governance pattern by making ownership the control point for orphaned identities and lifecycle action.
For teams managing service accounts or workload credentials at scale, the other common mistake is assuming a single deletion covers every dependent secret. It usually does not. Service Account Security Guide is relevant because it treats discovery, least privilege, rotation, and governance as linked controls, which is exactly how offboarding needs to be handled in practice.
Risk and Threat Considerations
Stale machine identities create a durable attack path because they preserve trust after the workload no longer needs it. An attacker who finds an overlooked token, certificate, or service credential can often authenticate without needing to compromise the original application again. The risk rises when revocation is delayed, partial, or not tested against downstream dependencies.
Failure mechanism: The service is retired, but its credentials or delegated trust remain valid in one or more downstream systems, so the identity can still authenticate or obtain new tokens after offboarding.
Impact: Persistent access can expose data, enable lateral movement, and make incident response harder because the organisation believes the asset is gone while the trust path still exists.
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 addresses the attack surface, NIST SP 800-53 Rev 5 and CIS Controls v8 set the technical controls, and ISO/IEC 27001:2022 defines the regulatory obligations.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-01 — Improper Offboarding | Revocation and lifecycle offboarding are the core issue for machine identities. |
| NHI-07 — Long-Lived Secrets | Stale secrets and tokens are the main persistence risk after offboarding. | |
| Recommendation — Tie retirement events to identity removal and invalidate dependent credentials together. Rotate or destroy secrets that would otherwise outlive the retired workload. | ||
| NIST SP 800-53 Rev 5 | IA-5 — Authenticator Management | Machine identity revocation depends on lifecycle control of authenticators and credentials. |
| IA-9 — Service Identification and Authentication | Workloads and services authenticate to each other, so service trust must be revoked at offboarding. | |
| Recommendation — Enforce credential lifecycle controls so retired authenticators are disabled or replaced. Revoke service-to-service authentication paths when the workload is decommissioned. | ||
| CIS Controls v8 | CIS-5 — Account Management | Account and identity governance must cover provisioning, review, and removal of machine accounts. |
| Recommendation — Track machine identities as accounts and remove them when they are no longer needed. | ||
| ISO/IEC 27001:2022 | A.5.16 — Identity management | Identity lifecycle governance is needed to manage creation, ownership, and revocation. |
| Recommendation — Define lifecycle ownership and revoke identities when the business need ends. | ||
Practitioner Guidance
What to verify: Before declaring offboarding complete, verify that the identity owner, the workload owner, and the platform team all agree on the retirement event, and that every dependent secret, token, certificate, and federation trust has been accounted for. A decommissioned workload with one surviving child credential is not fully offboarded.
Decision rule: If the identity can still authenticate to any production system, treat the offboarding as incomplete and prioritise revocation over cosmetic cleanup. If business continuity requires a grace period, time-box it and explicitly record who approved the exception, what remains active, and when the last trust path will be removed.
What good looks like: The removal process is event-driven, ownership is explicit, dependent credentials are invalidated together, and a post-offboarding check confirms that no downstream system still accepts the retired identity.
Practitioner takeaway: The safest revocation model is one that removes the workload and every trust artefact that lets it keep acting, because partial offboarding is how machine identities become long-lived residual access.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
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.
Reviewed and updated by the NHIMG editorial team on November 18, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org