Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

capa

$ capa Official Low Risk
Mandiant FLARE · Security & Secrets · Apache-2.0 · macos / linux / windows

capa (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.

FCRS-1.0 Score
86 /100
Good
Medium Confidence
Zero-Friction Install
pip install flare-capa
CLI vs MCP Decision CLI Preferred vs MCP

capa -j performs heavy static disassembly and rule matching locally on binaries and outputs concise JSON capability summaries.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 22 / 25

First-class -j / --json output with structured ATT&CK/MBC schemas and fully headless execution.

  • Native -j JSON output with documented schema
  • Zero interactive prompts
Trust & Safety 23 / 25

Strictly read-only static analysis via Vivisect/PE/ELF backends; never executes target malware samples.

  • 100% static read-only analysis; offline operation
Setup & Portability 12 / 15

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
Utility & Efficiency 13 / 15

Translates raw disassembly into high-level ATT&CK/MBC behavioral capabilities automatically.

  • Ships with hundreds of curated FLARE capability rules
Maintenance & Lineage 9 / 10

Official Mandiant/Google Cloud FLARE tool (mandiant/capa) under Apache-2.0 with active releases.

  • Maintained by Mandiant FLARE team
Docs & Verifiability 7 / 10

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

Auth Modes
No Auth
Credential Storage

No credentials required; uses bundled or local -r FLARE capability rules offline.

Side Effects
Read-Only
Cost & Quotas

Apache-2.0 open-source CLI; free and offline.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Extract binary capabilities as JSON
capa -j ./sample.bin

Statically analyzes ./sample.bin and emits MITRE ATT&CK, MBC, and matched rule locations in JSON via -j.

Run verbose capability triage with custom rules
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 -j JSON.
  • + 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.
  • ! -j JSON payloads can be very large on complex samples—filter .rules | keys with jq.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI