MEDIUM
Source
Trivy/CSPM
CSPM ID
password-requires-numbers
Frameworks

CIS AWS 1.2

ID
AVD-AWS-0059

IAM Password policy should have requirement for at least one number in the password.

IAM account password policies should ensure that passwords content including at least one number.

Impact

Short, simple passwords are easier to compromise

Follow the appropriate remediation steps below to resolve the issue.

  1. Log in to the AWS Management Console.

  2. Select the “Services” option and search for IAM. Step

  3. Scroll down the left navigation panel and choose “Account Settings” under “Access management”. Step

  4. Under the “Password Policy” configuration panel scroll down and click on “Change password policy” button.Step

  5. Under the “Password Policy” configuration panel scroll down and check the “Require at least one number”. If the checkbox is not selected than the password policy does not enforce the use of numbers in password.Step

  6. Click on the checkbox next to “Require at least one number” so “Password Policy” requires at least one number to make the password more strong and secure. Step

  7. Click on the “Save changes” button to make the necessary changes.Step

  8. Now “Password Policy” ensures that the password requires at least one number.

Enforce longer, more complex passwords in the policy

1
2
3
4
5
6
 resource "aws_iam_account_password_policy" "good_example" {
 	# ...
 	require_numbers = true
 	# ...
 }