antra trace
Print the full dataflow path from a database source to a client sink.
Explains why a finding fired, by printing the path the value took.
Usage
antra trace <target> [path]
targetis required: a file, or afile:linepair such asapp/page.tsx:85.pathis the Next.js app root and defaults to..
antra trace app/page.tsx:85
antra trace app/account/page.tsx:42 ./apps/dashboard
antra trace app/page.tsx:85 --format json
Flags
Reading the output
The path runs from the source, the point where the value entered your program (usually a database read), to the sink, the boundary crossing that triggered the finding. Each hop is a place the value passed through.
This is the command to run when a finding looks wrong. Either the path shows a
step you did not expect, which is a real bug, or it shows a sanitizer the
analysis did not recognize, which is a configuration problem for
antra.config.json.
Findings carry a provenance list in their own right, sourced from the same
analysis trace walks, nearest-to-sink first.