Lion Cipher Lab

Kerberoast service accounts and crack the tickets in your own AD lab

Why it matters

Kerberoasting is one of the most reliable privilege-escalation moves in the whole Active Directory playbook, and it is devastating precisely because it abuses Kerberos working exactly as designed. Active Directory uses Kerberos to authenticate users to services, and every account that runs a service -- a SQL Server, a web app pool, a backup agent -- can carry a Service Principal Name (SPN) that ties the service to that account. Here is the catch that makes the technique work: any authenticated domain user, however low-privileged, is allowed to ask a domain controller for a service ticket for…

What you'll learn

Steps in this lab

  1. First: this is your lab, and Kerberoasting is a real domain-escalation technique
  2. The words you need: Kerberos, KDC, TGT, SPN, TGS and TGS-REP
  3. Why any user can do this, and why the crack is offline and silent
  4. Set up the target: a service account with an SPN and a DELIBERATELY weak password
  5. Request and export the tickets with impacket GetUserSPNs.py
  6. Crack it offline with hashcat -- and measure how fast weak falls
  7. Fix and re-measure: strong password or a gMSA, AES over RC4, remove dead SPNs, watch 4769
  8. The honest negative, when to reach for it, and how a pro does it better

Open the full interactive lab →