Skip to content
Adam Omar Saleh

Chronos Security logo, as used by CSCTF 2026CSCTF 2026Misc

Operation Dawn: The Reconnaissance Plate

The two least significant bits of the PNG carry two independent 1-bit LSB streams, one in bit 0 and one in bit 1.

Competition
Chronos Security logo, as used by CSCTF 2026CSCTF 2026
Category
MiscEasy
Source status
Source-documented · not platform-verified
Document
PDF edition3 min read

Brief

The challenge

Category
MISC
Difficulty
Easy
Points
154
File
recon-plate.png

Operation Dawn, annex entry 11. We recovered a reconnaissance plate from an overrun Ash observation post. The photograph itself is unremarkable, but our interpreters are certain the annotation we need was carried out on it. Recover it.

Challenge page
Challenge page

TL;DR

The two least significant bits of the PNG carry two independent 1-bit LSB streams, one in bit 0 and one in bit 1. Each stream is a 4-byte big-endian length followed by a .tar.gz holding caption.txt, grid.txt and annotation.txt. The bit-0 archive is labelled a "Range card practice plate. Not for action.", so it's a decoy. The bit-1 archive is the real reconnaissance plate, and its annotation gives the flag.

Text
bit 1 of R,G,B (raster order) → [len u32 BE][tar.gz] → plate/annotation.txt → flag

01

Recon

recon-plate.png is a 256×256 RGB PNG with only IHDR, IDAT and IEND chunks, no metadata and no trailing data. The picture is two noisy diagonal gradients.

The bit planes show the trick straight away. Every channel value in the image is a multiple of 4 (bits 0 and 1 cleared), except in the first ~780 pixels (rows 0–3):

Text
bit0/bit1 density per channel: 0.006   (bits 2–7 ≈ 0.5)last non-zero low-bit symbol: index 2340 of the R,G,B stream
Low two bits — only the top rows are non-zero
Low two bits — only the top rows are non-zero

02

The trap: reading it as 2-bit LSB

The obvious move is to read 2 bits per channel and pack them into bytes. That gives 586 bytes that look almost random, plus a run of 26 × 0x90 that looks like an x86 NOP sled. It isn't one. Disassembly, string searches, all bit orders and channel orders, compression scans and XOR all fail. The run is just what you get when two unrelated streams are interleaved bit by bit.

The tell is in the head of the data. The early symbols are almost all 0 or 3 (both low bits equal), which suggests bit 0 and bit 1 carry nearly identical but separate data.

03

Splitting the planes

Read each bit plane on its own (R, G, B interleaved, raster order, MSB-first bytes):

Bit 1 (top) and bit 0 (bottom) of rows 0–3
Bit 1 (top) and bit 0 (bottom) of rows 0–3
Text
bit 1: 00 00 01 22 | 1f 8b 08 00 ...   → length 290, gzipbit 0: 00 00 01 23 | 1f 8b 08 00 ...   → length 291, gzip

Both are gzip-compressed tar archives (ustar) with the same three files.

04

Two plates, one real

bit 1bit 0
caption.txtNorth ridge, 0500. Low cloud over the valley. Plate 7 of 9.Range card practice plate. Not for action. Plate 2 of 9.
grid.txtgrid 41-D elev 540 bearing 075 range 1200(same)
annotation.txtRECON SERIAL 11 THE GUNS BEHIND THE RIDGE CODE 3F8C21DRILL SERIAL 11 HOLD THE RIDGE LINE UNTIL RELIEVED CODE 48B473

The bit-0 plate says outright that it is a drill ("practice plate", "Not for action"). The bit-1 plate is the operational reconnaissance plate, which matches the challenge title and annex entry 11.

Following the Operation Dawn flag format (CSCTF{<entry>_<message>_<code>}, as in CSCTF{12_the_depot_is_unguarded_at_noon_7d3e90}):

05

Solve script

Python
import gzip, io, struct, tarfileimport numpy as npfrom PIL import Image​px = np.array(Image.open("recon-plate.png").convert("RGB")).reshape(-1)for bit in (1, 0):    bits = "".join(str((v >> bit) & 1) for v in px[:8000])    stream = bytes(int(bits[i:i + 8], 2) for i in range(0, len(bits) - 7, 8))    length = struct.unpack(">I", stream[:4])[0]    tar = tarfile.open(fileobj=io.BytesIO(gzip.decompress(stream[4:4 + length])))    for m in tar.getmembers():        print(bit, m.name, tar.extractfile(m).read().decode().strip())

The extracted archives are kept in extracted/.

Flag

Flag

CSCTF{11_the_guns_behind_the_ridge_3f8c21}

Source-documented · not platform-verified

PDF edition

Writeup PDF

Formatted edition of this walkthrough, built from my source notes · 5 pages.