Subscribe to the Non-Human & AI Identity Journal

What breaks when a departed employee’s automation still has valid access?

Account disablement no longer equals access removal. The workflow can keep reading records, sending messages, triggering approvals, and exporting data through credentials that were approved when the creator was trusted. The result is an orphaned authority path that can create compliance, operational, and security exposure without any active login by the former employee.

Why This Matters for Security Teams

When a departed employee’s automation still has valid access, the failure is not just stale authentication. It is a live authority path that can keep operating after the human account is disabled. That breaks the common assumption that offboarding a person automatically removes the access they created for scripts, bots, integrations, and scheduled jobs. OWASP’s Non-Human Identity Top 10 treats this as a core governance gap, because machine access often outlives the employee who provisioned it.

NHIMG research shows why this persists: only 20% of organisations have formal processes for offboarding and revoking API keys, and 71% of NHIs are not rotated within recommended time frames. In practice, that means the automation can still read records, trigger workflows, send alerts, or export data long after the former employee has left. The risk is not theoretical or limited to a single system. It can span SaaS, cloud APIs, CI/CD, and internal tools, especially where credentials were approved once and never tied back to a lifecycle owner.

In practice, many security teams discover the orphaned workflow only after a compliance review, an unusual data transfer, or a post-incident investigation, rather than through intentional offboarding.

How It Works in Practice

The core problem is that human identity lifecycle controls and machine identity lifecycle controls are often managed separately. A user leaves, HR triggers deprovisioning, and the directory account is disabled. But the automation may still authenticate with an API key, service account, refresh token, certificate, or cloud role that remains valid until explicit revocation. NIST control guidance in NIST SP 800-53 Rev 5 Security and Privacy Controls supports access control and account management discipline, but the implementation detail is that machine access must be inventoried and revoked independently from the employee account.

In mature environments, the offboarding workflow should answer three questions: what automation existed, who owns it now, and what secrets or tokens does it use? The most reliable pattern is to pair identity inventory with secret inventory, then enforce revocation and rotation as part of separation. NHIMG’s Ultimate Guide to NHIs notes that visibility is still weak across service accounts, which is why orphaned access survives after employee departure. Teams should also inspect logs for the last successful use of the credential, downstream systems touched, and whether the automation has delegated rights that were never documented.

  • Disable the human account, then separately revoke or rotate every machine credential tied to that person.
  • Reassign ownership of scripts, pipelines, integrations, and scheduled jobs before the employee exits.
  • Verify whether long-lived secrets are stored in code, CI/CD, vaults, or external SaaS connectors.
  • Review downstream permissions, because one automation often chains into multiple systems.

Where this guidance breaks down is in environments with shadow IT, embedded secrets in legacy code, or shared service accounts, because ownership and revocation paths are too ambiguous to enforce cleanly.

Common Variations and Edge Cases

Tighter offboarding controls often increase operational overhead, requiring organisations to balance fast employee exits against complete machine-credential revocation. That tradeoff is especially visible when automations are business-critical and poorly documented. A payroll job, ticketing integration, or alerting workflow may belong operationally to one team but be technically deployed in another, so the departing employee is no longer the real owner even though their credentials still function.

Current guidance suggests treating high-risk automations as shared infrastructure rather than personal productivity tools. That means explicit ownership, periodic validation, and short-lived credentials where possible. Where a system supports it, replace static secrets with time-bound tokens and enforce reauthorization at runtime. NHIMG’s 52 NHI Breaches Analysis shows that orphaned or overprivileged machine identities are a recurring pattern, not a one-off mistake. It is also worth noting that there is no universal standard for handling every offboarding scenario yet, especially for vendor-managed automations or agentic workflows that can act across multiple tools.

The practical rule is simple: if a former employee can no longer log in, nothing they created should still be able to act with their authority unless a named owner has deliberately accepted that responsibility.

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 CSA MAESTRO address the attack and risk surface, while NIST CSF 2.0, NIST SP 800-53 Rev 5 and NIST AI RMF set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Non-Human Identity Top 10 NHI-03 Orphaned credentials are a direct NHI lifecycle and rotation failure.
NIST CSF 2.0 PR.AC-1 Access provisioning and revocation must include non-human accounts.
NIST SP 800-53 Rev 5 AC-2 Account management covers lifecycle control for active identities.
CSA MAESTRO Agent and automation governance requires lifecycle-aware ownership and revocation.
NIST AI RMF GOVERN Governance is needed when autonomous systems retain authority after staff exit.

Inventory machine identities and revoke or rotate every credential tied to the departed employee.