Join our Newsletter — 33% off our NHI Course
NHI Lifecycle Management

Rotation

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

Rotation is the replacement of a credential, such as a password, API key, certificate or token, with a new value on a schedule or after suspected exposure. It shortens how long a stolen secret stays useful. Defenders automate it, update every consuming system, and revoke the old value, because lingering old credentials defeat the purpose.

What Rotation Means in Security Operations

Rotation is not just a maintenance task, it is a time-bounding control. By replacing passwords, API keys, certificates, or tokens on a schedule or after suspected exposure, organisations reduce the window in which a stolen secret remains valid and useful. The value of rotation depends on both the new secret and the retirement of the old one.

It is also easy to misunderstand rotation as a standalone fix. If old credentials continue to work, if consuming systems are not updated, or if secrets are copied into multiple places, the exposure window persists even after the nominal rotation event.

Why Rotation Matters for Credential Lifecycles

Rotation sits inside the wider credential lifecycle: issuance, use, renewal, revocation, and retirement. It becomes especially important where secrets are embedded in applications, automation, pipelines, or integrations that cannot easily prompt a human for a fresh login. In those cases, rotation is often the main way to limit how long a secret can be replayed after theft.

For that reason, rotation is usually paired with dependency mapping and inventory. If a token or certificate is consumed by many services, the organisation must know what will break when the value changes. NHIMG’s MCP Server Inventory Template is a useful example of the kind of inventory discipline needed when credentials are spread across tool surfaces and consuming systems.

Rotation is most effective when the old value is revoked, not merely replaced. Without revocation, expired or superseded secrets can remain live in caches, scripts, or fallback paths, which turns a supposedly short-lived credential into a lingering access path.

How Rotation Supports Secure Design

Well-run rotation reduces blast radius, but it also creates design pressure. Systems must support secret discovery, coordinated rollout, rollback if needed, and rapid invalidation of the prior credential. That makes rotation a technical control as much as a policy choice, especially in environments with many machine-to-machine dependencies.

Secrets that never change are particularly dangerous because compromise can remain undetected for long periods. Guide to NHI Rotation Challenges explains why scale, dependency mapping, and automation become the limiting factors once rotation is applied across many non-human credentials.

Where short-lived credentials are feasible, they often reduce reliance on manual rotation entirely. The practical aim is to make exposure temporary by design, not to depend on perfect human timing after a suspected leak.

Rotation in Practice Across Passwords, Keys, and Certificates

Different secret types rotate differently. Passwords usually require user or service coordination, API keys often require application redeployment or configuration refresh, and certificates introduce renewal, distribution, and trust-chain concerns. The security principle is the same in each case, but the operational path is not.

That is why rotation should be treated as a dependency-aware change process. If a system cannot accept the new value quickly, the security gain is delayed. If the old secret is left active for compatibility, the organisation may preserve availability while weakening the control.

For key material specifically, NIST SP 800-57 Key Management is the clearest external reference for lifecycle thinking, because it frames cryptoperiods, replacement, and protection as part of managed key use rather than ad hoc housekeeping.

Risk and Threat Considerations

Rotation fails when the old credential stays valid, the new one is not distributed everywhere it should be, or the secret is reused across systems. In those cases, an attacker who steals one value can continue using it long after the expected expiry point, especially if monitoring does not detect the follow-on use.

Failure mechanism: The control breaks when replacement, distribution, and revocation are not completed as one coordinated event, leaving parallel valid secrets or stale copies behind.

Impact: Residual access can enable replay, persistence, lateral movement, or repeated API and service abuse even after the organisation believes the exposure has been contained.

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

FrameworkControl / ReferenceRelevance
NIST SP 800-57Key Management RecommendationsDefines key lifecycle, cryptoperiods, and replacement for cryptographic material.
Recommendation — Use cryptoperiods and lifecycle policy to replace keys before exposure becomes operationally significant.
OWASP Non-Human Identity Top 10NHI-07 — Long-Lived SecretsDirectly addresses the risk of secrets that remain valid too long.
NHI-01 — Improper OffboardingCovers revocation and retirement of non-human credentials after use changes or exposure.
Recommendation — Shorten secret lifetime and automate replacement to reduce replay window. Revoke superseded credentials and remove unused access paths promptly.
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementRequires management of authenticators across generation, change, and revocation.
AC-2 — Account ManagementSupports lifecycle control over accounts whose credentials must be rotated or disabled.
Recommendation — Manage authenticator lifecycle so replacement and invalidation happen together. Tie credential changes to account lifecycle so old access is removed cleanly.

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