# 1.7 Ensure IAM password policy requires a minimum length of 14 or greater (Automated)

- Source: https://support.icompaas.com/support/solutions/articles/62000234167-1-7-ensure-iam-password-policy-requires-a-minimum-length-of-14-or-greater-automated-
- Section: [Solutions](https://support.icompaas.com/support/solutions) › [CIS Amazon Web Services Foundations Benchmark v5.0.0](https://support.icompaas.com/support/solutions/62000112684) › [CIS AWS Benchmarks](https://support.icompaas.com/support/solutions/folders/62000169233)
- Last updated: 2026-05-29
- Publisher: iCompaas, Inc. (https://www.icompaas.com)

#### Profile Applicability

-   **Level 1**
    

#### Description:

IAM password policies control the strength of passwords used by IAM users in an AWS environment. Requiring a minimum password length of 14 characters or more helps ensure that passwords are more resistant to brute-force and dictionary attacks.

By enforcing a password policy with a minimum length of 14 or greater, organizations can enhance their security posture by making it more difficult for attackers to guess or crack passwords.

#### Rationale:

Requiring strong, complex passwords is a basic but effective security control. Passwords with a length of at least 14 characters are more secure and harder for attackers to crack using common attack techniques, such as:

-   Brute-force attacks: Trying all possible combinations of characters
    
-   Dictionary attacks: Using common words or phrases
    
-   Credential stuffing: Reusing breached password data
    

By enforcing a minimum password length of 14 characters, organizations can mitigate these risks and ensure that IAM users are following a stronger password policy.

#### Impact:

If the IAM password policy does not require a minimum length of 14 characters:

-   Passwords may be easier to guess, increasing the risk of unauthorized access.
    
-   Brute-force or dictionary attacks are more likely to succeed on weak passwords.
    

Enforcing a 14-character minimum password length makes it harder for attackers to compromise accounts, improving overall security.

#### Default Value:

By default, AWS does not enforce a minimum password length unless specifically configured. The default IAM password policy may have a minimum length of 6 characters, which is considered insufficient for strong security.

#### Pre-Requisites:

-   AWS CLI installed and configured
    
-   IAM permissions to view and update IAM password policies
    
-   Access to the AWS Management Console or CLI to update the password policy
    

#### Remediation:

##### Test Plan:

Using AWS Console:

1.  Sign in to the [AWS Management Console](https://console.aws.amazon.com/).
    
2.  Navigate to IAM and select Account settings.
    
3.  Review the Password Policy settings.
    
    -   Ensure the Minimum password length is set to 14 or greater.
        
4.  If necessary, update the password policy to enforce the desired length.  
    

Using AWS CLI :

aws iam get-account-password-policy --query 'PasswordPolicy.MinimumPasswordLength' --output text

This command will return the current minimum password length. Ensure that the result is 14 or greater.

##### Implementation Plan:

Using AWS Console:

1.  Sign in to the [AWS Management Console](https://console.aws.amazon.com/).
    
2.  Go to IAM > Account settings > Password policy.
    
3.  Click Edit and set the Minimum password length to 14 or greater.
    
4.  Optionally, enable other password policy settings such as:
    
    -   Require at least one uppercase letter
        
    -   Require at least one number
        
    -   Require at least one special character
        
5.  Click Apply to save the changes.
    

Using AWS CLI :

aws iam update-account-password-policy --minimum-password-length 14

This command ensures that all IAM users are required to use passwords with a minimum length of 14 characters.

#### Backout Plan:

Using AWS Console:

1.  If the new password policy causes user login issues:
    
    -   Sign in to the IAM Console.
        
    -   Go to Account settings > Password policy.
        
    -   Temporarily lower the Minimum password length to a smaller value (e.g., 8 or 10) to troubleshoot any issues.
        
    -   Reapply the 14-character minimum once user issues are resolved.
        

Using AWS CLI:

1.  To temporarily revert the password policy if login issues arise:
    

aws iam update-account-password-policy --minimum-password-length 8

2.  Once the issue is resolved, revert the policy back to a minimum password length of 14:
    

aws iam update-account-password-policy --minimum-password-length 14

#### References:

-   [AWS IAM Password Policy Documentation](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_password-policy.html)
    
-   [AWS CLI: update-account-password-policy](https://docs.aws.amazon.com/cli/latest/reference/iam/update-account-password-policy.html)
    
-   [AWS IAM User Guide](https://docs.aws.amazon.com/IAM/latest/UserGuide/)
    

#### CIS Controls Mapping:

<table style="border:none;border-collapse:collapse"><tbody><tr style="height:25pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><p dir="ltr" style="line-height:1.38;text-align:justify;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-weight:700;font-family:&quot;Helvetica Neue&quot;">CIS Control Version</span></span></span></p></td><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><p dir="ltr" style="line-height:1.38;text-align:justify;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-weight:700;font-family:&quot;Helvetica Neue&quot;">Control ID</span></span></span></p></td><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><p dir="ltr" style="line-height:1.38;text-align:justify;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-weight:700;font-family:&quot;Helvetica Neue&quot;">Control Description</span></span></span></p></td></tr><tr style="height:25pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><p dir="ltr" style="line-height:1.38;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px;text-align:justify"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-weight:400;font-family:&quot;Helvetica Neue&quot;">CIS v8</span></span></span></p></td><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><p dir="ltr" style="line-height:1.38;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px;text-align:justify"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-weight:400;font-family:&quot;Helvetica Neue&quot;">4.5</span></span></span></p></td><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><p dir="ltr" style="line-height:1.38;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px;text-align:justify"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-weight:400;font-family:&quot;Helvetica Neue&quot;">Implement Strong Authentication for All Users</span></span></span></p></td></tr><tr style="height:25pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><p dir="ltr" style="line-height:1.38;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px;text-align:justify"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-weight:400;font-family:&quot;Helvetica Neue&quot;">CIS v8</span></span></span></p></td><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><p dir="ltr" style="line-height:1.38;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px;text-align:justify"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-weight:400;font-family:&quot;Helvetica Neue&quot;">4.6</span></span></span></p></td><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><p dir="ltr" style="line-height:1.38;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px;text-align:justify"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-weight:400;font-family:&quot;Helvetica Neue&quot;">Secure Authentication Methods for Cloud Accounts</span></span></span></p></td></tr><tr style="height:25pt"><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><p dir="ltr" style="line-height:1.38;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px;text-align:justify"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-weight:400;font-family:&quot;Helvetica Neue&quot;">CIS v7</span></span></span></p></td><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><p dir="ltr" style="line-height:1.38;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px;text-align:justify"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-weight:400;font-family:&quot;Helvetica Neue&quot;">4.3</span></span></span></p></td><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word"><p dir="ltr" style="line-height:1.38;margin-bottom:0pt;text-align:justify"><span style="font-family:&quot;Helvetica Neue&quot;;font-size:14px"><span dir="ltr" style="color:rgb(0, 0, 0);font-weight:400">Enforce Strong Passwords and Access Control Policies</span></span></p></td></tr></tbody></table>

## Related compliance guidance

- [SOC 2 compliance: a practical implementation guide for cloud-native SaaS teams](https://support.icompaas.com/compliance/soc-2-trust-services-criteria): Configuration checks like this one are the technical half of a SOC 2 / ISO 27001 programme — the guide shows where they fit, what else an auditor expects, and how to evidence them.
- [ISO/IEC 27001:2022 compliance: a practical implementation guide](https://support.icompaas.com/compliance/iso-27001-2022): ISO 27001 Annex A.8 (technological controls) is where cloud hardening evidence lands; the guide shows how to run the ISMS around it.
