Skip to content

AS-REQ Roasting (Passive Capture)

AS-REQ Roasting extracts crackable hashes from Kerberos pre-authentication traffic captured passively on the network. Unlike Kerberoasting and AS-REP Roasting, this attack does not require any interaction with the KDC - the attacker simply observes legitimate authentication traffic.

MITRE ATT&CK: T1040 Network Sniffing; T1110.002 Brute Force: Password Cracking

How It Works

During a standard AS Exchange, the client proves its identity by encrypting a timestamp with its long-term key. This encrypted timestamp is the PA-ENC-TIMESTAMP field in the AS-REQ's pre-authentication data (RFC 4120 §5.2.7.2).

Every time a user authenticates to the domain - at workstation logon, screen unlock, accessing a new service - their client sends an AS-REQ containing this encrypted timestamp. The encryption key is derived from the user's password:

  • RC4-HMAC (etype 23): key = MD4(UTF-16LE(password)) - no salt, no iterations
  • AES256 (etype 18): key = DK(PBKDF2-HMAC-SHA1(password, salt, 4096, 32 bytes), "kerberos") where salt = <REALM><principal> (RFC 3962 §4)
  • AES128 (etype 17): the same derivation with a 16-byte key

An attacker positioned on the network between clients and the KDC can capture these AS-REQ packets and extract the encrypted timestamp. Since the plaintext is a known structure (a timestamp in ASN.1 DER encoding with a predictable format), the attacker has both the ciphertext and a strong guess at the plaintext structure, enabling offline cracking.

