DL·SYS
Contact ↗

CSCTF 2026 · Network · 387 pts

Water Hammer Reconciliation.

66 Modbus writes, two of them decoys — the real 64 each have a matching readback that confirms the write actually happened.

Modbus/TCPWrite-readback validation
EventCSCTF 2026, Operation Dawn (online jeopardy)
CategoryNetwork
Points387
StatusSolved during the event
Targetpcap, offline

TL;DR. A Modbus/TCP capture holds 66 write requests, but only 64 are legitimately confirmed — each immediately followed by a successful readback of the affected registers, exactly as the stated profile requires. Decoding those 64 confirmed snapshots and applying the profile's own safety rule (unsafe if ARMED and RAMP exceeds a threshold, with a velocity-change sanity check) produces a report whose hash matches the profile's own published test vector exactly.

Challenge

Reconstruct and hash a safety-compliance report from a single Modbus/TCP capture, following a stated validation profile.

Solution

The pcap holds one Modbus/TCP conversation between two hosts, unit 17. Reassembling both TCP directions and parsing the ADUs finds 66 FC16 (write multiple registers) requests, but only 64 of them are immediately followed by a positive write response and then an FC3 read of the exact same register block (0x1000..0x1003) — the profile's stated confirmation pattern. The remaining two — one exception response, one unpaired request with no matching readback — are decoys that never get confirmed.

Decoding the 4 registers read back after each of the 64 confirmed writes, every one satisfies the stated sanity checks (ARMED=1, RAMP<37558, a real velocity change between consecutive snapshots), confirming they're the real data to use. Building the canonical report and computing the required unsafe-bitmask over all 64 snapshots gives D3FC7C00A3060000; hashing it (SHA-256, first 24 bytes, Base32 without padding) gives a 39-character string.

The profile publishes its own worked synthetic test vector; running the exact same pipeline against it reproduces both the intermediate SHA-256 and the final Base32 string byte for byte, confirming the implementation before trusting the real answer.

Flag

FlagCSCTF{L3LBJQQRIXYIBUFDABBXKLH2EEHWDIUZAM2R3XQ}

What I took from it