Control: 1.3 Ensure credentials unused for 90 days or greater are disabled
Description
AWS IAM users can access AWS resources using different types of credentials, such as passwords or access keys. It is recommended that all credentials that have been unused in 90 or greater days be removed or deactivated.
Disabling or removing unnecessary credentials will reduce the window of opportunity for credentials associated with a compromised or abandoned account to be used.
Remediation
Perform the following to remove or deactivate credentials:
- Login to the AWS Management Console:
- Click
Services
. - Click
IAM
. - Click on
Users
. - Click on
Security Credentials
. - As an Administrator.
- Click on
Make Inactive
for credentials that have not been used in90
Days.
- As an IAM User.
- Click on
Make Inactive
orDelete
for credentials which have not been used in90
Days.
Usage
Run the control in your terminal:
powerpipe control run aws_compliance.control.cis_v120_1_3
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run aws_compliance.control.cis_v120_1_3 --share
SQL
This control uses a named query:
iam_user_unused_credentials_90