sast-flow-tracer — Claude Code subagent: what it does, how to install
sast-flow-tracer traces data propagation from attack entry points to dangerous operations and maps every validation step in between.
no license ★ 1,298 updated 2026-06-12
.claude/agents/sast-flow-tracer.mdWhat sast-flow-tracer does
The subagent serves as a connector between discovered input sources and risky code sinks. It follows call paths across separate files, observing variable renames, type conversions, pointer dereferences, and macro expansions.
While following data paths, it grades each chain as Hot, Warm, or Cold depending on whether the intermediate sanitization is missing, fragile, or complete. Output reports are stored inside the sast-work/ folder as structured JSON files.
The subagent relies on entries.json and dangers.json being present before execution. Because deep contextual reasoning is required for tracing complex call graphs, the agent specification explicitly assigns Claude Opus.
What it helps with
- trace untrusted inputs through complex call graphs to dangerous sinks
- catalog sanitization checks and type cast truncations across files
- identify tainted variables in PHP superglobals and session scopes
- evaluate whether boundary validations prevent exploits
Example prompts for the agent
- Run /sast to trace data flows from entries.json to critical operations
- Map the validation chain from packet parsing down to memory copy
- Track tainted $_GET parameters across included files to database queries
How to install sast-flow-tracer
Manually: put the files in place
.claude/agents/sast-flow-tracer.mdFor all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention
Manually: put the files in place
.codex/agents/sast-flow-tracer.tomlCodex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/
Manually: put the files in place
.cursor/agents/sast-flow-tracer.mdCursor also reads .claude/agents/
Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean
Questions about sast-flow-tracer
How to install sast-flow-tracer in Claude Code?
Place the agent configuration file into .claude/agents/sast-flow-tracer.md.
What does sast-flow-tracer do?
It maps paths between input entry points and potential sinks in source code, logging all intermediate transformations and checks.
What inputs does sast-flow-tracer require?
The agent expects pre-generated entries.json and dangers.json files alongside full access to the target repository.