capa
Developer CLI · Free
A static executable capability analyzer: it matches binary code against rules and helps identify the examined program's functions.
Also known as: mandiant/capa; mandiant-capa; capa-exe-analysis

What you can use for free
Code and local use under Apache-2.0.
Paid features and costs
Computing resources, self-hosting, and external services are paid for separately if used.
Access and limitations
Code and local use under Apache-2.0. Computing resources, self-hosting, and external services are paid for separately if used.
Use cases
- Identify an examined executable's capabilities
- Compare matched capability rules with code and expected functions
Example workflow
A possible workflow; this is not a report of hands-on testing.
Identify an examined executable's capabilities.
Before you start
- Project files or environment.
- A shell and supported platform.
Steps
- Prepare a binary you are authorized to analyze.
- Compare matched capability rules with code and expected functions.
- Save the working command or script and the result criteria.
Check your result
- The command correctly handles paths, Unicode, and invalid inputs.
- Repeat runs behave predictably; credentials do not appear in the output.
Choosing capa
Identify an examined executable's capabilities
Choose this when
- Identify an examined executable's capabilities
- Compare matched capability rules with code and expected functions
Requirements
- An executable in a supported format or a supported sandbox report; the ready-made CLI runs without installation.
Things to consider
- Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.
- Terms of use: Apache-2.0 for the code; third-party components retain their own terms.
- Packing and obfuscation can make static analysis incomplete or misleading; a detected capability warrants investigation rather than proving maliciousness.
Frequently asked questions
What can you use for free in capa?
Code and local use under Apache-2.0.
What additional costs might arise with capa?
Computing resources, self-hosting, and external services are paid for separately if used.
What terms of use matter for capa?
Apache-2.0 for the code; third-party components retain their own terms.
How do you get started with capa?
Prepare a binary you are authorized to analyze. Compare matched capability rules with code and expected functions. Save the working command or script and the result criteria.
Does capa work only with files, or also with sandbox reports?
Alongside PE, ELF, .NET, and shellcode, capa reads CAPE, DRAKVUF, and VMRay reports, enabling analysis of dynamic behavior features. Detailed output shows where features were found; a web interface and IDA/Ghidra integrations support investigation.
License
Apache-2.0 for the code; third-party components retain their own terms.
Apache 2.0 — permissive license with patent terms
You can use and modify the code in commercial and closed-source projects. When distributing it, retain the license and relevant notices, identify modified files, and include NOTICE if provided. Authors grant a limited patent license for their contributions; it does not grant permission to use trademarks.
License termsUsage details
Alongside static analysis, capa supports dynamic features from CAPE, DRAKVUF, and VMRay reports. The authors warn that static results may be incomplete for obfuscated files.
Technologies and topics
- capa
- CLI
- Development