Skip to main content
Playbook: Forensics, Steganography & Misc Puzzles
Lesson 3 of 8

Playbook: Forensics, Steganography & Misc Puzzles

Triage packet captures, embedded file containers, lossless image LSB layers, audio spectrograms, and layered Misc puzzles using Wireshark, binwalk, zsteg, and Audacity.

Intermediate 26 min CTF

Learning objectives

  • Preserve evidence integrity by hashing and copying files before running forensic or stego tools
  • Triage PCAP network captures and extract embedded containers using Wireshark and binwalk
  • Detect LSB payloads in lossless images with zsteg and visual clues in audio spectrograms with Audacity
  • Deconstruct multi-layer Misc puzzles systematically and avoid destructive extraction mistakes

Recommended first: CTF Formats, Toolkits, Ethics & Structured Note-TakingPlaybook: Web (veb-tahlil), Crypto (kriptografiya) & OSINT

#Why this matters

Digital Forensics (raqamli-izquarlik), Steganography (steganografiya), and Misc challenges reward careful observation over exploit speed. A single wrong assumption -- trusting a .jpg filename extension, opening a huge PCAP without filtering, or running zsteg on a lossy image -- sends analysts down dead ends. A clean playbook extracts the signal quickly and teaches evidence-handling habits used in real incident response.

#Forensics (raqamli-izquarlik) playbook

Start every forensic task with evidence integrity: compute a SHA-256 hash of the original file and work exclusively on a copy.

  1. Verify magic bytes: Run file or inspect the first bytes (xxd / hexdump) to catch renamed archives, scripts, or executables.
  2. Carve appended files: Scan images, documents, or firmware blobs with binwalk to spot embedded ZIP, PNG, or gzip signatures after the main file ends.
  3. Filter PCAP captures in Wireshark: Check Protocol Hierarchy under the Statistics menu first instead of scrolling through thousands of packets. Apply display filters (http, dns, ftp-data), use Follow TCP Stream from the packet context menu, or export payloads via Export Objects (HTTP) under the File menu.
  1. Hash & Copysha256sum evidence before touching
  2. Identifyfile and magic bytes inspection
  3. Carve / Filterbinwalk or Wireshark display filter
  4. ReconstructFollow TCP stream or inspect carved files

Starter file carving and PCAP triage feed directly into advanced DFIR modules, including memory forensics with Volatility 3 and host log timeline analysis.

#Steganography (steganografiya) playbook

Match your steganography check to the media encoding, because compression changes where data can survive:

  • Lossless images (PNG, BMP): Pixel values are preserved exactly, making least-significant-bit (LSB) hiding reliable. Run zsteg -a copy.png to scan RGB bitplanes and byte orders automatically, and check chunk comments or trailing bytes after IEND.
  • Lossy images (JPEG): JPEG quantizes frequency coefficients rather than storing raw pixels, so naive pixel LSB tools fail. Look for appended archives (binwalk), EXIF/XMP tags (exiftool), or JPEG-specific coefficient tools.
  • Audio (WAV, MP3): Open the track in Audacity and switch the track dropdown to Spectrogram. Challenge authors frequently draw flags in high frequency bands (14-22 kHz) or encode DTMF tones and Morse signals.
Triaging an image for appended archives and PNG LSB payloads
$ sha256sum evidence.png > evidence.sha256
$ cp evidence.png work.png
$ file work.png
work.png: PNG image data, 640 x 480, 8-bit/color RGBA, non-interlaced
$ binwalk work.png

DECIMAL       HEXADECIMAL     DESCRIPTION
--------------------------------------------------------------------------------
0             0x0             PNG image, 640 x 480, 8-bit/color RGBA
41820         0xA35C          Zip archive data, at least v2.0 to extract

$ zsteg -a work.png | head -n 4
b1,rgb,lsb,xy       .. text: "hint: inspect offset 0xA35C"

Notice how zsteg found a text clue in the RGB LSB plane while binwalk located an appended ZIP archive at offset 0xA35C.

#Misc puzzles playbook

Misc tasks sit at the edges of other categories: nested Russian-doll archives (tar, gzip, zip), inverted or damaged QR codes, esoteric languages, or interactive TCP services (nc lab.local 9001).

  • Script repetitive layers: If an archive contains 100 nested compressed files, write a short Python or Bash loop that checks file on each layer and unpacks into a clean scratch directory.
  • Inspect structure before brute force: Check line endings, trailing spaces/tabs (whitespace stego), and zero-width Unicode characters in text puzzles.
Domain Primary tools First check Deeper module
raqamli-izquarlik Wireshark, binwalk, Volatility 3 Hash, file, Protocol Hierarchy / carving DFIR & Incident Response
steganografiya zsteg, Audacity, exiftool Lossless vs lossy format, LSB or Spectrogram Media & Stego Analysis
misc Python, CyberChef, file Layer detection, whitespace, scripted unpack Scripting & Triage

#Common mistakes

  • Skipping the baseline hash and copy: Modifying the original evidence file breaks forensic integrity and makes recovery impossible if an extraction goes wrong.
  • Running zsteg on JPEG files: Lossy DCT compression destroys pixel LSB data; zsteg targets lossless PNG and BMP images.
  • Blindly extracting untrusted archives: Using binwalk -e or unpacking nested archives without checking paths can trigger zip bombs or path traversal into parent directories; inspect offsets first and extract inside an isolated directory.
  • Reading packets one by one in Wireshark: Skipping Protocol Hierarchy and display filters wastes minutes on background noise like ARP or TLS handshakes.

#Summary

Forensics, Steganography, and Misc challenges test disciplined observation and evidence handling. Hash and duplicate artifacts first, confirm true formats with file, carve appended containers with binwalk, and focus Wireshark captures using Protocol Hierarchy and stream reconstruction. Match stego tools to the medium -- zsteg for lossless PNG/BMP bitplanes and Audacity's Spectrogram for audio -- and script repetitive Misc layers cleanly.

Knowledge check

Sign in to take the test, complete lessons and save your progress. Log in

Practice: test your knowledge