Investigation Workbench • Challenge 3
Identify the Container File Type
File extensions can be easily manipulated or spoofed. Use the file command to inspect the internal magic bytes of the target sample and verify what kind of container you are analyzing.
.eml format is an RFC 822 / RFC 2822 internet message standard. The file utility confirms it contains UTF-8 text rather than a compiled executable, which guides our decision to inspect it via text pagers before launching extraction tools.
Terminal Paging & Searching for Attachments
Printing the entire raw email with cat floods your terminal with megabytes of Base64 strings. Use less to inspect the email header by header and search for the MIME attachment boundaries and leaked credentials.
Definitely not the password: honeybadger4lyfe. Furthermore, the Content-Type: image/jpeg; name="secretphoto.jpeg" header reveals an embedded JPEG file.
Carve the MIME Attachment with munpack
Rather than manually decoding Base64 or launching heavy GUI mail clients, use the munpack CLI utility (from the mpack package) to extract the JPEG attachment directly into your working directory.
secretphoto.jpeg (the primary evidence file) and secretphoto.desc (MIME description header). Verify with ls -la.
Extract Suspicious EXIF Metadata Comment
Opening the image in an image viewer shows a normal photograph. Run exiftool to perform deep metadata inspection. Look for non-standard tags, particularly the Comment field.
U2FsdGVkX18KFhm4mZ2SwRS7J9jOm2EuecqdadiwCqDFFfA+VIKlg88xIJ/A0l+l. The prefix U2FsdGVkX18= is the Base64 representation of Salted__, the signature magic header of an OpenSSL encrypted container!
Decrypt OpenSSL AES-256 Payload & Recover Flag
Extract the raw comment and pipe it into OpenSSL for decryption using the leaked passphrase (honeybadger4lyfe), AES-256-CBC cipher, Base64 decoding (-a), and PBKDF2 key derivation.
Target Reconnaissance & Triage
You have retrieved stego_badger.jpeg. Run baseline triage with file and exiftool. Note that unlike Challenge 1, no obvious ciphertext exists in the EXIF comments.
steghide.
Analyze Clues & Prepare Wordlist
The operative's brief included a subtle hint: "WE WILL, WE WILL..." — a clear reference to Queen's famous anthem Rock You. In Kali Linux, the standard dictionary is /usr/share/wordlists/rockyou.txt.
High-Speed Passphrase Cracking with Stegseek
Standard stegcracker can take several minutes to test dictionaries. Modern forensic teams use stegseek, a lightning-fast tool capable of testing millions of passwords per second against steghide carriers.
password123.
Extract the Concealed Document
With the recovered passphrase, use steghide extract to carve the concealed payload file into doc.txt.
Inspect Recovered Artifact & Claim Flag
Inspect the extracted file. Line 1 contains the Challenge 2 flag. Do not discard the document! Line 9 contains the ciphertext needed for Challenge 4, and the remaining 201 records provide key material for Challenge 3.
Analyze Concatenated Seams with Binwalk
Run binwalk Honey.jpeg. Unlike normal images with a single trailer (FF D9), this carrier is a stacked multi-file composite containing OpenSSL salt signatures (Salted__), ZIP archives, and an embedded inner JPEG.
Reason Out Passphrase from the "John" Story
The operative narrative teaches you to build the key, not brute-force it: Codename (DesertStorm) + # + mask ?d?d?l?u?l (82pLm) = DesertStorm#82pLm. Decrypt the outer bundle secret.enc.
secret_bundle.zip reveals: qtbl.py (DQT extractor), STEGO_KEY_368.txt (201 records), passwords.enc, and iv.bin.
Construct Stego Key 368
The filename 368 directs you to select record #3, record #6, and record #8 from the 201 records in STEGO_KEY_368.txt and concatenate them in reference order.
Extract AES Key from JPEG Quantization Tables
Execute qtbl.py extract against the carved inner JPEG nothingtoseehere.jpg using the synthesized 72-character key to pull the raw 32-byte AES key.
Decrypt Nested Payloads & Reveal Final Flag
Decrypt passwords.enc using the raw key and IV, extract the high-entropy payload password, and decrypt payload.enc to reveal the flag!
Read the MMU Mission Memo
The mission directive instructs: "MMU, your TLB is empty. You must perform a PT walk to resolve virtual address VA = 0x0000_0100_4040_1005 into a physical location in our memory warehouse."
48-bit x86-64 Page-Table Bit Splitting
In x86-64 hardware, the 48-bit virtual address is partitioned into four 9-bit table indices and a 12-bit page offset: [PML4 9b][PDPT 9b][PD 9b][PT 9b][Offset 12b].
PML4 = 2, PDPT = 1, PD = 2, PT = 1, Offset = 5 → [2, 1, 2, 1, 5].
Translate Vector to Physical Warehouse Location
Map the hierarchy on the warehouse floor from large structures to small: L1/PT → Row 1; L2/PD → Bay 2 (Back); L3/PDPT → Shelf 1 (Bottom); L4/PML4 → Sub-section 2; Offset → Box 5.
Inspect Field Note & Identify Cipher Clues
Inside Box 5 is a handwritten note with 4 corner words: Honey (Top-Left), Badger (Top-Right), Heck (Bottom-Left), Yeah (Bottom-Right), pointing to "dCode" and "Line #9".
Execute Keyed Four-Square Decryption
Line 9 from the Challenge 2 document is UPNAHLNSIBESOLTUEBUPDNEY. Decrypt this 24-character ciphertext using a Four-Square cipher where all four 5x5 squares are keyed with the corner words!
Mission Dossier
Ch 3Submit Challenge Flag
+100 XPEnter the recovered flag for Challenge 3 to verify and claim your XP reward.
Starter Files & Repo
4 FilesCommand Quick Reference
Ch 3 CLI- binwalk Honey.jpeg Scans and maps all concatenated payload seams.
- openssl enc -d -aes-256-cbc -pbkdf2 -pass pass:'DesertStorm#82pLm' -in secret.enc -out secret_bundle.zip Unlocks first layer with reasoned narrative password.
- unzip secret_bundle.zip Unpacks qtbl.py, STEGO_KEY_368.txt, passwords.enc, iv.bin.
- python3 qtbl.py extract -i nothingtoseehere.jpg -o aeskey.bin -k "R3‖R6‖R8" Extracts raw 32-byte AES key from quantization tables.
- openssl enc -d -aes-256-cbc -in passwords.enc -out passwords.txt -K $KEY -iv $IV Recovers master payload password to decrypt payload.enc.