You are currently viewing Watch Kerberos in Wireshark: AS-REQ, TGS-REQ and the Packets Behind Every Domain Logon

Watch Kerberos in Wireshark: AS-REQ, TGS-REQ and the Packets Behind Every Domain Logon

📋 Key Takeaways
  • You need three things running on your lab network
  • Start the capture, then trigger a fresh Kerberos exchange.
  • Expand packet 1: Keytab 3 (Kerberos) → message-type: krb-as-req (10).
  • Packet 2, message-type: krb-as-rep (11), has two encrypted blobs
8 min read · 1,431 words
Educational & Ethical Use Only — This article is provided for educational and ethical cybersecurity research purposes only. The techniques described should only be used on systems you own or have explicit permission to test. Always follow responsible disclosure and the laws applicable to you. Mitigations are included so engineers can harden real systems.
Security

🔎 Last updated · Editorial policy · Report an error

TL;DR: Every Windows domain logon produces a visible, four-step Kerberos exchange — AS-REQ, AS-REP, TGS-REQ, TGS-REP — that you can capture and decode with nothing more than Wireshark and a kerberos display filter. Reading these packets field by field teaches you how tickets, cipher types, and SPNs really work, and makes it obvious why Kerberoasting targets RC4-encrypted service accounts and why AES + gMSA shuts that door.

Authorization note: everything in this tutorial should be performed only on machines you own or are explicitly permitted to test — an isolated lab domain with a domain controller and one workstation. Capturing Kerberos traffic on networks you don’t own is illegal in most jurisdictions.

Lab setup

You need three things running on your lab network:

  • A domain controller (Windows Server 2019/2022 is fine) for lab.local
  • A domain-joined Windows workstation
  • A capture point — either Wireshark on the workstation itself, or a mirrored port / tap between the workstation and the DC

Capturing on the workstation is easiest for a first pass: you’ll see both legs of every exchange. Launch Wireshark, select your primary interface, and start the capture before you log on or lock/unlock, because Kerberos traffic happens at logon time, not continuously.

Capturing the logon

Start the capture, then trigger a fresh Kerberos exchange. Locking and unlocking the workstation (Win+L, then log back in) generates a clean AS-REQ/TGS-REQ sequence. Alternatively, from a command prompt, purge existing tickets and request new ones:

PS C:> klist purge

Current Id: 0:0x3e7
Deleting all tickets:
Tickets purged successfully.
Current Id: 0:0x3e4
Deleting all tickets:
Tickets purged successfully.

PS C:> klist get krbtgt

Current LogonId is 0:0x12a3f7
A ticket to krbtgt has been retrieved successfully.
...

Now stop the Wireshark capture and apply the display filter:

kerberos

You should see roughly this packet list:

No. Source Destination Info
1 10.0.0.50 10.0.0.10 AS-REQ
2 10.0.0.10 10.0.0.50 AS-REP
3 10.0.0.50 10.0.0.10 TGS-REQ
4 10.0.0.10 10.0.0.50 TGS-REP
5+ 10.0.0.50 various TGS-REQ / TGS-REP / AP-REQ pairs

All Kerberos traffic rides on TCP/UDP port 88 to the DC. Packet 1–2 is the authentication exchange; packet 3–4 fetches a service ticket; everything after is the workstation requesting tickets for whatever services it touches (SMB, LDAP, DNS usually show up immediately).

AS-REQ: “Here’s who I am, prove me”

Expand packet 1: Keytab 3 (Kerberos) → message-type: krb-as-req (10). The important fields:

  • padata: PA-ENC-TIMESTAMP — the client’s proof of identity: the current time encrypted with a key derived from the user’s password. The DC decrypts it; if it matches, you’re authenticated. In the capture you’ll see etype: 18 (aes256-cts-hmac-sha1-96) or etype: 23 (rc4-hmac) depending on how the account is configured.
  • req-body → cname: alice — the requested principal name.
  • req-body → realm: LAB.LOCAL
  • req-body → sname: krbtgt/LAB.LOCAL — the AS-REQ always asks for the krbtgt service; the reply contains the TGT.
  • req-body → etype — a list of cipher types the client supports, typically 18, 17, 23 (AES256, AES128, RC4).

