Configure Falco lists and macros to build reusable rule conditions

domain: falco.org · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Declare a `list` of allowed binaries with `- list: allowed_binaries` and an `items:` block listing process names
  2. Declare a `macro` such as `is_shell` with `condition: proc.name in (sh, bash, zsh)` to encapsulate repeated logic
  3. Reference macros inside rule conditions with `and not is_shell` to keep individual rule conditions readable
  4. Use the `append: true` key in a secondary file to extend an existing list or macro without overwriting it
  5. Load both files by ordering them in the `rules_file` array in `falco.yaml`, base definitions before extensions

Known gotchas

Related routes

Configure Falco macros and lists for reusable container-aware conditions across multiple rules
falco.org · 5 steps · unrated
Tune Falco's default ruleset to reduce false positives using rule overrides, exceptions, and custom macros instead of editing shipped rules directly
falco.org · 5 steps · unrated
Write a Falco custom rule using macros and lists to detect outbound network connections from web server processes
falco.org · 6 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans