capa
$ capa Official Low Riskcapa (capa) statically detects behavioral capabilities in PE, ELF, .NET, and shellcode files (such as keylogging, persistence, C2 HTTP, or anti-VM tricks) and maps them to MITRE ATT&CK and MBC taxonomies. Emits structured JSON via -j for agent malware triage.
pip install flare-capa capa -j performs heavy static disassembly and rule matching locally on binaries and outputs concise JSON capability summaries.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
First-class -j / --json output with structured ATT&CK/MBC schemas and fully headless execution.
- Native
-jJSON output with documented schema - Zero interactive prompts
Strictly read-only static analysis via Vivisect/PE/ELF backends; never executes target malware samples.
- 100% static read-only analysis; offline operation
Installable via pip install flare-capa, uvx, or standalone PyInstaller releases for macOS, Linux, and Windows, though Python/Vivisect startup is heavy.
- Cross-platform PyPI and standalone binary releases
- Large Python/Vivisect dependency footprint
Translates raw disassembly into high-level ATT&CK/MBC behavioral capabilities automatically.
- Ships with hundreds of curated FLARE capability rules
Official Mandiant/Google Cloud FLARE tool (mandiant/capa) under Apache-2.0 with active releases.
- Maintained by Mandiant FLARE team
Good doc/ guides and --help, though -j JSON schema is fairly verbose for complex binaries.
- Official docs in
mandiant/capa/tree/master/doc
Security, Auth & Guardrails
No credentials required; uses bundled or local -r FLARE capability rules offline.
Apache-2.0 open-source CLI; free and offline.
# capa Agent Rules - Pass `-j` for machine-readable ATT&CK/MBC capability output and pipe through `jq` because verbose JSON can be large. - Note that `capa` runs static analysis only and never executes the sample binary.
Agent-Ready Command Recipes
Safe Read-Only Queries
capa -j ./sample.bin
Statically analyzes ./sample.bin and emits MITRE ATT&CK, MBC, and matched rule locations in JSON via -j.
capa -v -r ./custom-rules ./sample.bin
Applies custom rules from ./custom-rules (-r) and displays matched addresses with -v.
Strengths for Agents
- + Maps binary disassembly straight to MITRE ATT&CK and MBC in structured
-jJSON. - + Bundles rich official rules so agents get immediate capability insight without writing custom YARA.
Caveats & Pitfalls
- ! Vivisect static analysis can take tens of seconds and significant RAM on large binaries.
- !
-jJSON payloads can be very large on complex samples—filter.rules | keyswithjq.