mirror of
https://github.com/usestrix/strix.git
synced 2026-08-25 04:12:37 +02:00
feat(safety): collect target-list files passed via -w/-l flags
Recon tools route their target list through a flag — `ffuf -w wordlist.txt`, `httpx -l hosts.txt`, `nuclei --list targets.txt` — not the `<` redirect the input-file collector already handled, so the reviewer kept blocking "probes every host listed in hosts.txt" because the list was never in the packet. Parse the value of the common list-file flags and collect it the same bounded way, alongside redirect inputs. The value is only read when it resolves to a workspace file, so a boolean `-l` (grep, wc) whose next token is not a file collects nothing and never makes the packet incomplete. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -82,12 +82,13 @@ A command that runs code Strix cannot resolve to an inspectable script — an
|
||||
unrecognized interpreter, or an interpreter given no script — is blocked rather
|
||||
than reviewed against an empty evidence packet.
|
||||
|
||||
When a command reads a workspace data file through input redirection (for
|
||||
example a host list consumed by `while read … done < hosts.txt`), that file's
|
||||
contents are attached to the packet so the reviewer can check the entries —
|
||||
queried hosts, fuzz inputs — against scope instead of blocking because it can't
|
||||
see them. Only workspace-resident files are read; an oversize file is attached
|
||||
truncated. An authorized domain covers its subdomains.
|
||||
When a command reads a workspace data file — through input redirection
|
||||
(`while read … done < hosts.txt`) or a target-list flag (`ffuf -w words.txt`,
|
||||
`httpx -l hosts.txt`) — that file's contents are attached to the packet so the
|
||||
reviewer can check the entries, queried hosts or fuzz inputs, against scope
|
||||
instead of blocking because it can't see them. Only workspace-resident files are
|
||||
read; an oversize file is attached truncated. An authorized domain covers its
|
||||
subdomains.
|
||||
|
||||
Browser automation inside scripts is blocked in safety modes. Issue browser
|
||||
operations as individual raw `agent-browser` commands so each action can be
|
||||
|
||||
Reference in New Issue
Block a user