Skip to main content
CTFWorld
ForensicsDifficulty: Beginner -> Advanced

Digital Forensics & DFIR

Digital Forensics and Incident Response (DFIR) challenges hand you raw artifacts from a compromised system—PCAP traffic, RAM images, filesystem dumps, Windows Event Logs, or manipulated media—and task you with proving what happened and extracting hidden data.

Core Attack Classes & Concepts

Network & PCAP Forensics

Tracing attacker C2 beacons, cleartext credentials, DNS tunneling, and exfiltrated files inside packet captures.

Key Techniques: Wireshark display filters, tshark field extraction, HTTP/SMB object export, and TLS keylog decryption.

Memory Forensics

Analyzing RAM snapshots to uncover fileless malware, injected processes, clipboard contents, and encryption keys.

Key Techniques: Volatility 3 plugins (windows.pslist, netscan, cmdline, malfind, filescan, dumpfiles).

Disk, Registry & Log Timelines

Recovering deleted files, persistence mechanisms, and attacker movement across Windows/Linux hosts.

Key Techniques: Autopsy/SleuthKit, EVTX parsing (Event IDs 4624/4625/4688/7045), Shimcache, Amcache, and bash_history.

File Carving & Format Repair

Extracting embedded payloads or fixing corrupted headers in PNG, ZIP, PDF, or SQLite files.

Key Techniques: binwalk, foremost, pngcheck, hex-editing IHDR dimensions or magic signatures, and exiftool metadata checks.

Steganography (Practical Scope)

Detecting data hidden in image LSBs, audio spectrograms, or document XML layers.

Key Techniques: zsteg, steghide, Sonic Visualiser spectrograms, and inspecting ZIP/DOCX internal XML streams.

Competition Methodology Checklist

  1. 1

    Preserve the original evidence file and inspect metadata first (file, sha256sum, exiftool, strings).

  2. 2

    Build a chronological timeline: identify initial access, execution, persistence, and exfiltration windows.

  3. 3

    Filter out noise aggressively—in PCAPs check Protocol Hierarchy and Conversations before reading individual packets.

  4. 4

    Verify file headers and trailing bytes whenever an artifact fails to open cleanly.

  5. 5

    Correlate multiple artifacts (e.g., suspicious PID in memory -> matching outbound IP in PCAP -> persistence key in Registry).

Reference Pattern

Extracting Suspicious DNS Queries with tshark
bash
# Pull unique queried domains from a capture to spot DNS exfiltration
tshark -r capture.pcapng -Y "dns.flags.response == 0" \
  -T fields -e dns.qry.name | sort -u

One-line tshark pipelines expose C2 domains and hex-encoded DNS exfiltration fast.

Recommended Practice Progression

Challenge / TrackPlatformLevelFocus
Forensics EssentialspicoCTFBeginnerMetadata, PCAPs, and file header recovery
Blue Team Labs & InvestigationsCyberDefendersIntermediateRealistic SOC, PCAP, Volatility, and Splunk investigations
DFIR & Sherlock ScenariosHack The BoxIntermediateEnd-to-end breach reconstruction with logs and memory
Holiday Hack DFIR ObjectivesSANS Holiday HackBeginnerGuided log analysis and packet triage

Defensive Engineering Takeaway

Centralized, tamper-resistant logging (Sysmon, auditd, CloudTrail) plus synchronized UTC timestamps dramatically cut incident investigation time from days to minutes.