How to Find Unused AWS IAM Credentials
To increase the security of your AWS account, remove IAM user credentials (that is, passwords and access keys) that are not needed. For example, when users leave your organization or no longer need AWS access.
This security check is part of the CIS Amazon Web Services Benchmarks and is rated severity medium.
This guide assumes that you have already installed and configured Resoto to collect your AWS resources.
Execute the following
searchcommand in Resoto Shell or Resoto UI:
> search is(aws_iam_user) and password_last_used<-45d
kind=aws_iam_access_key, ..., region=resoto-poweruser
kind=aws_iam_access_key, ..., account=poweruser-team
searchcommand into the
> search is(aws_iam_user) and password_last_used<-45d | dump
The command output will list the details of all non-compliant
- From the IAM console: generate credential report.
- Disable not required keys.
Please refer to the AWS IAM documentation for details.