Other Articles

Enforce Password Length

This check ensures that a strong minimum password length is enforced for AWS IAM users. Longer passwords significantly reduce the risk of brute-force and credential-stuffing attacks.

Check Details

  • Resource: General
  • Check: Enforce password length
  • Risk: Weak passwords increase the risk of account compromise

Remediation via AWS Console

  1. Log in to the AWS Management Console and search for IAM. AWS IAM Console
  2. In the left navigation pane, select Account settings. AWS IAM Account Setting
  3. Under Password policy, click Edit.
  4. Select Custom password policy.
  5. Set Minimum password length to 14 characters or greater. Password Policy
  6. Click Save changes.

Remediation via AWS CLI

  1. Log in to the AWS Management Console and click the CloudShell icon (>_) in the top-right corner. AWS CloudShell icon
  2. Update the account password policy to enforce a minimum password length:
    
    
    aws iam update-account-password-policy \
     --minimum-password-length 14
    

This setting applies to all IAM users in the AWS account.