DL·SYS
Contact ↗

CSCTF 2026 · Forensics · 198 pts

Operation Dawn: The Relay Tap.

A noisy capture has the same encrypted frame twice — only one copy has a checksum the real receiver would have accepted.

Custom protocolKeystream cipherTCP checksum
EventCSCTF 2026, Operation Dawn (online jeopardy)
CategoryForensics
Points198
StatusSolved during the event
Targetrelay-tap.zip, offline

TL;DR. The relay's own self-describing frame format reveals a keystream cipher keyed off a client/server nonce exchange. Two frames in the capture carry the same payload, injected to confuse analysis — but only one has a valid TCP checksum, which is also the one the real client acknowledged, and it's the one that decrypts to a clean, in-charset flag.

Challenge

A tapped relay session carries a command's standing order under a custom scheme called ARLY, invented for the challenge and described by the capture itself. Work out which order the relay actually delivered.

Solution

The relay session is a single TCP connection whose server greeting describes the ARLY frame format: "ARLY" | type | len (2 bytes, big-endian) | body, and the key-derivation scheme: key = SHA-256(client_nonce || server_nonce), with a keystream of SHA-256(key || uint32be(i)) blocks XORed against the body.

Two frames (114 and 117) carry byte-for-byte identical payloads to frame 112 — but both have invalid TCP checksums, meaning the real receiving stack would have silently dropped them. Frame 115 has a valid checksum and is the one the client actually acknowledged; decrypting it with the derived keystream gives the flag, which fits the stated charset (lowercase, digits, underscores only). Decrypting frame 117 for comparison gives garbage, confirming it's the forged injection.

Flag

FlagCSCTF{16_cobalt_ingot_rowan_fathom_ca8f4addb0}

What I took from it