Lesson 1 of 13 · 15m
Kerberos on the Wire
What actually crosses the network when a domain user logs in — the AS/TGS exchange, who encrypts what, and which parts an attacker can replay.
Drop into a packet capture on any domain-joined machine at logon and you will see the same four messages every time: AS-REQ, AS-REP, TGS-REQ, TGS-REP. The client talks to a KDC — which is just a domain controller — and walks out holding tickets it can present to services without the password ever leaving the box. Everything about Active Directory attack chains is downstream of what each of those messages contains, who encrypts which part, and which key material ends up where.
AS-REQ and AS-REP: proving the password without sending it
The client sends AS-REQ containing a timestamp encrypted with a key derived from the user's password (the NT hash for RC4 requests, the salted AES key for AES). The KDC decrypts it. If the timestamp is within five minutes of KDC time and decryption succeeds, the password is proven. This is pre-authentication, and it matters: an account with DONT_REQ_PREAUTH set gets an AS-REP for the asking, which is AS-REP roasting — covered later.
The AS-REP contains two things a defender should be able to name:
- The TGT — a blob encrypted with the
krbtgtaccount's key. The client cannot read it. It is effectively "the KDC vouches for this user, expiry included" in a form only the KDC can inspect. - A session key — encrypted with the user's key, copied inside the TGT. This is how client and KDC share a secret for subsequent requests without the password.
The wrong mental model here is "Kerberos sends the password to the DC over TLS-like encryption." Nothing like that happens. The password-derived key encrypts a timestamp; the DC already stores the same key material and just checks whether the crypto works. Offline cracking of Kerberos exists precisely because the AS-REP hands an attacker ciphertext keyed on the password.
TGS-REQ and TGS-REP: trading the TGT for service access
To reach a service — cifs/fileserver.corp.local, MSSQLSvc/sql01:1433 — the client wraps its TGT plus an authenticator (username + timestamp, encrypted with the session key) into a TGS-REQ. The KDC decrypts the TGT with krbtgt's key, extracts the session key, validates the authenticator, and issues a service ticket.
The service ticket is encrypted with a key derived from the target service account's password — or, in modern estates, the machine account or gMSA key behind the SPN. Embedded inside is the PAC: the user's SID and group SIDs, signed by the KDC. The service decrypts the ticket with its own key, reads the PAC, and knows who is calling without ever contacting the DC again.
That design choice — tickets as self-contained credentials — is what makes every later attack possible. A ticket is a bearer instrument. Whoever holds it, holds the identity. There is no channel binding to the machine that requested it. Mimikatz exists because LSASS stores these tickets in memory and sekurlsa::tickets /export just copies bearer instruments to .kirbi files.
The five-minute window and ticket lifetimes
Kerberos tolerates ±5 minutes of clock skew. Replays outside it fail. Inside it, an authenticator can be replayed — which is why services that care implement replay caches, and why time sync inside a domain is a security control, not an ops nicety. TGTs default to 10 hours with a 7-day renewable window on default domain policy. Stolen tickets remain valid for their full lifetime: disabling a compromised user does not invalidate tickets already issued. The revocation model is "wait for expiry or purge with klist purge" — which incidentally is why Microsoft ships the RID 502 guidance on rotating krbtgt twice after compromise.
The concrete practice: know what klist shows on a workstation, know that event IDs 4768 (TGT issued), 4769 (service ticket issued), and 4770 (renewal) exist on DCs and carry the ticket's encryption type, target SPN, and requesting account — those three fields are the detection surface for almost everything in this course.
Was this lesson helpful?
Keep reading
Related articles from the SudoSecurity blog.
A Password-Free Path to Root: Inside the macOS Screen Sharing Vulnerability Now Under Attack
A logic bug in screensharingd let attackers skip authentication entirely and land as root — no password required. Here's how it was found, patched, reverse-engineered, and finally weaponized.
CVE-2026-31431 "Copy Fail": How a 9-Year-Old Linux Kernel Bug Gives Any Local User Root in 732 Bytes
CVE-2026-31431 chains AF_ALG, splice(), and authencesn's ESN scratch write into a deterministic 4-byte page cache write that gives an unprivileged local user root. Full technical breakdown, exploit mechanics, detection, mitigation, and patch status per distro.
BlueHammer: The Unpatched Windows Zero-Day That Weaponizes Microsoft Defender Against Your Own System
BlueHammer is an unpatched, publicly released Windows local privilege escalation exploit that chains Microsoft Defender's update workflow, Volume Shadow Copy, Cloud Files callbacks, and opportunistic locks to reach NT AUTHORITY\SYSTEM from a standard user account.
What is Privilege Escalation? How Attackers Go From Foothold to Full Control
An attacker starts with a low-privileged shell or user account and escalates to root or Administrator using misconfigurations, SUID binaries, kernel exploits, and Active Directory attacks. Here's every technique, the tools professionals use, and how to harden against it.