CSCTF 2026 · Forensics · 270 pts
Briefing for One.
The archive password is machine-specific — and the machine identifier it needs is sitting in the registry hive right next to the shortcut that asks for it.
| Event | CSCTF 2026, Operation Dawn (online jeopardy) |
|---|---|
| Category | Forensics |
| Points | 270 |
| Status | Solved during the event |
| Target | shortcut + registry hive + pcap, offline |
TL;DR. A malicious shortcut's embedded PowerShell derives a 7z archive password as HMAC-SHA256 of a fixed key and the machine's `MachineGuid`, read directly from the provided registry hive, and a specific HTTP-delivered archive in the pcap matches that derived password's hash exactly.
Challenge
Recover a briefing token locked inside a password-protected 7z archive, delivered via a captured HTTP session.
Solution
The shortcut's command line, read with strings, contains an embedded PowerShell script. It derives the 7z password as HMAC-SHA256(base64 key embedded in the script, "csctf26/briefing-for-one/v1" || 0x00 || lowercase MachineGuid).
MachineGuid is read directly from the provided registry hive with regipy: 080c7be1-f41c-446c-b961-93bd7bc4ea31. That gives a derived password whose hash matches the field guide's sample value exactly, confirming the construction.
tshark --export-objects http pulls several candidate route-update.7z files out of the pcap; most are 914-byte WebDAV PROPFIND noise, but one GET response body's hash matches the script's expected archive hash exactly. Extracting it with the derived password recovers a DLL and a route-table.json, both matching hashes stated in the script — and the token field in route-table.json is the flag.
Flag
CSCTF{eab85b3bb8d309ec8f52a3f6271c55ff}What I took from it
- A malicious script's own embedded logic often fully documents an HMAC or key derivation it uses — reading the script, not guessing at its output, is the fast way to a machine-specific secret.