Skip to main content
Version: 2.2.1-preview

AD-KRBTGT-03 - KRBTGT should have standard UAC settings (disabled account)

Overviewโ€‹

  • The KRBTGT account must have specific User Account Control (UAC) settings to maintain security. The standard UAC value for KRBTGT is 514, which represents:

  • NORMAL_ACCOUNT (0x0200 = 512): Standard user account

  • ACCOUNTDISABLE (0x0002 = 2): Account is disabled

  • Combined: 514 (0x0202)

Security Risks of Non-Standard UAC:

  • Enabled Account: KRBTGT should never be enabled
  • Delegation Flags: Could allow dangerous delegation configurations
  • Password Flags: DONT_EXPIRE_PASSWORD could prevent required rotations
  • Tampering Indicator: Non-standard UAC may suggest malicious modification

Security Recommendationโ€‹

  1. Maintain standard UAC (514):

    • Account must remain disabled
    • No additional flags should be set
    • Regular audits of UAC settings
  2. Investigate non-standard UAC immediately:

    • Determine who made changes
    • Assess if compromise has occurred
    • Reset UAC to standard value (514)
  3. Monitor for changes:

    • Implement alerts for KRBTGT account modifications
    • Include UAC changes in security monitoring

How the Test Worksโ€‹

This test retrieves the KRBTGT account and:

  • Compares current UAC against standard value (514)
  • Decodes and displays all UAC flags
  • Reports any non-standard configurations
  • Test-MtAdKrbtgtPasswordLastSet - Checks KRBTGT password age
  • Test-MtAdKrbtgtLastLogon - Verifies no interactive logons

Test Metadataโ€‹

FieldValue
Test IDAD-KRBTGT-03
SeverityUnknown
SuiteActive Directory
CategoryAD.Security
PowerShell testTest-MtAdKrbtgtNonStandardUacCount
TagsAD, AD-KRBTGT-03, AD.Security

Sourceโ€‹

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