MISSION WRITEUP ID: cylab-stego-rsaPublished: 2026-08-16 by AUKA
StegoRSA: Private Key Hidden in Image EXIF Metadata
Extracting an RSA private key concealed as hex-encoded text in an image's EXIF metadata to decrypt an encrypted flag file.
Target Mission Dossier
CryptoEasy
Target Host / IP
Offline Challenge Files
Operating System
Linux / Windows
Architecture
N/A
Primary Vulnerability
Steganographic Key Concealment
Exposed Services:Forensic Image & Cryptographic Analysis
Attack Kill Chain Progress1 / 4 Steps
01
Phase 1: EXIF Metadata Analysis
We are given two challenge files: `flag.enc` and `image.jpg`. Running `exiftool` on `image.jpg` reveals a suspicious hex-encoded string stored inside one of the image's metadata fields.
studio@pwnbox:~/cylab-stego-rsa$
02
Phase 2: Decoding the RSA Private Key
Decoding the hexadecimal string reveals a PEM-formatted RSA private key (`-----BEGIN PRIVATE KEY-----`).
studio@pwnbox:~/cylab-stego-rsa$
03
Phase 3: Decrypting the Flag with OpenSSL
With the valid RSA private key in hand, we decrypt `flag.enc` using `openssl pkeyutl`.
studio@pwnbox:~/cylab-stego-rsa$
04
Phase 4: Flag Verification
The recovered plaintext matches the target flag:
studio@pwnbox:~/cylab-stego-rsa$
Final Target Proof of Compromise
Target Root Capture Flag
STUDIO{pwn3d_fl4g_h1dd3n_h3x_00000}