Security context

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

aws/amazon-q-developer-cli
main @ 15cc8f3
22
Fixes
0
CVEs
HIGH
Peak severity
15.8%
Coverage
Highlights
Auth Bypass: 9 prior fixes. Scrutinize any change in this area.
crates/chat-cli/src/cli/chat/tools/execute/mod.rs: most-fixed (8 issues). Treat as high-risk during review.
14 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.

Command Injection: The tool execution module relies heavily on string parsing and syntax blocklists to identify dangerous commands. Attackers can leverage sophisticated shell metacharacters, parameter expansions (e.g., using the base '$' character), or command flags with execution side-effects (such as find's -ok, -exec, or -delete options) to bypass validation.
Auth Bypass: Flaws in permission evaluation logic, such as misordered evaluation rules, incorrect handling of invalid regex compilation, or trusting tool settings prematurely, historically allowed native or MCP tools to bypass explicit deny rules and execute without user interaction.