Kerberoasting
Crack service tickets.
Kerberoasting is a free Ethical Hacking Academy lesson on CoddyKit — lesson 2 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Ethical Hacking Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.
What Is Kerberoasting?
Kerberoasting is an attack that targets service accounts in Active Directory. Any authenticated domain user can request a service ticket for an account that has a Service Principal Name (SPN).
Part of that ticket is encrypted with the service account's password hash, so the attacker can crack it offline without ever touching the account.
Why It Works
When a user requests a service ticket (TGS), the KDC encrypts part of it with the NTLM hash of the service account's password.
Because any domain user can request this ticket, and because no special privileges are needed, the attacker simply collects tickets and cracks them at leisure on their own machine.
Finding SPN Accounts
First, enumerate accounts that have SPNs set. These are usually service accounts running SQL, web, or other services.
User accounts (not machine accounts) with SPNs are ideal targets, because their passwords are often set by humans and rarely rotated.
# PowerView
Get-DomainUser -SPN | select samaccountname,serviceprincipalnameRequesting Tickets with Rubeus
Rubeus is a popular C# tool for Kerberos abuse. The kerberoast command requests TGS tickets for SPN accounts and outputs them in a crackable format.
This step is quiet: it looks like normal Kerberos traffic from a legitimate user.
Rubeus.exe kerberoast /outfile:hashes.txtRequesting Tickets with Impacket
From Linux, Impacket's GetUserSPNs.py performs the same attack remotely using valid domain credentials.
This is handy during external or assumed-breach engagements where you already have one set of low-privileged credentials.
GetUserSPNs.py corp.local/lowuser:Password1 -dc-ip 10.0.0.10 -requestThe Hash Format
The captured ticket is saved in a format Hashcat recognizes as mode 13100 (Kerberos 5 TGS-REP etype 23, RC4).
Each hash begins with $krb5tgs$23$ followed by the SPN, account, and encrypted blob. This is what you feed to your cracker.
$krb5tgs$23$*svc_sql$CORP.LOCAL$MSSQL/...*$a1b2c3...Cracking with Hashcat
Offline cracking uses a wordlist (often with rules) against the captured hashes. Because RC4 tickets are fast to test, weak service passwords fall quickly.
This is why service account passwords should be long and random, ideally managed by Group Managed Service Accounts (gMSA).
hashcat -m 13100 hashes.txt rockyou.txt -r best64.ruleEncryption Types Matter
If the account supports RC4 (etype 23), cracking is fast. If it only allows AES (etype 17/18), cracking is far slower but still possible (Hashcat modes 19600/19700).
Attackers may even downgrade the requested encryption type to force the weaker RC4 ticket.
Detection and Defense
Defenders watch for unusual volumes of TGS requests, especially for RC4 tickets (event ID 4769). Mitigations include:
- Long, random service account passwords (25+ characters).
- Using gMSA accounts with automatic rotation.
- Disabling RC4 and enforcing AES.
Why Service Accounts?
Service accounts are attractive because they are frequently members of privileged groups, have stale passwords, and are not tied to a single human who would notice anomalies.
Cracking one can hand you Domain Admin if the service account was carelessly over-privileged.
Where It Fits in an Attack
Kerberoasting is usually performed soon after gaining any domain foothold. It is low-noise enumeration plus offline cracking, so it rarely trips alerts.
A cracked service account often yields lateral movement or privilege escalation, making it a staple of internal pentests and red team engagements.
Quick Check
Recall the core requirement for Kerberoasting.
Recap
You now understand Kerberoasting:
- Any domain user can request TGS tickets for SPN accounts.
- Tickets are encrypted with the service account hash and cracked offline.
- Tools: Rubeus, Impacket GetUserSPNs.py, cracked with Hashcat mode 13100.
- Defend with long passwords, gMSA, and AES-only encryption.
Next you will reuse credentials directly with Pass-the-Hash.
Frequently asked questions
Is the “Kerberoasting” lesson free?
Yes — the full text of “Kerberoasting” is free to read here on the web, and the Ethical Hacking Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Ethical Hacking Academy course, upgrade to CoddyKit PRO.
What will I learn in “Kerberoasting”?
Crack service tickets. You practise Ethical Hacking Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.
Do I need any experience to start Ethical Hacking Academy?
No prior experience is required. Ethical Hacking Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 2 of 4, so you can start here or from the beginning and move at your own pace.
How long does the “Kerberoasting” lesson take?
Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.
Can I write and run code in this Ethical Hacking Academy lesson?
Yes. Every Ethical Hacking Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.
All lessons in this course
- AD Fundamentals
- Kerberoasting
- Pass-the-Hash
- BloodHound