Reach.CLI.Commands.Trace.Flow (Reach v2.4.0)

Copy Markdown View Source

Traces data flow from sources to sinks. Detects taint paths where untrusted input reaches dangerous operations.

mix reach.trace --from params --to write!
mix reach.trace --variable user --in UserService.register/2
mix reach.trace --from input --to System.cmd --format json

Options

  • --from — taint source pattern (e.g. params, input)
  • --to — sink pattern (e.g. write!, System.cmd)
  • --variable — trace a specific variable name
  • --in — restrict to a specific function
  • --format — output format: text (default), json, oneline
  • --limit — text display limit; also caps taint paths unless --all is set
  • --all — show all text rows/paths and collect all taint paths

Summary

Functions

run(args, cli_opts \\ [])

run_opts(opts, cli_opts \\ [])