badi: Skill for Claude Code

.claude/skills-vault/pentest-forensics/SKILL.md

pentest-forensics is a skill for Claude Code from fatihkan/badi. It costs 60 tokens per session (1,607 once invoked), scanned A, original, MIT.

A digital investigation guide for collecting and examining computer evidence after a security incident. It covers memory and disk images, logs, timelines, and indicators of compromise, which are clues that systems were breached.

In plain words
What is it for?
Use it to acquire memory and disk images, analyse them with tools such as Volatility, reconstruct an incident timeline, correlate logs, extract attack indicators, and document who handled each piece of evidence.
Why use it?
It provides an orderly way to preserve evidence, understand what happened, and avoid losing short-lived information such as running processes or network connections.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: positional $N argument; mentions Claude Code.

This is fatihkan/badi's own configuration. It tells Claude Code how to work on badi itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything badi configures →

Part of the badi plugin — 81 skills, 86 commands, 30 agents, 7 hooks shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to fatihkan/badi. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/fatihkan/badi/main/.claude/skills-vault/pentest-forensics/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/fatihkan/badi

Made for: Claude Code.

Or install badi, the plugin that ships this one along with the rest of its 81 skills, 86 commands, 30 agents, 7 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pentest-forensics

README.md
[![agentmods](https://agentmods.dev/badge/skills/fatihkan/badi/pentest-forensics.svg)](https://agentmods.dev/skills/fatihkan/badi/pentest-forensics)
Your own site
<a href="https://agentmods.dev/skills/fatihkan/badi/pentest-forensics"><img src="https://agentmods.dev/badge/skills/fatihkan/badi/pentest-forensics.svg" alt="Measured on agentmods" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,607 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high YARA Match · line 73
    YARA rule matched a known malware signature (reverse shell, backdoor, ransomware, C2 framework, or info stealer).
    Fix: Remove the malware payload or compromised file entirely. Investigate how it entered the skill and audit all other artifacts for additional indicators of compromise.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00060 $0.01607
Opus 5 $0.00030 $0.00804
Sonnet 5 $0.00012 $0.00321
Haiku 4.5 $0.00006 $0.00161

Measured yesterday against content hash 90ef4fdc14ef, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

pentest-forensics scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s "https://www.virustotal.com/api/v3/files/$hash" -H "x-apikey: $VT_KEY" \
.claude/skills-vault/pentest-forensics/SKILL.md · 193 lines

How it starts

The opening of the file, as written. The whole thing — 193 lines — stays where its author put it; the contents beside it link to each section on GitHub.

pentest-forensics

Digital forensics + incident response advisory. Engagement post-exploit analysis, breach investigation, IR support.

Triggers

  • "memory dump analysis"
  • "examine the disk image"
  • "extract the timeline"
  • "extract IOCs"
  • "with Volatility"
  • "Autopsy / FTK report"
  • "log correlation"
  • "evidence chain"

Evidence Acquisition (Order Matters)

1. Volatile memory (RAM)        -> disappears fastest
2. Network state                 -> active connections, route table
3. Running process               -> ps, lsof
4. Disk image                    -> bit-by-bit copy
5. Log/audit files               -> /var/log, Event Viewer
6. Backup + cold storage         -> non-volatile

Chain of custody documentation per acquisition: who, when, which tool, SHA256 hash.

Memory Acquisition

OS Tool Command
Linux AVML (Microsoft) avml memory.lime
Linux LiME (LKM) insmod lime.ko "path=/mnt/dump.lime format=lime"
Windows DumpIt / WinPmem DumpIt.exe /OUTPUT memory.raw
Windows Magnet RAM Capture GUI
macOS osxpmem osxpmem -o memory.aff4 /dev/pmem

Volatility 3 (Memory Forensics)

# Process list
vol -f memory.raw windows.pslist

# Network connections
vol -f memory.raw windows.netscan

# Malware detect: hidden process
vol -f memory.raw windows.psscan
vol -f memory.raw windows.psxview         # cross-view

# Injected code
vol -f memory.raw windows.malfind

# Registry keys (from memory)
vol -f memory.raw windows.registry.printkey --key "Software\Microsoft\Windows\CurrentVersion\Run"

# Mimikatz-like credential extraction (handle with care!)
vol -f memory.raw windows.hashdump
vol -f memory.raw windows.lsadump

# Linux
vol -f linux.lime linux.bash              # bash history from memory
vol -f linux.lime linux.pslist
vol -f linux.lime linux.malfind

Disk Image

# Acquisition (bit-by-bit with dd)
dd if=/dev/sda of=/mnt/external/disk.dd bs=4M conv=noerror,sync status=progress

# Hash verification
sha256sum /dev/sda > pre.hash
sha256sum disk.dd > post.hash
diff pre.hash post.hash      # should be identical

# E01 format (compressed + metadata)
ewfacquire /dev/sda

Read the full file on GitHub · 193 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 193 lines · 60 tokens per session scan A 90ef4fdc14ef

Subscribe to this mod's changes

pentest-forensics is a skill published in the GitHub repository fatihkan/badi (7 stars, last pushed today), licensed MIT. It adds 60 tokens to every session and 1,607 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-06.