MEDIUM
Source
Trivy/CSPM
CSPM ID
minimum-password-length
Frameworks

CIS AWS 1.2

CIS AWS 1.4

ID
AVD-AWS-0063

IAM Password policy should have minimum password length of 14 or more characters.

IAM account password policies should ensure that passwords have a minimum length.

The account password policy should be set to enforce minimum password length of at least 14 characters.

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. On the “Set password policy” page scroll down and check the “Enforce minimum password length”. If the password length is set less than 8 characters than the password security is at risk. Step

  6. Mention the minimum characters required to 14 in the textbox. Click the checkbox against “Require at least one uppercase letter” and “Require at least one lowercase letter” to make the password more secure. Step

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

  8. Now “Password Policy” requires at least 14 characters with one uppercase and one lowercase character for a strong and secure password.

Enforce longer, more complex passwords in the policy

1
2
3
4
resource "aws_iam_account_password_policy" "good_example" {
	minimum_password_length = 14
}