MISSION WRITEUP ID: cylab-flag-in-flamePublished: 2026-08-20 by AUKA
Flag in Flame: Base64 Log Carving & OCR Extraction
Carving a massive Base64-encoded PNG image concealed within system logs and decoding an embedded hex string using OCR.
Target Mission Dossier
ForensicsEasy
Target Host / IP
Offline Challenge File
Operating System
Linux
Architecture
x86_64
Primary Vulnerability
Log File Steganography
Exposed Services:Log Analysis & OCR
Attack Kill Chain Progress1 / 3 Steps
01
Phase 1: Log Inspection & Payload Carving
A huge log file `logs.txt` was flagged by a SOC team. Reviewing the contents reveals that normal log events end abruptly and are replaced by a massive continuous Base64 payload block.
studio@pwnbox:~/cylab-flag-in-flame$
02
Phase 2: OCR Text Recognition with Tesseract
The decoded image `logs.png` displays graphical text containing a hexadecimal string. To extract it accurately without manual transcription error, we use Tesseract OCR:
studio@pwnbox:~/cylab-flag-in-flame$
03
Phase 3: Hex Decoding & Flag Recovery
Converting the discovered hex string back to ASCII characters produces the challenge flag:
studio@pwnbox:~/cylab-flag-in-flame$
studio@pwnbox:~/cylab-flag-in-flame$
Final Target Proof of Compromise
Target Root Capture Flag
STUDIO{pwn3d_fl4g_h1dd3n_h3x_00000}