Join our Newsletter — 33% off our NHI Course

Who is accountable when a revoked AWS principal still has access?

Accountability sits with the team that designed the response path and the control boundary. If the runbook relied on identity-level changes alone, then the containment model was too weak for a distributed IAM system, and account-level controls should be part of the operating standard.

Why This Matters for Security Teams

When a revoked AWS principal still works, the issue is not just delayed cleanup. It is a control-boundary failure: identity removal did not actually stop the reachable path. In distributed IAM environments, revocation can lag because sessions, role assumptions, cached credentials, and downstream permissions are not controlled as one system. That is why accountability sits with the team that defined the containment model, not just the operator who clicked revoke.

Current guidance from the OWASP Non-Human Identity Top 10 and NHIMG’s Ultimate Guide to NHIs both point to the same operational lesson: effective containment requires lifecycle control, not just point-in-time credential deletion. NHIMG notes that only 20% of organisations have formal processes for offboarding and revoking API keys, which helps explain why revocation gaps persist even in mature cloud programs.

In practice, many security teams encounter the failure only after a post-incident review shows the principal was “revoked” but still able to assume a role, access a bucket, or continue a queued automation path.

How It Works in Practice

Accountability should follow the control that was supposed to stop the access path. If the team owned the IAM design, they own the fact that a revoked principal remained effective. If the platform team owns the account boundary, they own whether account-level controls, session invalidation, and token expiry were built into the response model. That distinction matters because AWS authorization is layered: users, roles, temporary credentials, session policies, resource policies, and service-linked permissions can each keep a path alive after one identity object is removed.

Practitioners should treat revocation as a sequence, not a single action. The operational standard should include:

  • Invalidate active sessions and temporary tokens, not only the underlying IAM user or access key.
  • Check role trust policies, resource-based policies, and cross-account trusts for surviving access paths.
  • Confirm the revocation point in CloudTrail or equivalent logs, then verify the principal cannot re-assume access.
  • Use account-level containment when speed matters, especially if the blast radius is unclear.
  • Make the response path explicit in runbooks so identity, platform, and incident teams know who owns each step.

NHIMG’s NHI Lifecycle Management Guide and Top 10 NHI Issues reinforce that offboarding is a lifecycle control, while NIST SP 800-53 Rev 5 Security and Privacy Controls supports the need for accountable access management and timely revocation verification. The practical test is simple: can the team prove the principal is blocked at every layer, not just removed from one database? These controls tend to break down when short-lived sessions, federated roles, and cross-account automation are all active at once because no single revocation event reaches every authorization cache.

Common Variations and Edge Cases

Tighter revocation often increases operational overhead, requiring teams to balance rapid containment against service disruption and false positives. That tradeoff is especially visible in production AWS environments where a revoked principal may still be needed for forensics, rollback, or controlled automation.

There is no universal standard for this yet, but best practice is evolving toward layered containment. If the access was human-driven, an IAM user disable plus key rotation may be enough. If the access was from an automation role or workload identity, teams usually need token expiry, trust policy review, and sometimes account isolation to get to a safe state. For high-risk events, the faster option is often to remove trust at the account boundary first and clean up the identity object second.

NHIMG’s Guide to the Secret Sprawl Challenge shows why static credentials and delayed cleanup create persistent exposure, while the Ultimate Guide to NHIs — Static vs Dynamic Secrets explains why short-lived, automatically expiring credentials reduce this problem. Where teams still depend on long-lived access keys, revocation can appear successful while cached tokens, assumed roles, or third-party integrations keep the principal functionally alive. The edge case that breaks this guidance is a federated, multi-account estate with unmanaged session duration, because the effective access path survives longer than the identity record does.

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 address the attack and risk surface, while NIST CSF 2.0, NIST SP 800-63, NIST Zero Trust (SP 800-207) 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 Revocation gaps often stem from weak NHI offboarding and rotation controls.
NIST CSF 2.0 PR.AC-4 Least-privilege access must be removed across all paths, not one identity record.
NIST SP 800-63 Session lifecycle and binding matter when a revoked principal still holds access.
NIST Zero Trust (SP 800-207) SC-7 Zero trust containment requires denying access at the boundary when identity revocation lags.
NIST AI RMF Governance must assign responsibility for control failures and response paths.

Verify every AWS principal revocation also invalidates sessions, trusts, and dependent credentials.