AD-PWDPOL-05 - Password reversible encryption status should be retrievable
Overviewโ
Reversible encryption for passwords is one of the most dangerous settings in Active Directory:
- Complete password exposure: Unlike one-way hashes, reversible encryption allows passwords to be decrypted by anyone with access to the encryption key
- Domain compromise risk: If an attacker gains access to the domain, they can extract all passwords stored with reversible encryption
- No security benefit: This setting exists only for legacy application compatibility and provides no security benefit
This setting should never be enabled in a production environment. If legacy applications require it, consider alternative authentication methods or application modernization.
Security Recommendationโ
Disable reversible encryption immediately unless you have a documented, approved exception for a specific legacy application.
To verify and 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
- Ensure Store passwords using reversible encryption is Disabled
If you find this enabled:
- Document all affected user accounts
- Identify which applications require this setting
- Plan migration to modern authentication methods
- Disable the setting and reset all affected passwords
How the Test Worksโ
This test retrieves the default domain password policy using Get-ADDefaultDomainPasswordPolicy and checks the ReversibleEncryptionEnabled property. The test reports:
- Whether reversible encryption is currently enabled or disabled
- Recommended setting (Disabled)
- Critical security warning if enabled
Related Testsโ
Test-MtAdPasswordComplexityRequired- Checks password complexity requirementsTest-MtAdPasswordMinLength- Checks minimum password length
Test Metadataโ
| Field | Value |
|---|---|
| Test ID | AD-PWDPOL-05 |
| Severity | Info |
| Suite | Active Directory |
| Category | AD.PasswordPolicy |
| PowerShell test | Test-MtAdPasswordReversibleEncryption |
| Tags | AD, AD-PWDPOL-05, AD.PasswordPolicy |
Sourceโ
- Pester test:
tests/ad/passwordpolicy/Test-MtAdPasswordReversibleEncryption.Tests.ps1 - PowerShell source:
powershell/public/ad/passwordpolicy/Test-MtAdPasswordReversibleEncryption.ps1

