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
- Password length, not complexity. A 25-character gMSA or passphrase-style service password puts RC4 out of reach permanently.
- gMSA everywhere possible. The KDS-rotated 240-char key removes the oracle.
- Kill the RC4 oracle. Force AES via
msDS-SupportedEncryptionTypes = 24and reset the password so AES keys exist. Hunt for remaining RC4 requests: event4769with ticket encryption type0x17on your DCs. - Detection as the tripwire, not the wall. Alert on
4769bursts from single accounts, and plant honey SPNs — fake SPNs on decoy accounts that nobody legitimately requests. AnyTGS-REQfor 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?
Keep reading
Related articles from the SudoSecurity blog.
A Password-Free Path to Root: Inside the macOS Screen Sharing Vulnerability Now Under Attack
A logic bug in screensharingd let attackers skip authentication entirely and land as root — no password required. Here's how it was found, patched, reverse-engineered, and finally weaponized.
CVE-2026-31431 "Copy Fail": How a 9-Year-Old Linux Kernel Bug Gives Any Local User Root in 732 Bytes
CVE-2026-31431 chains AF_ALG, splice(), and authencesn's ESN scratch write into a deterministic 4-byte page cache write that gives an unprivileged local user root. Full technical breakdown, exploit mechanics, detection, mitigation, and patch status per distro.
BlueHammer: The Unpatched Windows Zero-Day That Weaponizes Microsoft Defender Against Your Own System
BlueHammer is an unpatched, publicly released Windows local privilege escalation exploit that chains Microsoft Defender's update workflow, Volume Shadow Copy, Cloud Files callbacks, and opportunistic locks to reach NT AUTHORITY\SYSTEM from a standard user account.
What is Privilege Escalation? How Attackers Go From Foothold to Full Control
An attacker starts with a low-privileged shell or user account and escalates to root or Administrator using misconfigurations, SUID binaries, kernel exploits, and Active Directory attacks. Here's every technique, the tools professionals use, and how to harden against it.