Skip to content

AD-USER-03: Non-expiring password user count should be retrievable

ID AD-USER-03
Severity Info
Suite Active Directory (on-premises)
Product Active Directory
Feature Users
Security area Authentication
Resource type User
MITRE ATT&CK T1078.002
Reads from On-premises Active Directory

Passwords that never expire reduce credential hygiene and increase the blast radius of password theft. While some service accounts may require non-expiring credentials, they should be rare, controlled, and closely monitored.

Detective

Minimize the use of non-expiring passwords. Where legacy constraints require them, migrate to managed service accounts, vaulting, or other compensating controls.

This test retrieves Active Directory user data from Get-MtADDomainState, filters to enabled users, and counts accounts where PasswordNeverExpires = $true. The output includes the count and percentage relative to enabled users.

  • Test-MtAdUserDormantEnabledCount
  • Test-MtAdUserPasswordNotRequiredCount
  • Test-MtAdUserNeverLoggedInCount

Mito check. Author: soulemike. Open-source licences.

Open-source licences. CIS Benchmark material © Center for Internet Security, Inc.; CISA SCuBA baselines are public domain (CC0).

© 2026 Virtual Petals. Mito is a Virtual Petals service, hosted in Microsoft Azure UAE North.