Skip to content
Sponsor
3.0 preview2.3.0 stable

These docs describe the preview. Pick the version you run and every page marks what it doesn't have yet. Get the preview →
Maester 2.x docs (archived) →

KRBTGT last logon should be investigated

AD-KRBTGT-02InfoActive DirectoryAccount security

Part of Active Directory · Active Directory · Account security · All checks

Run this check
Invoke-Maester -TestId AD-KRBTGT-02

The KRBTGT account is a service account that should never have interactive logons. It exists solely for the KDC service to use internally for Kerberos ticket operations. Any logon activity for this account may indicate:

Security Concerns:

  • Suspicious Activity: Interactive logons suggest potential compromise or misuse
  • Account Misuse: Administrators incorrectly attempting to use the account
  • Attack Indicators: Attackers may attempt to activate or use the account

The KRBTGT account should:

  • Always remain disabled (UAC = 514)
  • Never have interactive logons
  • Only be used internally by the KDC service

Operational

  1. Never enable the KRBTGT account:

    • Standard UAC should be 514 (disabled, normal account)
    • Enabling this account creates a significant security risk
  2. Monitor for logon attempts:

    • Any logon activity should be investigated immediately
    • Check security logs for attempted logons to this account
  3. Audit account changes:

    • Monitor for UAC changes
    • Alert on any modifications to the KRBTGT account

This test retrieves the KRBTGT account and checks:

  • Last logon timestamp (should be null/never)
  • Account enabled status (should be disabled)
  • Password last set date
  • Test-MtAdKrbtgtPasswordLastSet - Checks KRBTGT password age
  • Test-MtAdKrbtgtNonStandardUacCount - Validates KRBTGT UAC settings
Every attribute of this check
FieldValue
Test IDAD-KRBTGT-02
SeverityInfo
SuiteActive Directory
ProductActive Directory
FeatureAccount security
AreaAuthentication
Resource typeUser
MITRE ATT&CKT1078.001 Default Accounts
PowerShell testTest-MtAdKrbtgtLastLogon
ServicesActiveDirectory
PermissionsActiveDirectory:Ldap:user:ReadProperty