2.7 Eliminate use of the 'root' user for administrative and daily tasks

Information

With the creation of an AWS account, a 'root user' is created that cannot be disabled or deleted. This 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 this account is inconsistent with the principles of least privilege and separation of duties and can lead to unnecessary harm due to user error or account compromise.

NOTE: Nessus has not performed this check. Please review the benchmark to ensure target compliance.

Solution

If the 'root' user account is being used for daily activities or administrative tasks that do not require root access:

- Stop using the root account for routine operations
- Create and use IAM roles or users with least privilege instead
- Change the root user password
- Deactivate or delete any access keys associated with the root user

From Command Line:

- Run the following command as the root user in the account to delete the root login profile:

aws iam delete-login-profile

This removes the password associated with the root account and prevents console authentication using the root user.

Impact:

Use of the root account for routine activities increases the risk of accidental or unauthorized changes, potentially resulting in full account compromise.

See Also

https://workbench.cisecurity.org/benchmarks/24575