Reverse Engineering Identifies Detection Signals for Extended Timeroasting

Summary
A reverse-engineering study decoded MS-SNTP’s extended SHA-512 timeroasting format and verified it against a patched Windows Server 2025 DC. It recommends detecting requests for another host’s RID, since packet size is unreliable on modern fleets.
Key points
- Timeroasting uses unauthenticated MS-SNTP requests to collect password-derived MACs for computer and trust accounts for offline cracking; weak or unchanged passwords are the meaningful risk.
- Modern Windows clients use a 120-byte extended authenticator with SP800-108 and HMAC-SHA512; the 68-byte legacy form uses MD5.
- The author reverse-engineered Windows Netlogon binaries to recover the extended format’s key derivation and verified the implementation against a fully patched Windows Server 2025 domain controller.
- The author’s Python reference implementation reproduced the DC’s checksum, and a custom hashcat module passed the tool’s self-tests; its mode number, 31350, is a placeholder rather than a released mode.
- The recommended detector compares the requested account RID with the sending host’s own RID. This can catch single requests and slow sweeps across either packet format.
- Packet size and zeroed request MACs are unreliable alert signals because legitimate time-sync traffic can share those properties; a UDP/123 volume rule is a weaker fallback.
- Defender for Identity did not alert on timeroasting in 11 test runs over five hours, while a control DCSync test did generate an alert.
Article Details
- Attack Vectors
- Unauthenticated MS-SNTP requests to a domain controller name computer or trust accounts by RID and collect password-derived MACs for offline cracking.
- A targeted variant requires permission to modify a user account's sAMAccountName and userAccountControl so the domain controller will sign for it.
- The adjacent DigestRoast technique requests password-derived digests through the Netlogon named pipe but requires administrator access on the domain controller.
- Defensive Notes
- Monitor authenticated UDP/123 requests to domain controllers and compare each requested RID with the source host's account RID; handle domain controllers and expected trust RIDs separately.
- Use request volume as a fallback signal, but account for slow sweeps and NAT. Baseline packet sizes and the old-key flag before alerting on them.
- Enable Windows Filtering Platform auditing or collect endpoint network telemetry; authentication logs alone do not show the unauthenticated sweep.
- Limit domain-controller UDP/123 access to trusted networks, maintain machine-password rotation, and remediate predictable or stale machine and trust passwords.
- For DigestRoast visibility, enable Detailed File Share auditing and monitor event 5145 access to the Netlogon pipe.
- In testing, Defender for Identity did not alert on the unauthenticated sweep; its SAM account-name change alert covers the directory modification associated with the targeted variant.
MITRE ATT&CK
T1098 · Account ManipulationThe privileged targeted variant temporarily changes a user account's name and account-control settings to make it appear to be a workstation trust account.T1110.002 · Password CrackingTimeroasting collects machine- or trust-account password-derived MACs and tests password guesses against them offline.
People
Vendors
Products
Defender for IdentityDefender for Identity did not detect the sweep during testing, so monitor UDP port 123 traffic to domain controllers.Microsoft Active DirectoryIf you run Active Directory detections, you are probably already watching machine accounts for a different reason. They get created or hijacked, through resource-based constrained delegation or shadow credentials, thenWindows Server 2025Testing recovered the modern format, confirmed it against a patched Windows Server 2025 domain controller, and produced working Python and hashcat tools.
Tools
digestroast.pyFigure 10. digestroast.py calling opnum 24 for the domain controller machine account. The DC returns the New and Old message digests, and the tool prints a ready-to-crack $sntp-ms$ line for hashcat mode 31300.hashcatTesting recovered the modern format, confirmed it against a patched Windows Server 2025 domain controller, and produced working Python and hashcat tools.KerbWolfall produce legacy hashes, and timeroast-ng even ships an extended class that is not wired into its CLI. KerbWolf is the exception, claiming 120-byte extended support, though I did not capture it.NetExecThe form everyone knows is 68 bytes on the wire, and its MAC is built with MD5. That is what hashcat mode 31300 cracks, what timeroast.py and netexec produce, and what every writeup covers.radare2actual binaries from a live, fully patched Windows Server 2025 domain controller (build 26100.33438), in radare2. I pulled w32time.dll and netlogon.dll off the DC over SMB and read them there.SuricataI wrote four Suricata rules and then did the thing I have learned to always do: I ran them through the actual engine instead of trusting that they looked right. Suricata 8.0.7, against a real capture of a sweep: 41timeroast-ngI ran the two public timeroast tools against a DC in the lab, SecuraBV's timeroast.py and timeroast-ng, and diffed their packets against a real NTP client byte for byte, to see whether there is a tool fingerprint worthtimeroast.pyThe form everyone knows is 68 bytes on the wire, and its MAC is built with MD5. That is what hashcat mode 31300 cracks, what timeroast.py and netexec produce, and what every writeup covers.trustroast.pyFigure 14. trustroast.py identifies NEWYORK$ as the interdomain trust account (RID 1187), not a machine account, and collects it over MS-SNTP as a hashcat 31300 line. This is collection, not recovery: unlike DCSync,Zeekmember (is this RID the sender's own?) needs an IP-to-account mapping Suricata does not have. Do it in Zeek or your SIEM: for each authenticated NTP request to a DC, pull the RID from offset 48, resolve the source
