Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

superagent-ai/grok-cli
main @ fb97af8
6
Fixes
0
CVEs
HIGH
Peak severity
50.0%
Coverage
Highlights
Path Traversal: 2 prior fixes. Scrutinize any change in this area.
cli: most-fixed (1 issue). Treat as high-risk during review.
5 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Sandbox Escape: Host execution commands in the bash tool allowed escaping the intended sandbox boundaries. Attackers could leverage shell metacharacters such as pipes, redirects, and command substitutions to run arbitrary code on the host system.
Path Traversal: Insecure handling of Telegram audio file names allowed path traversal sequences, potentially enabling attackers to overwrite or write arbitrary files on the local filesystem.
Arbitrary Code Execution: Loading configurations from untrusted repository-level structures allowed the execution of rogue hook scripts via child_process.exec, which was mitigated by restricting execution to user-level configurations.