Why Kerberos Attacks Suit Packet Analysis
Kerberos is the authentication foundation of Active Directory, and it has a property that strongly favors defenders: the critical fields are not encrypted. The service name in a ticket request (TGS-REQ), the requested encryption types, and whether pre-authentication data exists are all visible plaintext ASN.1.
This is why traffic analysis carries more weight in domain attack detection than many assume. Endpoint detection relies on ETW and process behavior, which can be bypassed. Kerberos messages on the wire are protocol-mandated and cannot be altered.
PcapDecoder's Kerberos detector parses without decrypting. It performs a bounded ASN.1 walk over port 88 payloads — TCP first strips the 4-byte length prefix and may carry several messages in one segment, UDP is bare DER — with semantic nesting capped at four levels and malformed messages skipped silently. That discipline matters: attack tools routinely send malformed packets to test IDS.
The Four Attacks, One by One
Kerberoasting (T1558.003)
The idea is to request service tickets and crack them offline. The packet signature is a conjunction of two conditions:
- The TGS-REQ (
[APPLICATION 12], tag0x6C) has no AP-REQ pre-authentication data; - The req-body etype list includes
23, which is RC4-HMAC.
Why RC4? Cracking cost depends on encryption type, and RC4 ticket hashes are the easiest to attack with a dictionary. Tools deliberately request it. In a modern AD environment defaulting to AES, a client repeatedly asking for RC4 service tickets is a strong signal by itself.
The judgment: at least ≥3 distinct service names (sname) per source requesting RC4 tickets, confidence 85. One request might be legacy compatibility; three or more is enumeration.
AS-REP Roasting (T1558.004)
Targets accounts with pre-authentication disabled — an AS-REP can be obtained without any credentials, then cracked offline. The packet signature is one-to-many: the same recipient receives ≥3 AS-REPs (0x6B) addressing ≥2 distinct account names (cname).
The difference from normal logon: a normal user produces exactly one AS-REP per logon. Batch appearances mean someone is enumerating which accounts lack pre-auth.
Golden Ticket (T1558.001)
With the krbtgt hash, an attacker forges ticket-granting tickets for any user, skipping the KDC's AS phase. The packet signature is therefore unusual:
- The TGS-REQ has no padata at all;
- The source never appears in any AS-REQ or AS-REP in the entire capture.
The second condition is the core. A normal user first authenticates via AS to get a TGT, then exchanges it for service tickets, so the same source must have produced 0x6A / 0x6B earlier. A host that starts asking for service tickets directly has a TGT that was fabricated. Confidence 70, severity 2 — because in a short capture window, "no AS exchange seen" might just mean the capture started late.
Pass-the-Ticket (T1558.002)
A stolen ticket is reused from another machine. The criterion is one ticket fingerprint appearing from ≥2 distinct source IPs. The fingerprint combines service name, encrypted-data length and the first 8 bytes of ciphertext — low collision probability without requiring decryption.
This detection is particularly useful for lateral movement attribution: one ticket hopping from a finance workstation to an ops jump host shows up as two source IPs presenting the same ticket.
How-to: Locate Port 88 Traffic
Step 1: Confirm Kerberos is present. Filter with tcp.port == 88 or udp.port == 88. In enterprise environments port 88 traffic is a small share of the total, but every logon and every file share access produces some.
Step 2: Check the Kerberos group in deep-scan results. The four findings are listed separately with service name, account name and evidence packet number. Handle severity 2 first (golden ticket, pass-the-ticket), then severity 1.
Step 3: Build a timeline. Layer Kerberos findings with other findings in the same window. A typical advanced chain is: T1040 cleartext credentials or T1110 brute force to obtain an initial account, then T1558.003 for privilege escalation, then T1021 lateral movement. The ordering is obvious on a timeline.
Step 4: Export evidence. The Kerberos group in the report includes message summaries, and a third-party auditor can re-check raw bytes by packet number.
Limits of Capture Placement
The biggest variable in Kerberos detection is not the algorithm but where the capture was taken.
- On a domain controller: full visibility of network-wide authentication; all four attacks covered. The ideal vantage point.
- On an ordinary endpoint: only that host's own authentication; golden ticket and pass-the-ticket are essentially unreachable, and Kerberoasting only shows what this host initiated.
- On a switch mirror port: coverage follows the mirror scope, usually the key traffic of one segment.
So any interpretation of Kerberos findings must state the premise: which segments did this capture cover. "No Kerberoasting found" in an endpoint-only capture does not mean the domain is clean; it means it was not observed.
Another limit is Kerberos over TCP segmentation. A TGS-REQ may span several TCP segments; the detector does a bounded walk within a single segment (up to four messages), and cross-segment reassembly depends on the stream layer. Extreme cases may miss individual requests, but the overall judgment holds — a batch attack never produces just one packet.
Hardening
Packet detection is retrospective; the real defense is configuration:
- Move service accounts to gMSA: group managed service accounts use 240-bit random passwords rotated automatically, so a Kerberoasted hash is not crackable;
- Eliminate RC4: disable RC4 at the domain level (
msDS-SupportedEncryptionTypes) so etype 23 requests fail outright; - Hunt accounts without pre-auth:
Get-ADUser -Filter {DoesNotRequirePreAuth -eq $true}— these are AS-REP roasting targets; - Rotate krbtgt periodically: a golden ticket requires the krbtgt hash; two rotations spaced beyond the ticket lifetime invalidate old tickets;
- Alert on abnormal ticket patterns: turn "TGS request with no prior AS exchange" into a standing alert rather than something you look at only during retrospectives.
Related reading: Detecting Lateral Movement, How Much of ATT&CK Can Packet Analysis Cover?.
