On 19 November 2026 Huntress published “Detecting Timeroasting the Hard Way”. The author read netlogon.dll and w32time.dll from a patched Windows Server 2025 domain controller (build 26100.33438) to work out what a timeroast really looks like on the wire. The main finding for defenders: the common advice to key on packet size does not survive a modern fleet. This guide turns that finding into detection logic. Everything attributed to Huntress below is from that post; the KQL and SPL are our own sketches and have not been run against real data.
What timeroasting is
Timeroasting abuses MS-SNTP. A client sends an NTP request that names an account by its Relative Identifier (RID) and the domain controller (DC) answers with a MAC derived from that account’s password. No authentication is needed. An attacker sweeps RIDs, collects MACs and cracks them offline. Tom Tervoort described the technique in 2023.
MS-SNTP has two authenticator forms:
| Form | Authenticated packet size | MAC | Public cracking support |
|---|---|---|---|
| Legacy | 68 bytes | MD5 | hashcat mode 31300; timeroast.py and NetExec |
| Extended | 120 bytes | SP800-108 KDF plus HMAC-SHA512 | None in hashcat, per Huntress |
The target RID is a little-endian value at offset 48. In the extended form, a flags byte at offset 53 carries the USE_OLDKEY_VERSION bit (0x01).
Why your logs are quiet
The targeted accounts never log on, so there are no 4768, 4769, 4624 or 4776 events for them. Huntress also ran eleven attempts over five hours against a Defender for Identity sensor and saw no alert. The “Suspicious SAM Account Name Change” alert names timeroasting in its description but fires on a sAMAccountName change, which is a different, privileged variant. Do not count it as coverage for the unauthenticated sweep.
The traffic itself is visible. Three sources see it, per Huntress: Windows Filtering Platform event 5156 for w32time accepting UDP/123 (when that subcategory is on), EDR network telemetry on the DC, and EDR on the attacker’s host.
Do not alert on size or on a zero MAC
- A 120-byte request is normal on a modern fleet. Windows clients send the extended form as routine time sync. Huntress found that the public tools emit only the 68-byte form, so on current Windows the 68-byte request is the odd one out. Size is a baseline question, not an attack signal.
- A zeroed MAC in the request is also normal. The client sends it zeroed and the DC fills it in, so a rule on it fires across the fleet.
Detection 1: requested RID is not the sender’s own (durable)
A domain member normally asks the DC to sign for its own computer account. Resolve the source IP to a computer account (DHCP or DNS, then LDAP objectSid) and alert when the requested RID differs. Huntress’s skeleton:
on UDP packet to DC:123 where len(payload) in {68, 120}
and (payload[0] & 0x07) == 3:
requested_rid = le32(payload[48:52])
own_rid = ip_to_rid[src_ip]
if own_rid is None: alert("no RID mapping") # triage
elif requested_rid != own_rid: alert("RID is not the host's own")
Caveats from the post: DCs can legitimately use a trusted-account RID during domain-hierarchy time sync, so handle DC sources separately. Zeek’s stock ntp_message event does not expose the KeyIdentifier, so you need a Spicy analyzer or raw payload access.
Detection 2: volumetric sweep (easy first rule)
Huntress’s size-agnostic Suricata rule, validated on Suricata 8.0.7 against a captured sweep:
alert udp any any -> $DC_SERVERS 123 (msg:"MS-SNTP authenticated-NTP sweep to DC (Timeroast, either form)"; dsize:>56; byte_test:1,=,3,0,bitmask 0x07; threshold:type threshold, track by_src, count 25, seconds 60; classtype:attempted-recon; sid:5200010; rev:1;)
Set $DC_SERVERS yourself. A paced attacker can stay under the threshold, and other extended NTP traffic can also match.
Huntress points to a public Sentinel detection that counts UDP/123 per source, and notes that on the attacker’s own machine, any process other than the time service sending UDP/123 to a DC is a high-signal EDR hit. Our sketch of that idea runs on non-DC endpoints (untested; treating svchost.exe as the time service is our assumption, and 25 per 5 minutes is a placeholder threshold):
let DCIPs = dynamic(["10.0.0.10", "10.0.0.11"]);
DeviceNetworkEvents
| where Timestamp > ago(1h) and RemotePort == 123 and RemoteIP in (DCIPs)
| where DeviceName !in~ ("dc01.corp.example", "dc02.corp.example")
| where InitiatingProcessFileName !~ "svchost.exe"
| summarize Requests = count() by DeviceName, InitiatingProcessFileName, bin(Timestamp, 5m)
| where Requests > 25
An SPL equivalent over Zeek conn data (untested, same placeholder threshold):
index=network sourcetype=zeek_conn id.resp_p=123 proto=udp id.resp_h IN ("10.0.0.10","10.0.0.11")
| bin _time span=5m
| stats count by _time, id.orig_h, id.resp_h
| where count > 25
Connection counts alone do not prove a sweep, since NAT and time-sync bursts also generate them. Treat both as triage, not verdicts. Huntress calls the volumetric rule a weak first pass.
Hardening
Huntress also advises limiting UDP/123 on DCs to trusted networks and keeping machine-password rotation on.
Weaker signal and gaps
Huntress offers USE_OLDKEY_VERSION at offset 53 only as a hypothesis (rule sid 5200002); baseline it before alerting. Huntress did not capture KerbWolf, which claims extended-form support, and its own extended-form cracker is not yet upstream. Our KQL and SPL are untested.
Source: Huntress, “Detecting Timeroasting the Hard Way”, 19 November 2026.