Join our Newsletter — 33% off our NHI Course
Home› Glossary› NHI Lifecycle Management› Revoke and Rotate Credentials
NHI Lifecycle Management

Revoke and Rotate Credentials

← Back to Glossary
By NHI Mgmt Group Updated November 25, 2026 Domain: NHI Lifecycle Management

Revoke and rotate credentials means invalidating an existing secret and replacing it with a new one. Practitioners use it when an API key, token, certificate, or password may have been exposed, so the old credential stops working and systems move to the new one with updated access controls and propagation.

What revocation and rotation actually do

Revocation and rotation are related but distinct responses to credential exposure. Revocation invalidates the current secret so it no longer works, while rotation issues a replacement credential so systems and users can continue operating with a fresh trust artifact. The practical challenge is making the cutover cleanly, without leaving the old credential usable anywhere.

This distinction matters because a leaked credential is not fixed simply by creating a new one. The old value may still authenticate until it is explicitly revoked, or until every dependent system stops accepting it. That is why practitioners treat revocation, rotation, and propagation as one coordinated lifecycle event rather than isolated tasks.

Where revoke and rotate credentials are used

This pattern applies to API keys, OAuth tokens, certificates, passwords, SSH keys, and similar authentication material. It is most urgent when a credential may have been copied, logged, embedded in code, or exposed through a third-party system, because the main objective is to end trust in the compromised secret and move to a known-good replacement.

In mature environments, revocation and rotation are also part of routine hygiene for expiring credentials, vendor offboarding, and incident containment. The same action may protect service access, human access, or automated integrations, but the operational detail changes depending on how broadly the credential is distributed and how many systems depend on it.

For practical handling patterns, see API Key Management Guide and Secrets Management Guide.

Why timing and propagation matter

The security value of rotation depends on whether the old credential is truly dead everywhere. Many systems have overlap windows, caches, replicas, signed tokens, or delegated permissions that can keep an old secret useful longer than expected. If revocation is incomplete, an attacker can continue using the original credential even after a replacement exists.

That is why good hygiene includes confirming where the credential was used, whether dependent services have picked up the new secret, and whether any parallel credential, session, or grant still exists. In practice, the risk is not just exposure of the secret itself, but residual access after the first response action.

For a deeper discussion of the overlap problem, see Secret Rotation vs Revocation and Guide to NHI Rotation Challenges.

How to verify that the old credential is no longer usable

Verification is part of the control, not an optional follow-up. After revocation and rotation, teams should confirm that the old secret no longer authenticates, that related sessions or refresh paths are closed, and that audit or access logs show the expected transition. If the credential was used by an application or automation path, testing should include the exact runtime path, not just the admin console.

A useful mental model is that successful response means both loss of validity and loss of reach. The credential should be revoked, the replacement should be in service, and evidence should show that the old value cannot be used to regain access or continue an active workflow.

For incident handling and evidence-based verification, see Leaked Credential and Secret Incident Response Playbook and D3-CR Credential Revocation.

Risk and Threat Considerations

Revoke-and-rotate is often the difference between contained exposure and ongoing compromise. If an attacker has already copied the secret, simply issuing a new one does not remove the original attacker path unless the old credential, its sessions, and any durable grants are actually cut off.

Failure mechanism: The old secret remains valid somewhere in the authentication chain, such as a token cache, backup path, delegated grant, or unaudited integration, so the attacker retains access after the “rotation” is believed to be complete.

Impact: The organisation may assume the incident is closed while the attacker continues to authenticate, exfiltrate data, or use the same trust relationship to move laterally and re-establish persistence.

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-57, NIST SP 800-53 Rev 5 and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST SP 800-57Key ManagementCredential rotation and replacement are core key lifecycle management concerns.
Recommendation — Set cryptoperiods and rotate exposed keys before old material can be reused.
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementThis control governs issuance, change, and invalidation of authenticators and secrets.
IA-4 — Identifier ManagementCredential revocation depends on promptly disabling the identifier-to-authenticator relationship.
Recommendation — Manage authenticator lifecycle so compromised credentials can be replaced and invalidated promptly. Remove or disable identifiers and their authenticators when access should end.
CIS Controls v85 — Account ManagementCredential revocation and rotation support removing stale access and limiting account abuse.
Recommendation — Revoke stale access and reissue credentials when exposure or ownership changes.
OWASP Non-Human Identity Top 10NHI-01 — Improper OffboardingRotating away from exposed non-human credentials is part of ending unsafe access.
NHI-07 — Long-Lived SecretsRotation addresses the risk created by secrets that remain valid too long.
Recommendation — Revoke and replace credentials that no longer should remain active. Reduce lifetime by replacing long-lived credentials with shorter-lived alternatives.

Practitioner Guidance

Why practitioners should care: Revoke and rotate is a containment action, not a cosmetic change. The operational question is whether the secret was merely replaced or actually removed from every place that can still honour it, including sessions, downstream systems, and third-party dependencies.

Practitioner takeaway: Treat credential recovery as a proof problem, not a hope problem, and do not close the event until you can show the old value no longer authenticates anywhere that matters.

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 25, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org