NHI1 Improper Offboarding is the first risk in the OWASP Non-Human Identities Top 10: failing to disable or delete non-human identities such as service accounts, API keys and tokens when a workload is retired or an owner leaves. Orphaned credentials stay valid and attackers can reuse them. Defenders track owners, expiry and decommissioning triggers, and revoke access promptly.
What Improper Offboarding Means for Non-Human Identities
Improper offboarding is a lifecycle failure, not a simple cleanup miss. It means the organisation has stopped using a non-human identity, but the access path still exists, so the object can continue to authenticate long after its business purpose has ended.
The practical danger is that decommissioned services, retired integrations and departed owners often leave behind a trail of credentials, trust relationships and automation hooks. If those paths are not closed in the right order, the identity can become an orphaned access route instead of a retired asset.
Why Offboarding Breakdowns Create Security Exposure
When offboarding fails, the risk is less about the identity record itself and more about the live authority attached to it. A stale service account, API key or token can still reach systems, sign requests or trigger workflows, even when no one is actively watching it.
This is why offboarding problems often overlap with account ownership, recertification and secret hygiene. The issue is not merely that something was not deleted, but that the environment still trusts it. NHI Ownership and Accountability Guide is useful here because owner assignment is what makes retirement decisions possible in the first place.
Offboarding also exposes a familiar pattern: the longer a credential remains valid after retirement, the more likely it is to be reused, forgotten or discovered by an attacker. That is why lifecycle controls need to treat retirement as an explicit security event, not a housekeeping task.
How Teams Check Whether an NHI Is Really Retired
Exposure checks start with inventory, ownership and usage evidence. Teams need to know what the identity is for, who owns it, where it is used, whether it still authenticates anywhere and whether the application or workload it supported has truly been retired.
That review is easiest when offboarding is tied to a clear change trigger, such as a workload decommission, a repository retirement or a transfer of responsibility. For broader process design, the Joiner-Mover-Leaver (JML) Guide shows how leaver events and access cleanup fit into a controlled lifecycle, while the Employee Offboarding Security Guide covers the human-side triggers that often expose the machine-side gap.
For machine identities specifically, the most reliable check is to compare what should have been retired against what still shows activity, permissions or dependent integrations. If the identity still has observable use, it is not actually offboarded.
What Good Decommissioning Looks Like in Practice
Effective offboarding removes access in a staged way. The identity should be disabled or isolated first, then observed for unexpected use, then deleted only after the organisation is confident no remaining dependency still needs it. That sequencing matters because immediate deletion can break legitimate systems, while delayed action leaves a window for abuse.
When the risk is the reuse of old credentials, the right response is to revoke and rotate the material that authenticated the retired identity, not just to archive the record. The NHI Offboarding and Decommissioning Guide is the most direct reference for disable, watch, delete patterns, and the PAM vs Secrets Manager guide helps explain why credential custody and rotation ownership must be clear during retirement.
In practice, the decommissioning step should also remove automation triggers, pipeline references, application registrations and any residual trust links that would allow the retired identity to reappear through another path.
Risk and Threat Considerations
Improper offboarding creates a ready-made persistence path for attackers because the organisation has effectively left a valid credential behind. If the old identity still works, an adversary does not need to break in through a new control surface, they can reuse the abandoned one.
Failure mechanism: The account, key or token is left active after the workload, application or owner changes, so the access path remains trusted even though operational responsibility has ended.
Impact: Attackers or unauthorised insiders can impersonate the retired workload, access downstream systems, sign requests, move laterally or continue using a credential that defenders no longer monitor closely.
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 and risk surface, while NIST SP 800-53 Rev 5 and CIS Controls v8 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-01 — Improper Offboarding | This term is the OWASP NHI offboarding risk itself. |
| Recommendation — Disable, monitor, and delete retired NHIs only after confirming no live dependency remains. | ||
| NIST SP 800-53 Rev 5 | IA-5 — Authenticator Management | Offboarding requires revoking and rotating credentials, keys, and tokens. |
| AC-2 — Account Management | Lifecycle control covers creation, disabling, and timely removal of accounts. | |
| Recommendation — Revoke or replace authenticators promptly when an NHI is retired or transferred. Maintain a complete account inventory and disable or remove orphaned accounts on retirement. | ||
| CIS Controls v8 | CIS-5 — Account Management | Account governance directly addresses stale accounts and offboarding cleanup. |
| Recommendation — Continuously identify and remove inactive or unauthorized accounts, including machine identities. | ||
Practitioner Guidance
Why practitioners should care: Retirement is the point where hidden dependency and ownership problems surface. If an NHI cannot be cleanly offboarded, it usually means the organisation lacks a reliable ownership model, an inventory that is current enough to trust, or a revocation process that is fast enough to matter.
What to watch for: Stale service accounts, old API keys that still authenticate, retired projects with live secrets, and offboarding events that do not trigger a confirmed disable then delete sequence are all signs that the control failed earlier than the final cleanup step.
For a fuller control model, see the OWASP NHI Top 10 NHI1 Improper Offboarding Guide and the broader Top 10 NHI Risks reference, which place this issue in the wider lifecycle context.
Related resources from NHI Mgmt Group
- Should organisations include ownership checks in offboarding workflows?
- How should security teams handle SaaS offboarding when non-human identities are involved?
- What is the difference between SSO offboarding and full SaaS lifecycle revocation?
- How should security teams handle SaaS offboarding when users also use AI tools?
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 26, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org