Control: 8 Unused IAM user credentials should be removed
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 to be deactivated or removed.
Disabling or removing unnecessary credentials will reduce the window of opportunity for credentials associated with a compromised or abandoned users to be used.
Remediation
From Console:
Perform the following action to disable user console password:
- Sign into the AWS console and navigate to the IAM Dashboard.
- In the left navigation pane, choose Users.
- Select the User name whose
Console last sign-in
is greater than 90 days. - Click on Security credentials tab.
- In section
Sign-in credentials
,Console password
click Manage. - Select
Disable
, click Apply
Perform the following action to deactivate access keys:
- Sign into the AWS console as an Administrator and navigate to the IAM Dashboard.
- In the left navigation pane, choose Users.
- Click on the User name for which access key is over 90 days old.
- Click on Security credentials tab.
- Click on the Make inactive to
deactivate
the key that is over 90 days old and that have not been used.
Usage
Run the control in your terminal:
powerpipe control run aws_compliance.control.foundational_security_iam_8
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run aws_compliance.control.foundational_security_iam_8 --share
SQL
This control uses a named query:
iam_user_unused_credentials_90