DL·SYS
Contact ↗

CSCTF 2026 · Network · 120 pts

Severed Link.

The operator's own key-rotation message leaks the new signing key — the live gateway just wants a heartbeat before it'll trust anything signed with it.

MAVLink2Message signing
EventCSCTF 2026, Operation Dawn (online jeopardy)
CategoryNetwork
Points120
StatusSolved during the event
Targettlog + live TCP gateway

TL;DR. A telemetry log captures an operator pushing a fresh signing key over MAVLink2's own in-band `SETUP_SIGNING` message. That key verifies every post-rotation signed frame in the log, and sending a signed `HEARTBEAT` before a signed `COMMAND_INT` authenticates to the still-live uplink gateway, which grants a reposition command and hands back an audit receipt.

Challenge

Authenticate to a live SB-7 uplink gateway as the fleet operator, using only a telemetry log of the operator's session.

Solution

Parsing the tlog by hand (an 8-byte big-endian timestamp prefix, then the MAVLink2 frame) finds the in-band SETUP_SIGNING message (msgid 256) the operator pushed to rotate the fleet's signing key — its 32-byte secret_key field is the new key in plaintext, since this message is how a trusted operator installs the key in the first place, not something meant to be secret in transit.

That recovered key validates the MAVLink2 signature construction (sha256(key || header || payload || checksum || link_id || timestamp)[:6]) against exactly the 50 post-rotation frames in the log, and against none of the pre-rotation ones — strong confirmation it's the right, current key.

Connecting to the live gateway, its banner (reassembled STATUSTEXT across 4 frames) states the authentication requirement: a signed COMMAND_INT (DO_REPOSITION) from sysid 255 under the fleet link key, with a current signing timestamp. Sending that command alone is rejected ("send a HEARTBEAT first") — the gateway expects a signed HEARTBEAT from the same sysid immediately before the real command. Sending both, each freshly signed with the recovered key and a current timestamp, in that order, authenticates and returns an audit receipt containing the flag.

Flag

FlagCSCTF{outtKWeSPfH4CUR1hZMJdPOa}

What I took from it