agentleFS
MysterionRiseMysterionRise/ctf-kit/skills/forensics/SKILL.md

forensics

Skill12 starsChanged 9 months agoMITView on GitHub

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).

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this command for challenges involving:

    line 19
  2. Very specific:

    Read the JSON next_steps object to decide what to do:

    line 47
  3. Very specific:

    All scripts produce === PARSED RESULTS (JSON) === sections.

    line 90
  4. Very specific:

    When using /ctf-kit:team-solve with a forensics challenge, the lead spawns 3 specialists:

    line 101

“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. First check tool availability: bash scripts/check-tools.sh
  2. For quick embedded file detection:

    bash scripts/run-binwalk.sh $ARGUMENTS
    bash scripts/run-binwalk.sh <file> --extract    # also 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
  3. 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.

  4. For memory dumps:

    bash scripts/run-volatility.sh <dump>                    # system info
    bash scripts/run-volatility.sh <dump> windows.pslist     # processes
    bash scripts/run-volatility.sh <dump> windows.netscan    # network
    bash scripts/run-volatility.sh <dump> windows.cmdline    # commands

    The JSON output includes parsed table data and flags suspicious processes.

  5. For network captures:

    bash scripts/run-tshark.sh <pcap>
    bash scripts/run-tshark.sh <pcap> "http.request"    # with filter

    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:

  1. run-binwalk.sh challenge.bin → JSON shows archives inside
  2. extract-and-analyze.sh challenge.bin → extracts and analyzes each file
  3. Based on JSON suggestions, follow up with specific tools

Output Format

All scripts produce === PARSED RESULTS (JSON) === sections. Key fields:

FieldDescription
signaturesEmbedded file signatures found
file_typesTypes of embedded files
next_stepsBoolean flags for what was found
suggestionsActionable next commands

Team Roles

When using /ctf-kit:team-solve with a forensics challenge, the lead spawns 3 specialists:

RoleTeammate NameFocusToolsFirst Action
File & Diskfile-carverFile carving, embedded data extraction, disk image mounting, deleted file recovery, filesystem analysisbinwalk, foremost, scripts/run-binwalk.sh, scripts/extract-and-analyze.shRun extract-and-analyze pipeline on all challenge files
Memorymemory-analystVolatility3 plugins, process trees, registry hives, command history, DLL injection, malware indicatorsvolatility3, scripts/run-volatility.shRun pslist, netscan, cmdline, filescan on memory dump
Networknetwork-analystProtocol analysis, stream reconstruction, credential extraction, DNS exfiltration, HTTP object carvingtshark, scripts/run-tshark.shRun 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

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.