Skip to content

Lesson 4 of 13 · 15m

Kerberoasting

Requesting service tickets to crack offline — why any domain user can do it, what the crack actually costs, and what stops it.

Here is the attack, start to finish. Any authenticated domain user — including a freshly-phished receptionist account — sends a TGS-REQ for every SPN in the directory. Each TGS-REP contains a service ticket encrypted with a key derived from the service account's password. Take the tickets home. Crack them offline at GPU speed. Come back with the service account's cleartext password, which usually has more privileges than the receptionist and frequently has Domain Admins membership because somebody needed it "temporarily" in 2019.

Why it works

The ticket is encrypted for the service, not for the requester — that is the mechanism. The KDC cannot refuse a ticket request from an authenticated user; authorization checks happen at the service, not the KDC. So ticket issuance is unauthenticated in effect, and every ticket handed out is a password oracle.

Tim Medin presented the technique at DerbyCon 2014, and it worked then for the same reason it works now: the attacker converts "any domain credential" into "offline brute-force against service passwords" with a single LDAP query and some Kerberos requests. Rubeus kerberoast or Impacket GetUserSPNs.py corp.local/user:pass -dc-ip 10.0.0.1 -request both do it in one command. The output formats — $krb5tgs$23$ for RC4 — drop straight into Hashcat.

The wrong mental model: "kerberoasting is a Kerberos vulnerability Microsoft needs to patch." There is no CVE. The protocol does what it is specified to do. The weakness is the password behind the SPN. Every fix targets the key material or the SPN inventory, not the ticket exchange.

What the crack costs

RC4 tickets (etype 23): one MD4 computation per candidate. A single RTX-class rig tests 10–30 billion candidates per second against Hashcat mode 13100. An 8-character service password falls in hours. A 14-character Password123!-class password falls in days.

AES tickets (etype 18): PBKDF2-derived keys, ~1000× slower per guess. Same weak password becomes impractical; a 20-character random password becomes a research project. This is why msDS-SupportedEncryptionTypes and password length are the actual controls — not "monitoring for kerberoasting" as a first line.

The real-world evidence

Kerberoasting is in nearly every red team report since 2014 and in real intrusions — it featured in the 2018 indictment of the GRU's APT28 operations (DOJ documented GetUserSPNs-style attacks), and CISA's AA23 advisories on Volt Typhoon describe roasting for lateral movement against critical infrastructure. It persists because the prerequisites — one valid credential, one weak service password — persist.

The RC4 downgrade

Attackers can request the cheap oracle directly: GetUserSPNs.py and Rubeus let you specify etype 23, and the KDC will hand back an RC4 ticket whenever the service account has an NT hash in its key list — which is every account; the NT hash always exists. Forcing msDS-SupportedEncryptionTypes to AES-only tells the KDC to stop issuing RC4 tickets for the account — it does not remove the NT hash, it removes the KDC's willingness to encrypt with it. That is why the flag change without the password reset is incomplete: AES keys are derived at password-set time, and the reset is what puts them in the key list for the KDC to use. Check 4769 events with ticket encryption 0x17 — every one is either a legacy client or an attacker choosing the fast crack.

What actually stops it

  1. Password length, not complexity. A 25-character gMSA or passphrase-style service password puts RC4 out of reach permanently.
  2. gMSA everywhere possible. The KDS-rotated 240-char key removes the oracle.
  3. Kill the RC4 oracle. Force AES via msDS-SupportedEncryptionTypes = 24 and reset the password so AES keys exist. Hunt for remaining RC4 requests: event 4769 with ticket encryption type 0x17 on your DCs.
  4. Detection as the tripwire, not the wall. Alert on 4769 bursts from single accounts, and plant honey SPNs — fake SPNs on decoy accounts that nobody legitimately requests. Any TGS-REQ for one is an attack by definition.

Then verify your own estate: run GetUserSPNs.py against a test account and see which tickets come back RC4. The ones that crack in Hashcat inside an hour are the accounts your adversary already found.

Was this lesson helpful?

Sign in to rate

Keep reading

Related articles from the SudoSecurity blog.