Ensure No Root User Account Access Key Exists
Specification & Description
Ensure no active programmatic access keys exist for the root user in any AWS account, and prevent their creation organization-wide via SCP.
Technical Specifications
The root user bypasses all IAM permission boundaries and SCPs, making a compromised root access key the highest-severity credential exposure possible in AWS. This control operates at two layers: a preventative SCP applied at the organization root that denies iam:CreateAccessKey when the caller is the root principal, and detective checks via the IAM credential report and the AccountAccessKeysPresent account summary metric. The SCP targets only access key creation - it does not restrict root console sign-in or other root-only emergency operations such as restoring an IAM policy that locks out all users.
Security Rationale
Root access keys are long-lived credentials with no permission boundary and no MFA enforcement at the API level. Any programmatic action should be performed through IAM roles, which support least-privilege scoping, session duration limits, and full CloudTrail attribution. There is no legitimate operational use case for root access keys in a well-configured landing zone.
Business & Security Impact
A compromised root access key grants an attacker unconditional control over the account: they can delete CloudTrail trails, disable GuardDuty, remove SCPs, exfiltrate all data, and close the account. No detective control can prevent these actions once the key is in adversary hands.
Operational & Implementation Notes
Root access keys cannot be deleted via the AWS CLI or any API - Console sign-in as root is required. The credential report is eventually consistent and may take time to reflect a newly deleted key; use get-account-summary for an immediate count. The SCP condition aws:PrincipalArn with a wildcard account segment (arn:aws:iam::*:root) correctly matches the root principal in any member account without needing to enumerate account IDs. SCPs apply exclusively to member accounts and do not evaluate or restrict policies within the root account.
Official References
Compliance Framework Mappings (5)
Regulatory baselines and industry standards mapped to this control specification.
| Framework / Standard | Mapped Requirements & Controls | Controls |
|---|---|---|
CIS AWS Foundations Benchmark v3.0CIS AWS | 1.4 | 1 |
NIST 800-53 Rev 5NIST 800-53 | AC-2AC-6 | 2 |
ISO 27001:2022ISO 27001 | A.8.2 | 1 |
SOC 2SOC 2 | CC6.1 | 1 |
AWS Foundational Security Best PracticesAWS FSBP | IAM.1 | 1 |
* Compliance framework mappings are provided for informational architectural reference. Always verify control alignment against your organization's formal audit requirements.
Automated Detection & Rule Logic
Detection Engine: aws-api • Automated: Yes
Two checks cover this control. The fast check queries AccountAccessKeysPresent from the IAM account summary - a non-zero value immediately flags the account as non-compliant without needing to generate a credential report. The authoritative check generates the IAM credential report and inspects the access_key_1_active and access_key_2_active columns for the root user row. AWS Security Hub control IAM.1 automates this check across all accounts when Security Hub is enabled organization-wide.
Preventative Enforcement Policies
Remediation Guide & Automation
Delete any existing root access keys via the AWS Console (root keys cannot be deleted via CLI). Apply the SCP from enforcement_reference at the organization root to prevent recreation.
Step-by-Step Instructions
- Sign in to the AWS Console as root for each non-compliant account.
- Navigate to IAM → My Security Credentials → Access keys and delete all listed keys.
- Apply the DenyRootAccessKeyCreation SCP to the organization root from the Management account.