| name | forensics |
| description | Solve CTF forensics challenges: memory dumps, network captures, disk images, and file carving. Use when you see: .vmem .raw .dmp memory dumps, .pcap .pcapng network captures, .dd .E01 disk images, or embedded/hidden files. Triggers: "memory dump", "packet capture", "disk image", "file carving", "deleted files", "volatility". Tools: volatility3, binwalk, foremost, tshark, sleuthkit. NOT for steganography (use stego) or binary exploitation (use pwn). |
CTF Forensics
Analyze and solve forensics challenges.
When to Use
Use this command for challenges involving:
- Memory dumps (.vmem, .raw, .dmp)
- Network captures (.pcap, .pcapng)
- Disk images (.dd, .E01, .raw)
- Embedded/hidden files
- File carving
- Timeline analysis
Bundled Scripts
- check-tools.sh โ Verify required forensics tools are installed
- run-binwalk.sh โ Scan and extract embedded files. Outputs JSON with signatures, file types, and extraction suggestions.
- run-volatility.sh โ Run volatility3 plugins on memory dumps. Outputs JSON with parsed table data and suspicious process detection.
- run-tshark.sh โ Analyze PCAP files with protocol statistics. Outputs JSON with protocols, conversations, and HTTP/DNS/FTP suggestions.
- extract-and-analyze.sh โ Multi-step pipeline: binwalk extract โ file type each โ strings on interesting files โ flag search. Chains extraction with analysis automatically.
Instructions
-
First check tool availability: bash scripts/check-tools.sh
-
For quick embedded file detection:
bash scripts/run-binwalk.sh $ARGUMENTS
bash scripts/run-binwalk.sh <file> --extract
Read the JSON next_steps object to decide what to do:
has_archives: true โ extract with binwalk -e
has_executables: true โ analyze with strings/disassembler
has_images: true โ check with /ctf-kit:stego
-
For full extract-and-analyze pipeline (chains binwalk โ file โ strings):
bash scripts/extract-and-analyze.sh <file>
This automatically extracts embedded files, identifies their types, searches for flags and secrets, and suggests next skills to use.
-
For memory dumps:
bash scripts/run-volatility.sh <dump>
bash scripts/run-volatility.sh <dump> windows.pslist
bash scripts/run-volatility.sh <dump> windows.netscan
bash scripts/run-volatility.sh <dump> windows.cmdline
The JSON output includes parsed table data and flags suspicious processes.
-
For network captures:
bash scripts/run-tshark.sh <pcap>
bash scripts/run-tshark.sh <pcap> "http.request"
The JSON includes protocol detection (has_http, has_dns, has_tls) with specific extraction commands.
Multi-Step Workflow
The scripts are designed to chain. A typical forensics workflow:
run-binwalk.sh challenge.bin โ JSON shows archives inside
extract-and-analyze.sh challenge.bin โ extracts and analyzes each file
- Based on JSON
suggestions, follow up with specific tools
Output Format
All scripts produce === PARSED RESULTS (JSON) === sections. Key fields:
| Field | Description |
|---|
signatures | Embedded file signatures found |
file_types | Types of embedded files |
next_steps | Boolean flags for what was found |
suggestions | Actionable next commands |
Team Roles
When using /ctf-kit:team-solve with a forensics challenge, the lead spawns 3 specialists:
| Role | Teammate Name | Focus | Tools | First Action |
|---|
| File & Disk | file-carver | File carving, embedded data extraction, disk image mounting, deleted file recovery, filesystem analysis | binwalk, foremost, scripts/run-binwalk.sh, scripts/extract-and-analyze.sh | Run extract-and-analyze pipeline on all challenge files |
| Memory | memory-analyst | Volatility3 plugins, process trees, registry hives, command history, DLL injection, malware indicators | volatility3, scripts/run-volatility.sh | Run pslist, netscan, cmdline, filescan on memory dump |
| Network | network-analyst | Protocol analysis, stream reconstruction, credential extraction, DNS exfiltration, HTTP object carving | tshark, scripts/run-tshark.sh | Run tshark stats, extract HTTP objects, check DNS queries |
When to broadcast
- File carver: "Extracted N files, found image/pcap/binary inside" โ other specialists claim the extracted file
- Memory: "Found suspicious process PID with network connection to X" โ network analyst filters for that IP
- Network: "HTTP POST contains credentials / encoded data" โ file carver or memory analyst cross-references
- Any: "Found the flag" โ immediate broadcast, all stop
Example Usage
/ctf-kit:forensics memory.raw
/ctf-kit:forensics capture.pcap
/ctf-kit:forensics disk.img