DL·SYS
Contact ↗

CSCTF 2026 · Reverse engineering · 540 pts

Carrier Shadow.

34KB of a second payload is hiding inside the spacing between function addresses in an ELF's own exception-handling metadata.

ELF metadata steganographyCanonical Huffman
EventCSCTF 2026, Operation Dawn (online jeopardy)
CategoryReverse engineering
Points540
StatusSolved during the event
Targetbinary, offline

TL;DR. A static ELF's main function reads its payload not from any data section, but from the numeric gaps between consecutive function-start addresses in its own `.eh_frame_hdr` table — decoded through a xorshift32 sync marker, a canonical Huffman table, an XOR checksum, and a keystream, to reveal a second-stage 34KB static ELF.

Challenge

Recover an "operation-dawn authorization" string that a binary's main function reports as a runtime check — without an obviously present data payload.

Solution

The binary's .eh_frame_hdr table — ordinarily just an index of function start addresses for stack unwinding — has 24,816 entries, far more than the binary's actual function count. A decoder at offset 0x995e0 reads this table at runtime, looking for an 8-gap marker generated by a xorshift32 PRNG seeded with 0x6a2b3c4d (producing values in x % 61 + 34). After that marker come a table selector, a 4-byte length, and an XOR checksum.

Every remaining gap, minus a constant offset of 2, is a symbol in a canonical Huffman code defined by a table at offset 0x9b340. Reimplementing this decoder in Python and running it against the real .eh_frame_hdr gaps reproduces the stated XOR checksum exactly (116), and the Huffman-decoded, then xorshift-keystream-XORed, then raw-inflated output is a complete 34KB static ELF — a second stage.

That second stage's own main prints "payload: operation-dawn authorization = %s" with the flag pulled directly from its own .rodata.

Flag

FlagCSCTF{b3Oz2vgRuhe66X7SaM1B8qhUjfM2hV}

What I took from it