Skip to content

meltedinhex/analyst-ai-pack / skills/generating-capability-reports-with-capa

generating-capability-reports-with-capa

Verified

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 behaviors to ATT&CK automatically.

FileKindSize
LICENSEother340 B
SKILL.mdskill md3.0 KB
references/api-reference.mdmarkdown1020 B
scripts/analyst.pyscript1.9 KB

references/api-reference.md

View on GitHub
# API Reference: Generating Capability Reports with capa

## Overview

`scripts/analyst.py` summarizes a capa JSON report, aggregating matched rules by ATT&CK technique,
MBC behavior, and namespace. It parses an existing report; it does not run capa or the sample.

## Dependencies

| Package | Version | Purpose |
|---------|---------|---------|
| (stdlib) | — | JSON, file IO |

## External tools

| Tool | Purpose |
|------|---------|
| capa | Rule-based capability detection over disassembly (`capa -j sample.exe`) |

## Core functions

### `summarize(report)`
Aggregates capa rules into ATT&CK, MBC, and namespace groupings with rule lists/counts.

## Usage

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

## Sources

- capa (Mandiant FLARE) — https://github.com/mandiant/capa
- Malware Behavior Catalog (MBC) — https://github.com/MBCProject/mbc-markdown
- capa detects potential capabilities from code patterns and requires unpacked input, per capa
  documentation
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 197kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall