DL·SYS
Contact ↗

CSCTF 2026 · Forensics · 270 pts

Interlock Witness.

128 accepted writes to an industrial control system — only the capture itself can say which ones the safety policy actually allowed.

Modbus/TCPICS protocol replay
EventCSCTF 2026, Operation Dawn (online jeopardy)
CategoryForensics
Points270
StatusSolved during the event
Targetcapture, offline

TL;DR. Replaying a single Modbus/TCP flow frame by frame, pairing every request with its reply and validating protocol fields against the stated policy, reconstructs exactly which writes were isolation-compliant — and the flag is a hash over the ordered sequence of accepted request/response PDUs.

Challenge

Hash the complete, policy-valid sequence of accepted Modbus register writes from a single captured TCP flow.

Solution

The capture holds one Modbus/TCP flow on port 502. Splitting it into frames and pairing each request with its reply in order (by transaction ID, checking protocol identifier 0, unit ID 1, function code, the FC03 byte count, and the FC16 echo) finds every frame passes protocol validation — no malformed or spoofed frames.

Replaying the register state by applying every accepted FC03 read and FC16 write in order shows 128 FC16 writes were accepted in total. Eight of those are non-target writes matching the stated safety policy exactly (5 prerequisite writes plus 3 acknowledgement writes to registers 0x18–0x1A); the remaining 16 target writes, to registers 0x13/0x14, all happened while the isolation_state flag the policy requires was 0 — meaning all 16 are valid isolation-period writes.

The flag is SHA-256(P || all request and response PDUs, in capture order); the field guide's own worked example gives a test vector that the same pipeline reproduces exactly, confirming the format.

Flag

FlagCSCTF{1198b297c84064fab89d0f3e3e5308791165333c1b64da17185dd51493b6f339}

What I took from it