Architecture of falcosecurity/falco
falcosecurity/falco is 220 source files holding 997 symbols across 6 modules, written mainly in C++, Shell, Dockerfile. The largest module is userspace, with 120 files, and 2 files are entry points into the dependency graph.
How falco fits together
Falco's code is split across several modules, and the largest is userspace, which holds 120 of the repository's 220 files. The application entry point is userspace/falco/app/app.cpp, with its header app.h in the same directory. Falco's core libraries, including the kernel drivers that observe syscalls, live in the separate falcosecurity/libs repository, which the README says makes up the majority of the binary's source code. The unit_tests directory holds 29 files of tests for this code. The docker directory holds 10 files, and the README describes a docker-compose demo that runs Falco with falcosidekick, falcosidekick-ui and a redis database. Falco can enhance events with metadata from the container runtime and Kubernetes, and the collected events can be analyzed off-host in SIEM or data lake systems.
Largest modules
- userspace: 120 files
- unit_tests: 29 files
- .github: 21 files
- proposals: 18 files
- docker: 10 files
- root: 9 files
- scripts: 5 files
- semgrep: 4 files
Languages
By file count: C++ 146 files, Shell 8 files, Dockerfile 4 files, Makefile 1 file.
More on falco: summary and FAQ, codebase overview, code health.