DROPDOWN QUAKE HUD // TACTICAL SHELL
AUKA CTF Writeup Vault — Quake HUD Shell v3.1
Type 'help' for tactical commands or 'ls' to list catalog.
studio@vault:~$
AUKACTFVAULT._.
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$
# Inspect image metadata:
exiftool image.jpg

# A large hexadecimal string starting with 2d2d2d2d2d424547494e... is discovered.
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$
# Convert hex string to PEM key:
echo "2d2d2d2d2d424547494e..." | xxd -r -p > private.key

# Verify key format:
openssl rsa -in private.key -check
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$
# Decrypt ciphertext:
openssl pkeyutl -decrypt -inkey private.key -in flag.enc -out flag.txt

# Read flag:
cat flag.txt
04

Phase 4: Flag Verification

The recovered plaintext matches the target flag:

studio@pwnbox:~/cylab-stego-rsa$
Flag: [REDACTED - Click "Reveal Flag" below]

Final Target Proof of Compromise

Target Root Capture Flag
STUDIO{pwn3d_fl4g_h1dd3n_h3x_00000}
AUKA CTF Writeup Vault — Official Field Handbook
[ Open Terminal Shell ]•[ Back to Top ]