Security context

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

kubernetes-sigs/agent-sandbox
main @ e9d5efa
53
Fixes
0
CVEs
HIGH
Peak severity
60.5%
Coverage
Highlights
Auth Bypass: 19 prior fixes. Scrutinize any change in this area.
extensions/controllers/sandboxclaim_controller.go: most-fixed (11 issues). Treat as high-risk during review.
30 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: Multiple fixes address insecure adoption and modification of Kubernetes resources (Pods, Services, PVCs, NetworkPolicies) without robust ownership verification, enabling cross-namespace hijacking and confused deputy attacks.
Auth Bypass: Routing decisions rely on client-supplied headers (X-Sandbox-Pod-IP, X-Sandbox-UID) and cookie authentication without strict origin or allowlist checks, allowing request redirection to unauthorized sandboxes or cross-site WebSocket hijacking.
Denial of Service: Unbounded resource consumption in proxy retries, WebSocket connections, subprocess execution, and tool execution can exhaust memory, connections, or event loop capacity, making services unresponsive.