/malware-analysis:malware-analysisfrom malware-analysis
Orchestrates the full malware analysis lifecycle: triage, dynamic analysis, detection engineering, and report writing. Routes to specialized sub-skills by file type and phase, carries findings between phases, and supports multi-sample batch workflows.
Ships in malware-analysis. 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.
Single entry point for malware analysis engagements. Routes to specialized sub-skills, carries findings between phases, and manages multi-sample workflows.
You describe what you need — "analyze this sample", "I have 5 files to triage", "create detection rules from my findings" — and this orchestrator:
analysis_state.md)You never need to invoke sub-skills directly.
Claude does the work on the host. Hashing, file, PE parsing, strings, IOC extraction, macro/PDF/script deobfuscation, .NET decompilation, Procmon/Sysmon/tshark parsing, rule authoring and testing, report writing — all run by Claude with Bash. Do not turn a step into "ask the user to run X and paste the output" unless the tool is missing and cannot be installed.
The only thing the analyst does by hand is execute the sample in the isolated VM and export text evidence. malware-dynamic-analysis produces the runbook for that.
Never execute a sample or any extracted stage on the host. Static tooling only. Never upload a sample anywhere without explicit consent (hash lookups are fine).
Locate skill files. The sub-skill SKILL.md files and the scripts below ship in this skill's directory tree. Set R="${CLAUDE_PLUGIN_ROOT:-<dir containing this SKILL.md>}" once — when installed as a plugin $CLAUDE_PLUGIN_ROOT points at the install; otherwise it is this skill folder. The working directory is the user's analysis workspace, so read sub-skills and run scripts by absolute path, e.g. python3 "$R"/scripts/ioc_extract.py and read "$R"/malware-triage/SKILL.md.
Bundled scripts (paths below are relative to $R):
| Script | Used by | Purpose |
|---|---|---|
scripts/ioc_extract.py | all phases | extract + defang IOCs from any text (--format csv/json, --refang) |
malware-triage/scripts/pe_info.py | triage | PE headers, sections, entropy, imports, packing verdict, signature, overlay, resources (needs pefile) |
malware-triage/scripts/hash_calculator.py | triage | MD5/SHA1/SHA256 |
malware-dynamic-analysis/scripts/procmon_summary.py | dynamic | Procmon CSV → process tree, file/registry writes, network, persistence flags |
malware-dynamic-analysis/scripts/sysmon_summary.py | dynamic | Sysmon JSON/CSV/evtx_dump → tree, network + beaconing, DNS, injection, persistence |
Run --self-test on any of them if in doubt.
Host tool check at engagement start (once), then degrade gracefully and say what is missing:
command -v file strings upx 7z yara tshark olevba oledump.py pdfid.py ilspycmd js-beautify readelf jq; python3 -c "import pefile" 2>&1 | tail -1
Big outputs go to files under the engagement workspace; inspect with wc -l, head, grep, and the summary scripts — never cat a strings dump or a Procmon CSV.
| Signal | Routes To |
|---|---|
| Unknown file / "what is this?" / initial assessment | malware-triage |
| PE executable after triage, needing behavior monitoring | malware-dynamic-analysis |
| .NET / Office / PDF / script / archive / LNK / ELF / HTA / ISO / IMG / VHD / VHDX | specialized-file-analyzer |
| "Create detection rules" / post-analysis phase | detection-engineer |
| "Write the report" / final documentation phase | malware-report-writer |
| YARA rules specifically | malware-report-writer (not detection-engineer) |
Triage is always the entry point for new samples. The table above describes which analysis skill follows triage.
When routing by file type, use the file command output. Check in this order — first match wins:
specialized-file-analyzer/SKILL.mdspecialized-file-analyzer/SKILL.mdspecialized-file-analyzer/SKILL.mdspecialized-file-analyzer/SKILL.mdmalware-triage/SKILL.md, then malware-dynamic-analysis/SKILL.mdspecialized-file-analyzer/SKILL.mdspecialized-file-analyzer/SKILL.mdspecialized-file-analyzer/SKILL.mdspecialized-file-analyzer/SKILL.mdspecialized-file-analyzer/SKILL.md (mount/extract, then analyze contents)specialized-file-analyzer/SKILL.md (mount/extract, then analyze contents)malware-triage/SKILL.md for manual assessment.NET is the key ambiguity: file outputs both "PE32" and "Mono/.Net assembly" for .NET assemblies. Always check for .NET before checking for PE.
Each sample follows this sequence:
Triage → [Dynamic Analysis OR Specialized File Analysis] → Detection Engineering → Report Writing
malware-triage/SKILL.mdmalware-dynamic-analysis/SKILL.mdspecialized-file-analyzer/SKILL.mddetection-engineer/SKILL.mdmalware-report-writer/SKILL.mdAfter each phase completes:
analysis_state.md with findings and IOCsNever auto-chain phases. Every transition requires user confirmation.
Before dynamic analysis, hand the user the runbook from malware-dynamic-analysis/SKILL.md Part A, tailored with the triage predictions (process names to filter, expected protocol, expected persistence), and state the boundary explicitly:
"The next phase requires executing the sample in your isolated VM (REMnux/FlareVM). Follow the runbook: snapshot → start Procmon/Wireshark/System Informer/Sysmon → execute → observe 15+ min → export evidence with the A4 commands (Procmon CSV, Sysmon JSON, tshark text, autoruns CSV, dropped files) → revert. Bring the
evidence/directory back and I'll parse it."
If the user returns with PML/PCAP/EVTX, give the conversion command from the dynamic skill's Converting Binary Evidence table (tshark and evtx_dump can run on the host) rather than refusing the files.
analysis_state.mdCreated in the user's working directory (not this skill repo) when the first sample is provided. Updated after each phase.
# Malware Analysis — [Engagement Name/Date]
**Analyst:** [name]
**Started:** [date]
**Status:** [In Progress / Complete]
---
## Samples
### Sample 1: [filename]
- **File Type:** [type]
- **MD5:** [hash]
- **SHA1:** [hash]
- **SHA256:** [hash]
- **Size:** [bytes]
- **Priority:** [Immediate / Standard / Low]
- **Classification:** [Trojan / Ransomware / etc. or Pending]
- **Threat Level:** [Critical / High / Medium / Low or Pending]
- **Current Phase:** [Triage / Dynamic Analysis / Specialized Analysis / Detection / Reporting / Complete / Benign]
#### Triage Findings
- [findings appended after triage phase]
#### Analysis Findings
- [findings appended after dynamic/specialized analysis]
#### IOCs Identified
- [accumulated IOCs, defanged]
#### Detection Rules Created
- [list of rules created and their locations]
---
## Next Steps
- [orchestrator's recommendation for what to do next and why]
analysis_state.md to restore contexthxxp://, [.]com, [@])Each phase defangs IOCs before appending them to the state file. The detection-engineer sub-skill handles bulk defanging, format conversion (STIX, CSV, OpenIOC), and confidence assessment during its dedicated phase.
analysis_state.md to restore context and resume from the last recorded phaseBenign in the state file, note the reasoning, and move to the next sample. Do not proceed with further analysis phases.file output doesn't match any known routing pattern, default to malware-triage/SKILL.md for manual assessment. Note the unknown type in the state file.analysis_state.md is found, ask whether to resume the existing engagement or start a new one (with a timestamped filename like analysis_state_2026-03-15.md)malware-triage/, detection-engineer/, etc. as subdirectories), warn the user and ask them to switch to their analysis workspace before creating a state fileThe orchestrator delegates to these sub-skills by reading their SKILL.md files at execution time:
| Sub-Skill | Path | Purpose |
|---|---|---|
| Malware Triage | malware-triage/SKILL.md | Rapid assessment, classification, prioritization |
| Dynamic Analysis | malware-dynamic-analysis/SKILL.md | Safe execution, behavior monitoring in isolated VMs |
| Specialized File Analyzer | specialized-file-analyzer/SKILL.md | Non-PE file analysis (.NET, Office, PDF, scripts, archives, LNK, ELF) |
| Detection Engineer | detection-engineer/SKILL.md | Sigma rules, Suricata rules, hunting queries, IOC defanging |
| Report Writer | malware-report-writer/SKILL.md | Professional reports, YARA rules, quality checklists |
Paths are relative to the directory containing this SKILL.md (the sub-skills are not registered as separate skills — this orchestrator reads them by path). When entering a phase, read the corresponding SKILL.md file and follow its instructions. Carry forward the accumulated state from previous phases.
MCP servers can automate manual steps like hash lookups and IOC enrichment. If available, use them to accelerate the workflow — but they are not required.
See references/mcp_integrations.md for setup instructions and a mapping of which MCP servers benefit which skills. The two highest-impact integrations are:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub gl0bal01/malware-analysis-claude-skills --plugin malware-analysisOther plugins' skills for the same job