Information
IAM password policies can prevent the reuse of passwords by the same user. It is recommended that the password policy be configured to prevent password reuse.
Preventing password reuse increases account resilience against brute force and credential reuse attacks.
Solution
Perform the following to set the password policy as prescribed:
From Console:
- Login to AWS Console (with appropriate permissions to View Identity Access Management Account Settings)
- Go to IAM Service
- Select Account Settings on the left Pane
- Check Prevent password reuse
- Set Remember XX password(s) to 24 or greater
From Command Line:
- Run the following command:
aws iam update-account-password-policy --password-reuse-prevention 24
Note: All commands starting with "aws iam update-account-password-policy" can be combined into a single command.
Impact:
Allowing password reuse increases the risk of account compromise, particularly if previously exposed or weak passwords are reused.