Pcornel
Security · Active Directory Security

Kerberos

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

Back to the Topic

Answer

Kerberos tickets are encrypted with keys derived from account passwords: ticket-granting tickets with the krbtgt key, service tickets with the service account's key. The well-known attacks on Active Directory go after those keys.

Remember

Any domain user can request a service ticket and try to guess the service account's password offline — so service accounts need long random passwords, or group managed service accounts. Disable RC4. Avoid unconstrained delegation. After a compromise, reset krbtgt twice.

First checks

  • klist — cached tickets
  • setspn -Q */<host> — SPNs
  • Get-WinEvent -FilterHashtable @{LogName='Security';Id=4768,4769,4771} -MaxEvents 20 — Kerberos events

Verify in this order

client → AS-REQ → TGT → TGS-REQ → service ticket → service

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=415

Confirmation

Confirm action

Continue?