AD-PWDPOL-03 - Password minimum length should be retrievable
Overviewβ
Minimum password length is one of the most effective controls against password-based attacks:
- Brute-force resistance: Each additional character exponentially increases the time required to brute-force a password
- Dictionary attack protection: Longer passwords are less likely to appear in common password dictionaries
- Modern standard: NIST and Microsoft now recommend longer passwords over complex character requirements
A minimum of 14 characters aligns with current NIST guidelines and provides significantly better security than the traditional 8-character minimum. Passphrases (multiple words strung together) are an excellent way to achieve length while maintaining memorability.
Security Recommendationβ
Configure the minimum password length to at least 14 characters (NIST SP 800-63B recommendation). Consider:
- Using passphrases instead of complex passwords
- Combining length with complexity for maximum security
- Educating users on creating memorable long passwords
To configure this setting:
- Open Group Policy Management
- Navigate to the Default Domain Policy
- Edit: Computer Configuration > Policies > Windows Settings > Security Settings > Account Policies > Password Policy
- Set Minimum password length to 14 or more
How the Test Worksβ
This test retrieves the default domain password policy using Get-ADDefaultDomainPasswordPolicy and extracts the MinPasswordLength value. The test reports:
- Current minimum password length
- Recommended minimum (14 characters)
- Whether the configuration meets security best practices
Related Testsβ
Test-MtAdPasswordHistoryCount- Checks password history enforcementTest-MtAdPasswordMaxAge- Checks maximum password ageTest-MtAdPasswordComplexityRequired- Checks if password complexity is enforced
Test Metadataβ
| Field | Value |
|---|---|
| Test ID | AD-PWDPOL-03 |
| Severity | Info |
| Suite | Active Directory |
| Category | AD.PasswordPolicy |
| PowerShell test | Test-MtAdPasswordMinLength |
| Tags | AD, AD-PWDPOL-03, AD.PasswordPolicy |
Sourceβ
- Pester test:
tests/ad/passwordpolicy/Test-MtAdPasswordMinLength.Tests.ps1 - PowerShell source:
powershell/public/ad/passwordpolicy/Test-MtAdPasswordMinLength.ps1

