CSCTF 2026 · Forensics · 391 pts
Polyglot Requiem.
A git repo's malicious commit is the decoy — the real secret is sealed inside an image file that's secretly also a ZIP archive, and decrypted by a tool bundled right next to it.
| Event | CSCTF 2026, Operation Dawn (online jeopardy) |
|---|---|
| Category | Forensics |
| Points | 391 |
| Status | Solved during the event |
| Target | repo + image polyglot, offline |
TL;DR. A git repository's suspicious dangling commit (a malicious curl command) is a deliberate decoy. The real payload is a PNG/ZIP polyglot image containing an SQLite database and a small stripped ELF binary whose own algorithm — a SHA-256 keystream built from a PNG tag and a commit timestamp — decrypts a hidden row sitting in the SQLite database's freelist.
Challenge
Recover a sealed provenance marker hidden in a git repository, without being misled by an obviously malicious commit.
Solution
The repository contains a dangling commit, reachable only via ORIG_HEAD, that runs a suspicious curl command — exactly the kind of artifact an investigation would normally chase first, and exactly why it's a decoy here: it leads nowhere further.
The real payload is hidden in plain sight as a tracked asset, telemetry_icon.png: a valid 10×10 PNG with a ZIP archive appended after it (a standard polyglot, since ZIP's central directory is read from the end of the file backward, ignoring whatever valid-looking data precedes it). The appended ZIP contains a SQLite database, telemetry_cache.db, and a small stripped x86-64 ELF, assetsignd.
Reading (never running) assetsignd shows it's a signer whose keystream is SHA256(reverse(tag_bytes) || epoch_LE8), repeated and XORed cyclically over its input 32 bytes at a time. The tag input comes from the PNG's own tEXt "Provenance" metadata chunk (0f18e37122ddbcca); the epoch is the git commit's own timestamp (1792061626).
The actual ciphertext isn't a visible row in the SQLite database — it's a deleted row, ci_provenance_seal, still present as a 36-byte blob in the database's freelist (SQLite doesn't zero deleted page content by default). Decrypting that blob with the derived keystream produces clean ASCII, confirming the flag.
Flag
CSCTF{p0lygl0t_r3qu13m_1d0a73980738}What I took from it
- A PNG with a ZIP appended after it is a classic, fully valid polyglot since both formats are read from a different end of the file — and a SQLite database's freelist can still hold deleted row content that a normal query never surfaces.