On modern fully-patched domains you may also see PA-PAC-REQUEST and, if the client is advertising newer features, additional pre-auth padata types for claims or FAST armoring.

AS-REP: here’s your TGT

Packet 2, message-type: krb-as-rep (11), has two encrypted blobs:

  • enc-part (outer) — encrypted with the user’s long-term key (etype 18 = AES256-CTS-HMAC-SHA1-96). Inside: the logon session key, ticket lifetimes, flags. Wireshark can’t decrypt this — it’s derived from alice’s password, which you (hopefully) don’t know from the wire.
  • ticket → enc-part — encrypted with the krbtgt account’s key. This is the TGT the client can never read; it just stores it. Expand it and you’ll see realm: LAB.LOCAL, sname: krbtgt/LAB.LOCAL, and an etype matching the krbtgt account’s configured cipher.

Wireshark can decrypt ticket contents if you feed it a keytab (Preferences → Protocols → KRB5 → keytab path). In a lab where you know alice’s password and have a keytab, the ticket decodes to reveal the PAC: group SIDs, logon times, and the user’s privileges. That’s the piece the DC trusts on every subsequent request.

TGS-REQ and TGS-REP: getting a service ticket

Packet 3 shows the client presenting the TGT:

  • padata: PA-TGS-REQ — contains the AP-REQ wrapper carrying the TGT itself.
  • req-body → sname — this is the interesting one. For an SMB logon you’ll see cifs/dc01.lab.local; for LDAP, ldap/dc01.lab.local. This SPN string is exactly what an attacker enumerates and what Kerberoasting abuses.
  • req-body → etype — the ciphers the client is willing to use for the session key.

Packet 4, the TGS-REP, again contains two parts: the outer enc-part encrypted with the logon session key (from the AS-REP), and a ticket for the target service encrypted with the service account’s long-term key. Check the etype on that ticket:

ticket.enc-part.etype: 23 (rc4-hmac)

or, on a properly hardened account:

ticket.enc-part.etype: 18 (aes256-cts-hmac-sha1-96)

AP-REQ: using the ticket

After the TGS exchange, every connection to the service begins with an AP-REQ (message-type 14) sent to the service, not the DC. Expand one heading toward the DC on port 445 and you’ll see:

  • ticket — the service ticket from the TGS-REP, presented verbatim.
  • authenticator — encrypted with the session key; contains a timestamp to defeat replay.

The AP-REP (message-type 15) is optional (mutual authentication) and short — often absent on SMB since mutual auth happens inside the SPNEGO exchange.

What Kerberoasting sees in the same capture

Kerberoasting is just a TGS-REQ for an SPN belonging to an account whose password the attacker wants to crack — performed by any authenticated domain user, because the ticket’s enc-part is encrypted with the service account’s key, and the attacker has that ciphertext.

To see it in your lab, request a ticket for a service account from any domain-joined machine:

PS C:> Add-Type -AssemblyName System.IdentityModel
PS C:> New-Object System.IdentityModel.Tokens.KerberosRequestorSecurityToken -ArgumentList "MSSQLSvc/sql01.lab.local:1433"

PS C:> klist

Current LogonId is 0:0x12a3f7

Cached Tickets: (3)

#0>     Client: alice @ LAB.LOCAL
        Server: MSSQLSvc/sql01.lab.local:1433 @ LAB.LOCAL
        KerbTicket Encryption Type: RSADSI RC4 HMAC (NT)
...

In the corresponding TGS-REP packet in Wireshark, the ticket’s enc-part is the exact blob an offline cracking tool extracts:

