AD-USER-09 - Password-not-required user count should be retrievable
Overviewโ
Accounts that do not require passwords are a severe security weakness. Even if rarely used, they represent a misconfiguration that can undermine core authentication protections.
Security Recommendationโ
Investigate every account with PasswordNotRequired set. Require passwords, rotate credentials, and validate that no workflow depends on this unsafe configuration.
How the Test Worksโ
This test retrieves Active Directory user data from Get-MtADDomainState and counts accounts where PasswordNotRequired = $true. The output shows the total count and percentage of affected users.
Related Testsโ
Test-MtAdUserPasswordNeverExpiresCountTest-MtAdUserNoPreAuthCountTest-MtAdUserReversibleEncryptionCount
Test Metadataโ
| Field | Value |
|---|---|
| Test ID | AD-USER-09 |
| Severity | Info |
| Suite | Active Directory |
| Category | AD.User |
| PowerShell test | Test-MtAdUserPasswordNotRequiredCount |
| Tags | AD, AD-USER-09, AD.User |
Sourceโ
- Pester test:
tests/ad/user/Test-MtAdUserPasswordNotRequiredCount.Tests.ps1 - PowerShell source:
powershell/public/ad/user/Test-MtAdUserPasswordNotRequiredCount.ps1

