Files
hermes-agent/tools
Maciej Lisiewski d6ec9696ba fix(approval): flag a stdin interpreter sink followed by output redirects
`curl URL | python3 > result.txt` was not flagged: the interpreter token
required a separator or end of line right after the name, so an output
redirect hid the sink even though python still reads and runs the
download from stdin (greptile review).

Allow any number of output redirects (`> f`, `>> f`, `2>&1`, `&> f`)
after the interpreter, each a possessive token so the match stays
linear. An input redirect (`< local.py`) replaces stdin and a script
argument after a redirect names the program, so both stay out.
2026-11-16 02:38:30 +01:00
..