sequenceDiagram
    participant Client
    participant Attacker
    participant KDC

    Client->>KDC: AS-REQ (PA-ENC-TIMESTAMP encrypted with user's key)
    Note over Attacker: Passively captures traffic
    Attacker-->>Attacker: Extract encrypted timestamp
    Attacker->>Attacker: Crack offline (hashcat mode 7500/19900)

What Makes This Attack Unique

Property AS-REQ Roasting Kerberoasting AS-REP Roasting
Attacker sends packets No (passive) Yes (TGS-REQ) Yes (AS-REQ)
Auth required None Domain user None
Network position Required (MITM/tap) Not required Not required
Targets Everyone who authenticates SPN-bearing accounts No-preauth accounts
Detection difficulty Very hard Moderate Moderate

The key advantage is that this attack is completely passive. The attacker sends no packets, makes no requests, and leaves no trace on the KDC. Every user who authenticates during the capture window produces a crackable hash. In a large environment, a one-hour capture from a well-positioned network tap can yield hundreds of hashes.

Encryption Type Impact

The cracking difficulty depends entirely on which encryption type the client used for pre-authentication:

Encryption Hashcat Mode Relative Speed Key Derivation
RC4-HMAC 7500 Fastest MD4(password), no salt
AES128 19800 ~400x slower PBKDF2-SHA1, 4096 iterations
AES256 19900 ~800x slower PBKDF2-SHA1, 4096 iterations

The encryption type used in the AS-REQ is determined by the client's configuration and the KDC's response to the initial (no-preauth) request. See Encryption Negotiation for how this is decided.


Defend

AES Enforcement

Enforcing AES for Kerberos pre-authentication is the single most effective mitigation. AES pre-authentication uses PBKDF2 with 4096 iterations, making each cracking attempt hundreds of times slower than RC4 (the table above). See Group Policy and RC4 Deprecation for configuration details.

The April 2026 RC4 default change (CVE-2026-20833) does not do this. It applies to service tickets only, and in this site's lab the AS exchange behaved the same before and after it. In this site's lab, removing RC4 from the domain controller's own Kerberos encryption-type policy also blocked RC4 pre-authentication (seen on one pre-April 2026 Server 2022 build, not re-run on later builds); that step requires every user to have AES keys first.

Network Segmentation

Isolate Kerberos traffic (port 88) from untrusted network segments. Clients should reach the DC over trusted, monitored links. If attackers cannot capture port 88 traffic, they cannot perform this attack.

Specific measures:

  • Place domain controllers in a dedicated VLAN with restricted access
  • Use port security and DHCP snooping to prevent unauthorized devices on DC-facing segments
  • Enable Dynamic ARP Inspection (DAI) to prevent ARP spoofing

FAST Armor (Kerberos Armoring)

Flexible Authentication Secure Tunneling (FAST), defined in RFC 6113, wraps the AS exchange inside an encrypted tunnel, so an eavesdropper does not see the user's PA-ENC-TIMESTAMP. The protection has two limits. The tunnel for a user's AS exchange is keyed from the computer's TGT, so the computer account's own AS exchange is not armored (MS-KILE §1.3.3). And unless the domain controllers are set to reject unarmored requests, a client that does not armor is still served and still sends a capturable timestamp.

FAST armoring requires:

  • Domain controllers running Windows Server 2012 or later
  • Domain-joined clients running Windows 8+ or equivalent
  • Group Policy on domain controllers: KDC support for claims, compound authentication and Kerberos armoring. Supported makes armoring available. Only Fail unarmored authentication requests rejects unarmored requests, and that option and Always provide claims take effect only at the Windows Server 2012 domain functional level; below it the DC behaves as if Supported were selected
  • Group Policy on clients: Kerberos client support for claims, compound authentication and Kerberos armoring enabled. Without it, "Kerberos authentication messages won't use these features" (Microsoft policy reference)

FAST is not widely deployed

FAST armoring is not widely deployed in most environments because it requires all clients to support it. Non-domain-joined devices and many third-party Kerberos clients do not support FAST.

IPSec / Encrypted Transport

As a defense-in-depth measure, encrypt Kerberos traffic between clients and DCs using IPSec transport mode. This prevents passive capture of any Kerberos messages regardless of FAST support.

Strong Password Policy

Regardless of encryption type, strong passwords (15+ characters, not dictionary-based) make offline cracking much harder. This is a general defense that helps against all roasting attacks.


Detect

Passive network capture is inherently difficult to detect because the attacker sends no anomalous traffic. Detection must focus on the preconditions rather than the attack itself.

Detect Network Positioning

The attacker must be positioned to capture traffic. Look for indicators of the network positioning techniques they use:

  • ARP spoofing: Dynamic ARP Inspection alerts, gratuitous ARP storms, ARP table inconsistencies
  • Rogue devices: 802.1X authentication failures, new MAC addresses on sensitive VLANs
  • SPAN/mirror port abuse: monitor switch configuration changes via SNMP traps or syslog

Monitor for RC4 Pre-Authentication

If AES is enforced but you see RC4 pre-authentication in your network traffic (via packet inspection or DC logs), this may indicate a downgrade attack or a misconfigured client - both worth investigating. This finds exposure (accounts whose pre-authentication can be cracked at RC4 speed), not the capture itself.

Event ID 4768 records the pre-authentication etype, but not in the field its name suggests. Ticket Encryption Type is "the cryptographic suite that was used for issued TGT", and the TGT is encrypted with the krbtgt account's key: AES256 on any domain whose krbtgt has AES keys, whatever the client pre-authenticated with (see TGT encryption type). A filter on TicketEncryptionType=0x17 therefore does not find RC4 pre-authentication. The field to use is Pre-Authentication EncryptionType (PreAuthEncryptionType in the event XML), "the Encryption Type that was selected for the Pre-Authentication flow". It is one of the fields added to 4768 by the January 2025 updates, so it is absent on domain controllers that predate them. This site's lab recorded the field only with the values 0x12 and 0x0, so the RC4 value in the query below rests on Microsoft's field definition and has not been tested here:

index=security EventCode=4768 PreAuthType=2 PreAuthEncryptionType=0x17
| stats count by TargetUserName, IpAddress

A failed attempt is not in this event at all: wrong-password pre-authentication is logged as Event 4771, not 4768. Both events need the Audit Kerberos Authentication Service subcategory (see Kerberos Auditing Policies); the Event Decoder explains the fields.

Network Traffic Anomalies

Monitor for unusual traffic patterns on the DC-facing network that suggest passive capture is in progress:

  • Promiscuous mode on network interfaces (detected via some endpoint agents)
  • Unexpected traffic volumes on SPAN ports
  • ARP table changes

Exploit

1. Position on the Network

Gain a position where you can observe traffic between domain clients and the KDC. Common methods:

  • ARP spoofing between the target subnet and the DC
  • SPAN/mirror port access on the network switch
  • Compromised switch or network appliance
  • Wi-Fi capture in environments where wireless clients authenticate to the domain
  • Physical network tap (red team physical access scenarios)

2. Capture Port 88 Traffic

Capture Kerberos traffic on port 88
# Save to file for later extraction
tcpdump -i eth0 -w capture.pcap port 88

# Capture for a specific duration
timeout 3600 tcpdump -i eth0 -w capture.pcap port 88

The longer the capture window, the more users will authenticate and the more hashes will be collected.

3. Extract PA-ENC-TIMESTAMP Hashes

Parse the captured packets and extract the encrypted timestamp from each AS-REQ that contains pre-authentication data. The hash format depends on the encryption type:

Encryption Hashcat Mode Hash Format
RC4-HMAC 7500 $krb5pa$23$user$realm$<checksum>$<encrypted>
AES128 19800 $krb5pa$17$user$realm$<checksum>$<encrypted>
AES256 19900 $krb5pa$18$user$realm$<checksum>$<encrypted>

The checksum is the first 16 bytes of the PA-ENC-TIMESTAMP cipher for RC4 and the last 12 for AES; <encrypted> is the rest. In an AES line user and realm are not labels: hashcat builds the salt from them, so they must be the account's salt name and realm (Where the salt comes from).

This is the layout kw-extract writes, and in all three modes it needs a hashcat built from source (Tools Setup). The shapes that hashcat releases load put the whole cipher in one field, encrypted part first: $krb5pa$23$user$realm$salt$<encrypted><checksum> for RC4, where the salt field is ignored and may be empty, and $krb5pa$18$user$realm$$<encrypted><checksum> for AES.

RC4 in one field is not in wire order

On the wire an RC4 cipher starts with its checksum, and the one-field shape wants the checksum last. A line built in wire order loads without an error and never cracks: none of 12 lab hashes cracked that way, on v8.0.0 or on master, while 10 and 11 of them cracked with the checksum last. An AES cipher already ends with its checksum, so wire order is right there.

4. Crack Offline

Crack AS-REQ pre-auth hashes with wordlist and rules
# RC4 hashes (fast)
hashcat -m 7500 hashes.txt wordlist.txt -r rules/best64.rule

# AES256 hashes (slow but possible for weak passwords)
hashcat -m 19900 hashes.txt wordlist.txt -r rules/best64.rule

One capture holds more than AS-REQ data

The same traffic carries other crackable fields, and kw-extract pulls them all from one file. A captured AS-REP gives an AS-REP Roasting hash for every user who logs on, not only no-preauth accounts. A captured TGS-REP gives a Kerberoast hash. And a service ticket presented in an AP-REQ over SMB, HTTP, LDAP or DCE-RPC gives the same Kerberoast hash without any port 88 traffic. See Crackable Fields for which field each capture point yields.


Tools

kerbwolf: kw-extract

kw-extract is an offline hash extraction tool that parses pcap and pcapng files. It extracts every Kerberos hash type (AS-REQ pre-auth, AS-REP, TGS-REP, and service tickets from AP-REQs off port 88) as well as MS-SNTP (timeroast), NTLM and LDAP simple-bind credentials from a single capture file.

Extract from a Saved Capture

kw-extract capture.pcap -o hashes.txt

Parses the pcap, identifies all AS-REQ messages containing PA-ENC-TIMESTAMP, and outputs hashcat-format hashes. Also extracts any AS-REP and TGS-REP hashes found in the capture.

Real-Time Extraction from Pipe

tcpdump -i eth0 -w - port 88 | kw-extract -

Reads pcap data from stdin, enabling live extraction as traffic is captured. Hashes are printed to stdout as they are detected.

Multiple Capture Files

kw-extract *.pcap -o all-hashes.txt

Processes all pcap files in the directory and consolidates hashes into a single output file.

What kw-extract Extracts

Hash Type Source Hashcat Mode
$krb5pa$ PA-ENC-TIMESTAMP in AS-REQ 7500 / 19800 / 19900
$krb5asrep$ enc-part in every AS-REP 18200 / 32100 / 32200
$krb5tgs$ Service ticket enc-part in TGS-REP 13100 / 19600 / 19700
$krb5tgs$ Service ticket in an AP-REQ (SMB/HTTP/LDAP/DCE-RPC) 13100 / 19600 / 19700
$sntp-ms$ MS-SNTP authenticator 31300

The table lists the RC4, AES128 and AES256 modes. kw-extract also writes DES lines, and its RC4 lines are what the NT-hash modes read; Crackable Fields has every mode. All Kerberos hashes are written in one layout, $prefix$etype$user$realm$<checksum>$<data>. It handles TCP stream reassembly, Ethernet/Raw IP/VLAN encapsulation, and IPv4/IPv6 automatically.

Other Tools

Tool Platform Notes
pcredz Linux Extracts credentials from pcaps (limited Kerberos support)
Wireshark (manual) Cross-platform Can display Kerberos fields but requires manual hash formatting