IAM password policy does not prevent reuse of previously used passwords Affecting IAM service in AWS


Severity

0.0
medium
0
10
Severity Framework
Snyk CCSS
Rule category
IAM/ Passwords

Is your environment affected by this misconfiguration?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
Frameworks
AWS-Well-ArchitectedCIS-AWSCIS-ControlsCSA-CCMHIPAAISO-27001NIST-800-53PCI-DSSSOC-2
  • Snyk IDSNYK-CC-00012
  • creditSnyk Research Team

Description

IAM password policies can prevent the reuse of a given password by the same user. Preventing password reuse increases account resiliency against brute force login attempts.

How to fix?

Set the aws_iam_account_password_policy password_reuse_prevention field to 24 to ensure the previous 24 passwords cannot be reused.

Example Configuration

resource "aws_iam_account_password_policy" "example" {
  password_reuse_prevention = 24
  # other required fields here
}