Join our Newsletter — 33% off our NHI Course

How should security teams decide whether to retire, rotate, or keep a non-human credential in place?

Teams should use actual usage evidence, not just privilege level or age. If a credential is still active and tied to a real workload, rotation may be the right step. If it has no legitimate use, retirement is better because it removes blast radius entirely. The decision should be driven by observed dependence, ownership, and downstream breakage.

When to retire, rotate, or keep a non-human credential

The right action depends on whether the credential is still needed, how broadly it can be used, and whether anyone can prove that usage is legitimate. Age alone is a weak signal. A live credential that still authenticates a real workload may need rotation, but a credential with no defensible business use should usually be retired so the exposure disappears instead of being carried forward.

Retirement and rotation solve different problems. Retirement removes access paths and shrinks blast radius. Rotation preserves a needed integration while changing the secret material. Keeping the credential in place is only defensible when there is current, observable dependence and the team can explain ownership, scope, and downstream breakage if it were changed now.

That distinction matters because non-human credentials often support automation, service-to-service calls, pipelines, and APIs, which means the cost of change can be real. The question is not whether a credential is privileged in the abstract, but whether it is actually exercising that privilege in production. A dormant secret with unknown ownership is a liability; an active secret with a clear dependency graph may be a maintenance item.

What evidence should drive the decision

Security teams should look for usage evidence before deciding. Useful indicators include recent authentication events, the calling workload or application, the environment where it is used, and whether the dependent system has a documented owner. If the credential has no recent use, no mapped owner, and no verified dependency, keeping it in place usually just preserves unnecessary attack surface.

When usage exists, the next question is whether the credential can be replaced without disrupting a required service. Rotation is appropriate when the credential is still legitimate but the team wants to reduce the risk of a long-lived secret, especially if it has broad reach, sits in multiple places, or has unclear provenance. If rotating it would break a critical workflow and the team cannot yet move to a safer control, the short-term answer may be to keep it temporarily while planning the migration.

Ownership is part of the evidence. A credential that nobody owns tends to become permanent by accident, and permanence is what turns a convenience secret into a control failure. Teams should be able to answer who requested it, who depends on it, who approves its continued existence, and what event would force re-evaluation.

How to choose between retire, rotate, and keep

  • Retire when the credential has no legitimate current use, the dependent workload is gone, or the business process has been replaced.
  • Rotate when the credential is still required, but you want to reduce exposure, refresh trust, or move toward a shorter-lived pattern.
  • Keep only when the credential is actively needed, the dependency is verified, and changing it now would cause avoidable breakage without a safer alternative ready.

This decision should be reviewed in context of the broader secret lifecycle, not as a one-off cleanup task. A non-human credential that remains in place by exception should have a reason, an owner, a review date, and a plan to remove the exception. That is especially true for secrets embedded in code, build systems, or third-party integrations, where the original purpose is often forgotten but the access remains live.

Risk and Threat Considerations

Long-lived non-human credentials accumulate risk because they are easy to forget, hard to inventory completely, and attractive to attackers once discovered. The bigger the dependency graph, the more damage a stolen or unnecessary secret can cause, especially if it still reaches production systems.

Failure mechanism: An organisation keeps a credential because it still appears “important,” but never revalidates whether it is actually used. That leaves dormant or over-broad access available for misuse, lateral movement, or unintended reuse after the original workload changes.

Impact: The result is avoidable blast radius, weak accountability, and delayed detection of stale access. If the credential is compromised, attackers may inherit access that the business no longer needs but never removed.

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 sets 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 Retiring unused non-human credentials is an offboarding decision.
NHI-02 — Secret Leakage Secret exposure risk increases when credentials are left in place unnecessarily.
NHI-05 — Overprivileged NHI Keeping a credential without usage evidence can preserve unnecessary privilege.
Recommendation — Retire credentials when the workload or integration no longer has a valid business need. Rotate exposed credentials and remove any that no longer have legitimate use. Reduce access scope before deciding to keep a credential in place.
NIST SP 800-53 Rev 5 IA-5 — Authenticator Management This question is about managing authenticators across their lifecycle.
AC-2 — Account Management Credential retirement and ownership depend on lifecycle governance and account control.
Recommendation — Track, rotate, and retire authenticators based on current need and usage evidence. Remove inactive credentials and maintain accountable ownership for active ones.
ISO/IEC 27001:2022 A.5.16 — Identity management Non-human credential ownership and retirement are identity lifecycle concerns.
A.8.24 — Use of cryptography Rotation decisions often affect cryptographic secrets and key material.
Recommendation — Maintain current ownership and lifecycle status for every active credential. Rotate cryptographic secrets when continued use is justified and exposure risk changes.

Practitioner Guidance

What to verify: Before you decide, confirm the last observed use, the authenticating workload, the owner, the environment, and whether the credential is tied to a documented dependency. If you cannot verify those points, treat the credential as suspect rather than useful.

Decision rule: If the credential is still in legitimate use, rotate it with a dependency-aware plan. If the use case is gone or cannot be justified, retire it. If you must keep it temporarily, set a review date and require evidence that the dependency still exists.

Practitioner takeaway: The safest default is not “rotate everything,” but “remove anything you cannot justify and rotate only what still has a proven reason to exist.”