aws.iam.no-root-access-keys

Root user has no access keys

No programmatic credential exists for the root user of any AWS account, active or inactive.

Critical Attested Preventive

Assertion

SummaryMap.AccountAccessKeysPresent == 0

Evaluated against aws iam get-account-summary, collected daily.

Rationale

An access key for the root user is a permanent, non-expiring credential for the most powerful principal in the account, and multi-factor authentication does not protect it. Nothing legitimately needs one. Any automation that uses root keys can use an IAM role instead, and every place a root key could be stored is a place it can be leaked from.

Observation

The collector reads AccountAccessKeysPresent from GetAccountSummary in each account. The count includes inactive keys as well as active ones, so a key that has been disabled but not deleted still fails the control. Deleting is the only remediation the assertion recognises, because a disabled key can be re-enabled by anyone who can sign in as root.

Remediation

Sign in as the root user and delete every access key on the security credentials page. If anything was using them, it will fail on its next call; give that workload an IAM role with the permissions it actually needs. Where a key has to be kept for a short transition, prefer to fail the control honestly for those days rather than disable the key and leave it in place.