Commit a2fd2c3
committed
security: pass Haiku classifier prompt via stdin instead of argv
Scanned content (user messages, tool outputs up to 8KB) was passed as
a CLI argument to `claude -p <prompt>`, making it visible in `ps aux`
and `/proc/<pid>/cmdline` for up to 15 seconds per classification.
On shared Linux hosts (default hidepid=0) any local user could read it.
Fix: pipe the prompt through stdin (`claude -p` reads from stdin when
no argument follows) and scope the child env to PATH + HOME +
ANTHROPIC_API_KEY only.1 parent 675717e commit a2fd2c3
1 file changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
494 | 494 | | |
495 | 495 | | |
496 | 496 | | |
497 | | - | |
| 497 | + | |
498 | 498 | | |
499 | 499 | | |
500 | | - | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
501 | 511 | | |
502 | 512 | | |
503 | 513 | | |
| |||
0 commit comments