CLOUD CONCEPT

Credential Revocation

Credential revocation is the deliberate invalidation of authentication material, or denial of its use, so it can no longer authorize access.

Cloud Concepts Hub →

What is Credential Revocation

Credential revocation contains unauthorized access after a secret, key, token, or identity is compromised or no longer trusted. Effective revocation addresses both the original credential and any sessions or downstream credentials created from it, while allowing legitimate workloads to recover safely.

Credential revocation removes the ability to use previously trusted authentication material. In cloud incident response, it is a containment action: responders stop an attacker from continuing to access APIs, applications, or infrastructure using stolen credentials. Revocation can mean disabling an access key, invalidating a session, revoking a certificate, or applying an authorization rule that denies requests made with affected credentials. The implementation depends on what validates the credential and whether that validator supports immediate invalidation.

Begin by identifying the compromised identity, credential type, permissions, and dependent workloads. Preserve relevant audit records and credential identifiers without copying secret values into incident tickets. Investigate whether the attacker created additional keys, assumed roles, established application sessions, or modified trust policies. Disabling the originally exposed credential is insufficient if another usable access path remains.

For example, when a long-lived cloud API key appears in a public repository, disable the key promptly and examine its activity. Removing the secret from the repository does not invalidate copies already obtained by an attacker. Issue replacement credentials only through a trusted recovery process, update authorized consumers, and remove the obsolete key after preserving necessary evidence. Prefer workload identities and short-lived credentials over distributing another permanent secret.

Temporary credentials require different handling. On AWS, disabling an IAM user's access key does not automatically invalidate temporary credentials already issued using that key. Changing a role's trust policy can prevent new role assumptions but does not, by itself, stop existing role sessions. IAM role session revocation uses an explicit deny policy with a token-issue-time cutoff to deny requests from older sessions. This is authorization-based containment rather than deletion of individual AWS Security Token Service tokens. Keep the deny effective until the affected credentials have expired, and prevent the attacker from obtaining newer sessions.

Application tokens have similar limitations. A signed, self-contained token may remain acceptable until expiration unless the application checks a revocation mechanism, session state, or another authoritative control. Revoking a refresh token does not necessarily invalidate access tokens already issued from it. Likewise, changing a stored database password must change the credential at the database; merely updating a secret's stored value does not revoke the old password, and established database connections may require separate termination.

Revocation trades availability for containment. Disabling a shared credential can interrupt many healthy workloads, while gradual rotation can leave an attacker access during an overlap period. During confirmed compromise, prioritize stopping unauthorized access, scope controls carefully, and use trusted emergency access to avoid locking out responders. Account for policy propagation and application caches rather than assuming every validator changes instantly.

Credential revocation is not complete eradication or recovery. Isolate affected workloads when necessary, remove persistence, correct the exposure mechanism, and rebuild compromised resources from trusted images or restore validated backups. Network isolation alone does not stop stolen credentials from being used elsewhere. Before restoring service, verify that old credentials fail, replacement credentials work only for intended consumers, and audit activity shows no continuing unauthorized access.

Key aspects of Credential Revocation

Effective revocation invalidates exposed access, covers existing sessions, prevents credential reissuance, and verifies secure recovery.

Credential and session coverage

Identify both the compromised authentication material and any sessions or additional credentials derived from it. Disabling a source credential may leave previously issued sessions usable.

Validator-aware enforcement

Apply revocation where access is actually checked: an identity service, authorization policy, application session store, certificate validator, or database. Updating a secret's storage location alone does not invalidate the credential at its target.

Prevention of renewed access

Block the compromised identity or workload from acquiring fresh credentials. Review trust relationships, federation paths, refresh mechanisms, and attacker-created access methods.

Bounded containment and availability impact

Choose the narrowest effective control without leaving the attacker an active path. Plan for service interruption, propagation delays, and trusted responder access.

Verified recovery

Test that affected credentials are rejected and that replacement credentials support only authorized operations. Remove persistence and repair the cause of exposure before returning compromised workloads to service.

Cloud services for Credential Revocation

CloudTrail helps responders identify affected identities, trace credential use, and investigate additional access paths. IAM provides access-key controls and authorization policies to block compromised access, while AWS STS credentials require attention to existing sessions, issuance time, and expiration. Secrets Manager supports replacement and redistribution of application secrets, with corresponding changes required in the systems that accept them. Together, these services support containment and recovery, but responders must also stop unauthorized credential issuance, remove persistence, and verify rejection of old credentials. Audit evidence and application-level tests help confirm that access has actually been cut off.

AWS Secrets Manager image AWS Secrets Manager

Secrets Manager supports controlled distribution and rotation of application secrets. Effective revocation requires changing the credential in the target system and updating consumers; changing only the stored secret value does not revoke the original credential.

Open AWS Secrets Manager →
AWS CloudTrail image AWS CloudTrail

CloudTrail provides audit events for investigating credential use, role assumptions, and changes to identity controls. It supports scoping and verification but does not itself revoke credentials; investigations must account for configured event coverage and delivery timing.

Open AWS CloudTrail →