pentest-malware

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

A malware investigation guide covering initial sample triage, code inspection, sandbox execution, indicator extraction, and YARA signature writing. A sandbox is an isolated environment for running suspicious files without exposing production systems.

In plain words
What is it for?
Use it to hash and inspect samples, identify packers, examine code with Ghidra or IDA, observe behaviour in a sandbox, extract network indicators, and write YARA detection rules.
Why use it?
It gives investigators a structured way to understand an unknown file and record signs that can be used to find related infections.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions Claude Code.

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

Good fit Use it to hash and inspect samples, identify packers, examine code with Ghidra or IDA, observe behaviour in a sandbox, extract network indicators, and write YARA detection rules.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fatihkan/badi/pentest-malware
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add fatihkan/badi --skill pentest-malware
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-malware

README.md
[![agentmods](https://agentmods.dev/badge/skills/fatihkan/badi/pentest-malware.svg)](https://agentmods.dev/skills/fatihkan/badi/pentest-malware)
Your own site
<a href="https://agentmods.dev/skills/fatihkan/badi/pentest-malware"><img src="https://agentmods.dev/badge/skills/fatihkan/badi/pentest-malware.svg" alt="Measured on agentmods" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,556 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 pass 7 Sept 2026
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.00069 $0.01556
Opus 5 $0.00034 $0.00778
Sonnet 5 $0.00014 $0.00311
Haiku 4.5 $0.00007 $0.00156

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

Security

Grade A, and why

pentest-malware 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/$(sha256sum sample.exe | cut -d' ' -f1)" \
.claude/skills-vault/pentest-malware/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-malware

Malware analysis advisory — static, dynamic, IOC, YARA. An isolated sandbox is mandatory for active analysis (never in production).

Triggers

  • "malware analysis"
  • "sample triage"
  • "Cuckoo / VMRay sandbox"
  • "RE with IDA / Ghidra"
  • "write a YARA signature"
  • "packer detection"
  • "IOC extract"

Triage Flow

1. Compute hash (SHA256)
2. VirusTotal query (is an offline detection available)
3. Strings + magic byte
4. Packer detection (PEiD, DIE)
5. Static disassembly (Ghidra/IDA)
6. Dynamic sandbox (Cuckoo, Any.run)
7. Network IOC (C2 domain, IP, JA3)
8. Write a YARA signature
9. Report

Hash + VT Lookup

# Hash
sha256sum sample.exe
md5sum sample.exe

# VT (API key required, offline report)
curl -s "https://www.virustotal.com/api/v3/files/$(sha256sum sample.exe | cut -d' ' -f1)" \
  -H "x-apikey: $VT_KEY" | jq '.data.attributes'

# A prior analysis may surface via the hash -> skip dynamic

Static Analysis

# File type
file sample.exe
file sample.bin

# Strings (ASCII + UTF-16)
strings -a -el sample.exe | grep -iE 'http|cmd|powershell|exec|reg|task'
strings sample.exe | grep -iE '\.exe$|\.dll$|\.bat$'

# PE header (Windows)
pefile.py sample.exe              # imports, exports, sections
peframe sample.exe                # high-level summary
DIE / Detect It Easy              # packer/protector detect

# ELF (Linux)
readelf -a sample.elf
objdump -d sample.elf | head

Packer Detect + Unpack

Packer Detect Unpack
UPX DIE / upx -l sample.exe upx -d sample.exe
ASPack DIE OllyScript / ESP trick
Themida DIE (full match) Manual / VMProtect unpacker
Custom Unknown signature Sandbox + memory dump
.NET obfuscation dnSpy strings de4dot, ConfuserEx unpacker

Dynamic Sandbox (Isolated)

# Cuckoo (self-hosted)
cuckoo submit --machine win10-clean sample.exe
# Result: behavior log, network capture, dropped files, registry changes

# REMnux (Linux analysis distro)
inetsim                          # fake internet (DNS, HTTP, SMTP)
oletools / olevba.py             # Office macro extract

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 · 69 tokens per session scan A e5f44653cf5c

Subscribe to this mod's changes

pentest-malware is a skill published in the GitHub repository fatihkan/badi (7 stars, last pushed 2d ago), licensed MIT. It adds 69 tokens to every session and 1,556 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.