CRITICAL
Source
Trivy
Frameworks

CIS AWS 1.4

CIS AWS 1.2

ID
AVD-AWS-0141

The root user has complete access to all services and resources in an AWS account. AWS Access Keys provide programmatic access to a given account.

CIS recommends that all access keys be associated with the root user be removed. Removing access keys associated with the root user limits vectors that the account can be compromised by. Removing the root user access keys also encourages the creation and use of role-based accounts that are least privileged.

Impact

Follow the appropriate remediation steps below to resolve the issue.

Use lower privileged accounts instead, so only required privileges are available.

1
2
3
resource "aws_iam_access_key" "good_example" {
  user = "lowprivuser"
}