repowisemandiant/capa

Architecture of mandiant/capa

mandiant/capa is 266 source files holding 2,519 symbols across 6 modules, written mainly in Python, JavaScript, Dockerfile. The largest module is capa, with 146 files, and 3 files are entry points into the dependency graph.

How capa fits together

Input enters through the command line entry point in capa/main.py, which is run against a file or a sandbox report. The capa directory is the largest module and holds the core package of the tool. The tests directory holds the test suite for this code. For browser-based inspection, web/explorer/src/main.js starts the capa Explorer Web interface, and web/explorer/src/router/index.js defines its routes. The doc/installation.md file covers setup for using capa as a library or integrating it with another tool.

Largest modules

  • capa: 146 files
  • tests: 41 files
  • scripts: 26 files
  • web: 21 files
  • .github: 18 files
  • doc: 6 files
  • root: 5 files
  • .devcontainer: 2 files

Languages

By file count: Python 211 files, JavaScript 11 files, Dockerfile 1 file.

More on capa: summary and FAQ, codebase overview, code health.