/cybersec-toolkit:ctf-forensicsfrom cybersec-toolkit
Guides CTF forensics challenge solving with disk images, memory dumps, PCAPs, log analysis, file carving, and deleted file recovery. Covers Volatility, tshark, binwalk, and foremost workflows.
Ships in cybersec-toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Pre-flight. Confirm the event rules allow AI assistance (
authorization-gate). Start withsuggest_for_ctforguided_assessment. Commands below are CLI notation: run them withrun_tool/run_pipelineusing registry names (list_tools), andrun_scriptonly for real logic. If policy blocks a command, tell the operator; do not fall back to the client shell. A tool that is not in the registry is a recommendation to the user (approval-gated install), not a bare command.
run_tool("file", "<input>")
run_pipeline([{"tool": "xxd", "args": "<input>"}, {"tool": "head", "args": "-20"}])
| Magic | Type | First tool |
|---|---|---|
7F 45 4C 46 | ELF | use ctf-rev skill |
4D 5A | PE | use ctf-rev skill |
| PK | ZIP/JAR/APK/Office | unzip -l, binwalk |
D4 C3 B2 A1 / 0A 0D 0D 0A | PCAP / pcapng | wireshark |
45 56 46 | EWF / E01 image | ewfmount |
| Arbitrary blob, high entropy | Encrypted/compressed | binwalk / strings |
# Quick triage (capinfos ships with wireshark but is not a registry executable; use tshark)
run_tool("tshark", "-r <pcap> -q -z io,phs") # protocol hierarchy
run_tool("tshark", "-r <pcap> -q -z conv,tcp") # TCP conversations
run_tool("tshark", "-r <pcap> -q -z http,tree") # HTTP requests
# Extract objects
run_tool("tshark", "-r <pcap> --export-objects http,./out")
run_tool("foremost", "-i <pcap> -o ./carved")
# Search payloads
run_tool("tshark", "-r <pcap> -Y http.request.method==POST -T fields -e http.file_data")
USB HID keystroke decode (common challenge):
usb.capdata in tsharkusbkeyboard.py, usbrip)Bluetooth: btsnoop parser, wireshark natively decodes.
TLS with key log: run_tool("tshark", "-r <pcap> -o tls.keylog_file:keys.log") to decrypt.
# Registry name is volatility3 (binary vol); `vol3` below is shorthand for run_tool("volatility3", ...).
# No profile is needed with vol3
vol3 -f mem.raw windows.info
# Common plugins
vol3 -f mem.raw windows.pslist
vol3 -f mem.raw windows.cmdline
vol3 -f mem.raw windows.netstat
vol3 -f mem.raw windows.malfind
vol3 -f mem.raw windows.dumpfiles --pid <pid>
vol3 -f mem.raw windows.hashdump
vol3 -f mem.raw windows.lsadump
vol3 -f mem.raw windows.consoles # cmd.exe history
vol3 -f mem.raw windows.clipboard
vol3 -f mem.raw windows.registry.printkey --key "Software\Microsoft\Windows\CurrentVersion\Run"
# Linux
vol3 -f mem.raw linux.bash # bash history
vol3 -f mem.raw linux.psaux
mmls, fls, icat, fsstat and the other Sleuth Kit binaries run through run_tool when the sleuthkit registry tool is installed. ewfmount (ewf-tools) and photorec (testdisk) are not covered by the registry's extra-binary map, so run_tool may reject them; recommend an approved install instead of using the client shell.
# Mount EWF
ewfmount disk.E01 /mnt/ewf
mmls /mnt/ewf/ewf1 # partition table
fsstat -o <offset> /mnt/ewf/ewf1 # filesystem info
fls -r -o <offset> /mnt/ewf/ewf1 # file list (incl. deleted)
icat -o <offset> /mnt/ewf/ewf1 <inode> > out # extract by inode
# Prefer ewfmount / Sleuth Kit tools (read-only) over mounting.
# Mounting needs root, which the sandbox does not grant by default. If unavoidable:
losetup -fP --read-only disk.raw
mount -o ro,noload,noexec,nodev,nosuid /dev/loop0p1 /mnt/img
# Carve unallocated (foremost and scalpel are registry tools)
run_tool("foremost", "-i disk.raw -o ./carved")
run_tool("scalpel", "disk.raw") # config-driven carving
Browser history: dumpzilla (Firefox), hindsight (Chrome), or query SQLite directly.
NTFS artifacts: MFTECmd, Plaso/log2timeline for super timeline.
Registry: regripper, RegistryExplorer, manual hive parsing with python-registry.
If forensics challenge but file looks like an image/audio: try ctf-stego skill first. Forensics overlap heavily.
run_tool("binwalk", "-e <file>") # extract embedded files (--dd and -D are blocked by policy)
run_tool("foremost", "-i <file> -o out")
# Windows event logs
run_tool("chainsaw", "hunt ./logs -r sigma_rules")
# Generic (globs are not expanded: name each file)
run_pipeline([{"tool": "zgrep", "args": "-h pattern a.log.gz"}, {"tool": "sort"}, {"tool": "uniq", "args": "-c"}, {"tool": "sort", "args": "-rn"}])
goaccess and EvtxECmd are not in the registry; recommend them to the operator or use python-evtx (pipx) for .evtx files.
binwalk, foremost, pngcheckbkcrack)Use the writeup-template skill.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ctf, forensics, volatility, tshark, file-carving, memory-forensics
npx claudepluginhub 26zl/cybersec-toolkit --plugin cybersec-toolkit880 skills in this plugin
/acquiring-disk-image-with-dd-and-dcflddCreate forensically sound bit-for-bit disk images with dd or dcfldd on a Linux forensic workstation, preserving evidence integrity through hash verification (MD5/SHA) during acquisition. Use when imaging a suspect drive, USB device, or memory card for investigation, preserving volatile disk evidence during incident response, or producing a verified copy for legal or law-enforcement proceedings before any destructive analysis./add-toolUse when adding a new cybersecurity tool to this installer. Walks through editing the right module file, adding to tools_config.json, running validators, and syncing MCP server data if needed. Triggers on phrases like "add tool", "add <toolname>", "register a new tool", "include X in the installer"./Other plugins' skills for the same job