Security context

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

kagent-dev/kagent
main @ b51b1d3
22
Fixes
0
CVEs
CRITICAL
Peak severity
50.0%
Coverage
Highlights
Auth Bypass: 7 prior fixes. Scrutinize any change in this area.
python/packages/kagent-skills/src/kagent/skills/shell.py: most-fixed (2 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.

Auth Bypass: Cross-namespace reference validation is a critical security boundary. Failing to enforce bidirectional verification or namespace selectors allows unauthorized cross-namespace tool and agent references.
Command Injection: Spawning shell commands using user-supplied inputs directly via shell execution (e.g., asyncio.create_subprocess_shell) leads to sandbox escapes and arbitrary host command execution.
Path Traversal: Failing to canonicalize paths and verify prefixes when exposing file read, write, or editing interfaces lets attackers escape designated working directories.