Pcornel
Security · Active Directory Security

Kerberoasting

Cheat sheet · https://pcornel.dk/topic.php?topic=4521

Back to the Topic

Answer

Kerberoasting requests service tickets for accounts with SPNs and cracks them offline to recover service account passwords. Use gMSAs or long random passwords, AES encryption and monitor unusual ticket requests.

Remember

  • Any user can request service tickets for SPN accounts.
  • Weak service passwords crack offline.
  • gMSAs make Kerberoasting useless.

First checks

  • Get-ADUser -Filter {ServicePrincipalName -like '*'} -Properties ServicePrincipalName,msDS-SupportedEncryptionTypes — roastable accounts
  • Get-WinEvent -FilterHashtable @{LogName='Security';Id=4769} | ? {$_.Properties[5].Value -eq '0x17'} — RC4 service ticket requests
  • Password length of SPN accounts — 25+ chars

Verify in this order

attacker → TGS request for SPN → offline cracking

Where it usually breaks

First mismatch in identity lifecycle → authenticator/credential → IdP/federation/session → authorization policy → target resource → audit trail; preserve identity/policy/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4521

Confirmation

Confirm action

Continue?