ticket.enc-part.etype: 23 (rc4-hmac)
ticket.enc-part.cipher: 58 bytes (the crackable blob)

Why RC4 matters: RC4-HMAC’s “encryption key” is just an MD4 hash of the account password — no salt, no key stretching. Tools can dump these blobs straight from the capture or via Rubeus kerberoast equivalent lab tooling and throw GPU wordlists at them at enormous speed. AES256 (etype 18) keys incorporate the account’s sAMAccountName and domain as salt and are dramatically slower to brute-force; combined with a long random password, offline cracking becomes impractical.

How AES and gMSA change the capture

Convert a lab service account to a Group Managed Service Account and re-capture:

PS C:> Add-KdsRootKey -EffectiveTime ((Get-Date).AddHours(-10))
PS C:> New-ADServiceAccount -Name svcSQL -DNSHostName sql01.lab.local `
    -KerberosEncryptionType AES256
PS C:> Install-ADServiceAccount -Identity svcSQL

Now the same TGS-REP looks different:

ticket.enc-part.etype: 18 (aes256-cts-hmac-sha1-96)
ticket.enc-part.cipher: 100+ bytes (large AES blob)

Three visible differences:

  • Etype 18 instead of 23 — the ticket is AES-encrypted; RC4 cracking pipelines don’t even apply.
  • No human password at all — gMSA passwords are 240-byte random values generated by the KDS root key and rotated automatically; a cracked “password” concept doesn’t exist.
  • Ticket retrieval is restricted — gMSAs only hand out tickets when the requesting machine is in the account’s PrincipalsAllowedToRetrieveManagedPassword list, so Kerberoasting from an arbitrary workstation fails.

If your capture still shows RC4 tickets after hardening, check the account’s msDS-SupportedEncryptionTypes attribute and whether KerberosEncryptionType was actually set to AES256 — legacy etypes linger on old accounts unless explicitly disabled, and domain policies enforcing “AES only” (via Network security: Configure encryption types allowed for Kerberos) are what finally kill etype 23 on the wire.

Field-by-field cheat sheet

Packet Key fields Encrypted with
AS-REQ PA-ENC-TIMESTAMP, cname, sname=krbtgt, etype list Timestamp: user’s key
AS-REP session key, flags, lifetimes, TGT, PAC Outer: user’s key; ticket: krbtgt’s key
TGS-REQ PA-TGS-REQ (TGT), sname = target SPN Authenticator: logon session key
TGS-REP service ticket, session key for service Outer: logon session key; ticket: service account’s key
AP-REQ ticket + authenticator Session key shared with service

Defender takeaways

  • Kill RC4 on the wire: audit your captures and DC logs for etype 23 tickets, set KerberosEncryptionType to AES256 on all accounts, and enforce AES-only via the “Configure encryption types allowed for Kerberos” GPO after verifying legacy compatibility.
  • Move services to gMSAs: 240-byte auto-rotated passwords plus per-machine ticket retrieval eligibility makes Kerberoasting practically useless against those accounts.
  • Monitor TGS-REQ volume and SPNs: alert on a single principal requesting tickets for many unrelated SPNs in a short window (Event ID 4769 with RC4 encryption type, 0x17, is the classic Kerberoasting signature) and make sure no service account is a member of Domain Admins or runs with a human-set password.
HMMNM Security
Published by HMMNM Security

Hands-on cybersecurity tutorials, CVE breakdowns, and guided learning paths — written and lab-tested by the HMMNM Security team.

Keep going — the structured way
This post is one step. The learning paths chain the next ones for you, with progress tracking and no account needed.
Follow a learning path →

Prabhu Kalyan Samal

Application Security Consultant and founder of Hmmnm. Certified Red Team Operator, Burp Suite Certified Practitioner, eWPTX, CompTIA SecurityX and Azure Security Engineer. Writes hands-on labs and threat analysis on web, cloud and AI-agent security.