Skip to main content
Version: 2.2.1-preview

AD-USER-07 - No pre-authentication user count should be retrievable

Overview​

Accounts that do not require Kerberos pre-authentication are directly exposed to AS-REP roasting. Attackers can request offline-crackable material without first proving knowledge of the password.

Security Recommendation​

Require pre-authentication for all accounts unless there is a justified exception. Review and remove legacy settings that disable this protection.

How the Test Works​

This test retrieves Active Directory user data from Get-MtADDomainState and counts users where DoesNotRequirePreAuth = $true or the corresponding userAccountControl bit is set.

  • Test-MtAdUserDelegationAllowedCount
  • Test-MtAdUserKerberosDesOnlyCount
  • Test-MtAdUserPasswordNotRequiredCount

Test Metadata​

FieldValue
Test IDAD-USER-07
SeverityHigh
SuiteActive Directory
CategoryAD.User
PowerShell testTest-MtAdUserNoPreAuthCount
TagsAD, AD-USER-07, AD.User

Source​

  • Pester test: tests/ad/user/Test-MtAdUserNoPreAuthCount.Tests.ps1
  • PowerShell source: powershell/public/ad/user/Test-MtAdUserNoPreAuthCount.ps1