Skip to content

map

Print the code map for a project — entry points, data sinks, roles, and discovered attack paths.

foil map

Show the code map for a project (no LLM needed).

Usage:

foil map [OPTIONS] [TARGET]

Options:

  --help  Show this message and exit.

When to use it

  • Understanding what Foil "sees" before a scan: which functions are route handlers, which are utilities, which call sinks
  • Debugging why a function was or wasn't reviewed
  • Answering "what does my attack surface look like?" without running the LLM

The code map is built by tree-sitter and is deterministic — running map is fast and does not require the LLM server.