turbot/aws_compliance

Control: 1.7 Eliminate use of the 'root' user for administrative and daily tasks

Description

With the creation of an AWS account, a 'root user' is created that cannot be disabled or deleted. That user has unrestricted access to and control over all resources in the AWS account. It is highly recommended that the use of this account be avoided for everyday tasks.

The 'root user' has unrestricted access to and control over all account resources. Use of it is inconsistent with the principles of least privilege and separation of duties, and can lead to unnecessary harm due to error or account compromise.

Remediation

If you find that the 'root' user account is being used for daily activities, including administrative tasks that do not require the 'root' user:

  1. Change the 'root' user password.
  2. Deactivate or delete any access keys associate with the 'root' user.

Remember, anyone who has 'root' user credentials for your AWS account has unrestricted access to and control of all the resources in your account, including billing information.

Usage

Run the control in your terminal:

powerpipe control run aws_compliance.control.cis_v400_1_7

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run aws_compliance.control.cis_v400_1_7 --share

SQL

This control uses a named query:

iam_root_last_used

Tags