0Pricing
Cyber Security Academy · Lesson

Kerberos and Kerberoasting

Cracking service account tickets.

Kerberos and Kerberoasting is a free Cyber Security 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 Cyber Security Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

Kerberos in One Picture

Kerberos is a ticket-based authentication protocol. Instead of sending passwords, clients present cryptographic tickets issued by the Key Distribution Center (KDC), which runs on every Domain Controller.

  • The Authentication Server (AS) issues a Ticket Granting Ticket (TGT).
  • The Ticket Granting Server (TGS) issues service tickets.
  • Services validate tickets without contacting the DC.

The Three Exchanges

Kerberos has three message exchanges. Understanding them reveals where attacks fit.

  • AS-REQ / AS-REP: client proves identity (pre-auth) and gets a TGT encrypted with the krbtgt key.
  • TGS-REQ / TGS-REP: client presents the TGT to request a service ticket (TGS).
  • AP-REQ / AP-REP: client presents the TGS to the service.

AS-REP roasting attacks the first exchange; Kerberoasting attacks the second.

Service Principal Names

A Service Principal Name (SPN) maps a service instance to the account running it. When you request a TGS for an SPN, the resulting ticket is partly encrypted with the service account's password hash.

This is the crux of Kerberoasting: any authenticated user can request tickets for service accounts, then crack them offline to recover the plaintext password.

# Find accounts with SPNs set
Get-DomainUser -SPN | select samaccountname,serviceprincipalname

Kerberoasting Workflow

Kerberoasting is low-noise because requesting a TGS is normal behavior. The attack steps are:

  • Enumerate user accounts with SPNs.
  • Request TGS tickets for those SPNs.
  • Extract the encrypted ticket blobs.
  • Crack them offline with a wordlist; no DC interaction needed during cracking.
# Rubeus: request and dump kerberoastable hashes
Rubeus.exe kerberoast /outfile:hashes.txt

# Impacket from Linux
GetUserSPNs.py domain/user:pass -dc-ip 10.0.0.10 -request

Cracking the Tickets

The captured ticket uses the service account password as the key. Offline cracking tries candidate passwords until one decrypts the ticket correctly.

Service accounts often have weak, never-rotated passwords, which makes them crack quickly.

# Hashcat mode 13100 = Kerberos 5 TGS-REP etype 23 (RC4)
hashcat -m 13100 hashes.txt rockyou.txt

# etype 18 (AES256) uses mode 19700
hashcat -m 19700 hashes_aes.txt rockyou.txt

Encryption Types Matter

The cipher used for the ticket affects crack speed.

  • RC4 (etype 23) is fast to crack and is a red flag if still allowed.
  • AES (etype 17/18) is far slower to brute-force.
  • Attackers may downgrade requests to RC4 with /tgtdeleg or msDS-SupportedEncryptionTypes abuse.

Defenders should disable RC4 domain-wide and enforce AES.

AS-REP Roasting

A related attack targets accounts with Kerberos pre-authentication disabled (DONT_REQ_PREAUTH). Without pre-auth, the AS-REP contains data encrypted with the user's password hash, obtainable without any credentials.

# Rubeus AS-REP roast
Rubeus.exe asreproast /format:hashcat /outfile:asrep.txt

# Hashcat mode 18200
hashcat -m 18200 asrep.txt rockyou.txt

Why It Works So Often

Kerberoasting succeeds because of structural weaknesses, not protocol flaws.

  • Any authenticated principal can request any service ticket by design.
  • Service accounts are frequently set up once with a weak password and never rotated.
  • Many run with high privileges (e.g., SQL service accounts in Domain Admins).
  • Cracking is fully offline, so account lockout never triggers.

Detection Strategies

Defenders can catch roasting through telemetry on TGS requests.

  • Monitor event 4769 for RC4 (0x17) ticket requests, especially in bursts from one account.
  • Alert on a single principal requesting many distinct SPNs quickly.
  • Deploy honeypot SPN accounts that no legitimate service uses; any request is malicious.

Hardening Service Accounts

The durable fix is removing the conditions that make tickets crackable.

  • Use Group Managed Service Accounts (gMSA) with 120+ character auto-rotated passwords.
  • Enforce long, complex passwords on any remaining classic service accounts.
  • Disable RC4; require AES encryption types.
  • Remove unneeded SPNs and least-privilege the accounts.

Operating Ethically

During authorized testing, crack tickets in an isolated environment and never exfiltrate plaintext credentials beyond the engagement scope. Report which accounts cracked and how fast, so the client can prioritize gMSA migration.

Treat cracked passwords as sensitive: store them encrypted and purge them after reporting.

Quick Check

Confirm your grasp of Kerberoasting mechanics.

Recap

You learned how Kerberos issues tickets and how that mechanism is abused.

  • SPN tickets are encrypted with service account hashes, enabling offline cracking.
  • RC4 tickets crack fast; AES and gMSA are the defenses.
  • AS-REP roasting needs no credentials when pre-auth is disabled.
  • Honeypot SPNs and 4769 RC4 monitoring catch the attack.

Next we cover reusing stolen credentials with Pass-the-Hash and Pass-the-Ticket.

Frequently asked questions

Is the “Kerberos and Kerberoasting” lesson free?

Yes — the full text of “Kerberos and Kerberoasting” is free to read here on the web, and the Cyber Security 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 Cyber Security Academy course, upgrade to CoddyKit PRO.

What will I learn in “Kerberos and Kerberoasting”?

Cracking service account tickets. You practise Cyber Security 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 Cyber Security Academy?

No prior experience is required. Cyber Security 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 “Kerberos and 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 Cyber Security Academy lesson?

Yes. Every Cyber Security 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

  1. Active Directory Attack Surface
  2. Kerberos and Kerberoasting
  3. Pass-the-Hash and Pass-the-Ticket
  4. Privilege Escalation and Domain Dominance
← Back to Cyber Security Academy