Generating capability reports with capa

From meltedinhex/analyst-ai-pack · View interactive version

Generating capability reports with capa is an AI agent skill from the GitHub repository meltedinhex/analyst-ai-pack. Uses capa to identify malware capabilities from a binary: running rule-based detection over disassembly, mapping matched capabilities to MITRE ATT&CK and MBC, and interpreting results to focus deeper analysis. Activates for requests to run capa, generate a capability report, or map a sample''s behav

How to use this skill

Skill file

Generating Capability Reports with capa

When to Use

Do not use capa results as a behavioral guarantee — it detects potential capabilities from

code patterns; packed samples must be unpacked first or capa sees only the stub.

Prerequisites

Safety & Handling

Workflow

Step 1: Confirm the sample is analyzable

Verify it is not packed (entropy/imports). If packed, unpack and run capa on the dump, not the

stub.

Step 2: Run capa and capture results

Generate the capability report, ideally in JSON for programmatic use plus the human view.

capa -j sample.exe > capa.json
python scripts/analyst.py summarize capa.json

Step 3: Map to ATT&CK and MBC

Group matched rules by ATT&CK technique and MBC behavior to see the sample's capability profile

(e.g., persistence, injection, C2, anti-analysis).

Step 4: Prioritize deeper analysis

Use the function addresses capa reports to jump straight to the most interesting code in your

disassembler.

Validation

Pitfalls

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.