Review the IAM password minimum length

Set the minimum length of IAM users’ console passwords to meet your organization’s requirements.

Description

minimumPasswordLength sets the minimum length of IAM users’ console passwords. If you omit it, check the effective account policy. Root passwords and access keys are managed separately.

Potential impact

A minimum below your organization’s requirement can allow short, easily guessed passwords.

Remediation

Set minimumPasswordLength to your required length and use MFA. IAM checks the new length when users create or change a password. Plan separate resets for any existing passwords that must change immediately.

Examples

Before

yaml
name: aws-eks
runtime: yaml
resources:
  example:
    type: aws:iam:AccountPasswordPolicy
    properties:
      minimumPasswordLength: 10

After

yaml
name: aws-eks
runtime: yaml
resources:
  example:
    type: aws:iam:AccountPasswordPolicy
    properties:
      minimumPasswordLength: 14

The minimum increases from 10 to 14 in this example, which assumes an organizational requirement of 14 characters.

References