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.
On this page 16 sections
- ·Why Kerberos attacks matter
- ·Prerequisites
- ·Lab setup
- ·Build the target
- 1Confirm Kerberos reachability and clock sync
- 2Kerberoast — request a service ticket for an SPN account
- Locked: Crack the Kerberoast hash offline
- Locked: AS-REP roast an account with preauthentication disabled
- Locked: Pass-the-Ticket — reuse a cached ticket instead of a password
- Locked: Find accounts trusted for delegation
- Locked: Understand constrained delegation abuse
- Locked: Understand Golden Ticket persistence
- Locked: Detection and defence
- Locked: Check
- Locked: Clean-up
- 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
- Finish Active Directory Fundamentals. It explains the Kerberos message flow (AS-REQ, AS-REP, TGS-REQ, TGS-REP) that every attack in this lab abuses.
- Finish Active Directory Basics. You need a low-privilege domain account and comfort with Impacket from that lab.
- Read Password Cracking Lab if cracking a hash offline with Hashcat is new to you.
Lab setup
| Item | Purpose |
|---|---|
Impacket (GetUserSPNs.py, GetNPUsers.py, getTGT.py, findDelegation.py, getST.py, ticketer.py) | Requests, caches, and forges Kerberos tickets |
hashcat | Cracks the roasted hashes offline |
smbclient.py | Proves a cached ticket works, with no password |
| A Kali machine with its clock synced to the domain | Kerberos 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:
| Host | Role |
|---|---|
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, passwordSummer2026!. Use your own password and put it in the commands. - A service account
svc_sqlwith a Service Principal NameMSSQLSvc/sql01.corp.local:1433(the namesql01.corp.localneed not be a real host; it only has to appear in the SPN) and a crackable password that is inrockyou.txt, for exampleSpring2026!(Step 3). - A service account
svc_backupwith Kerberos preauthentication disabled (DONT_REQ_PREAUTH), a crackable password inrockyou.txt, for exampleSummer2025!(Step 4), and constrained delegation tocifs/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
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.10Example 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.10Port 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
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.txtExample 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.