Course contentsShow
← Security
Lesson 2124 of 3,05242. Penetration Testing and Red TeamingFree lesson

Kerberoasting and AS-REP Roasting

Extracting service account credentials and crackable hashes from Active Directory Kerberos implementations.

Kerberoasting and AS-REP Roasting

You'll learn how attackers extract and crack service account passwords from Active Directory without needing admin privileges.

What Are These Attacks?

Once you've enumerated a domain (lesson 2123), you can target Kerberos authentication weaknesses to harvest crackable password hashes. Think of it like this: Kerberos hands out encrypted tickets that prove your identity. Some tickets are encrypted with passwords that aren't your own—and if those passwords are weak, you can crack them offline.

Kerberoasting targets service accounts. When you request a service ticket (TGS) for a Service Principal Name (SPN), Active Directory encrypts it with that service account's password hash. You can request these tickets for any SPN you can see, save them, and crack them offline using tools like hashcat. If the service account has a weak password ("Summer2023!"), you'll recover it.

AS-REP Roasting targets user accounts with "Do not require Kerberos preauthentication" enabled. Normally, you prove you know your password before getting a ticket. But misconfigured accounts skip this step, letting attackers request an AS-REP response encrypted with the user's password hash—again, crackable offline.

Why These Work

These aren't exploitation bugs—they're design features being abused. You're not crashing systems or bypassing authentication directly. You're simply asking for data you're technically allowed to request, then attacking the cryptography offline where no one's watching.

The Danger

Service accounts often have elevated privileges. Cracking one can hand you domain admin rights. AS-REP roasting is rarer but equally dangerous when it succeeds.

Key Takeaway: Kerberoasting and AS-REP Roasting exploit Kerberos mechanics to extract crackable hashes from service and misconfigured user accounts, enabling offline password attacks without triggering most defenses.