Vulnerability  ·  2026-12-02

Docker Sandboxes agent-kit credential injection — approved kit update redirects protected Anthropic/OpenAI/GitHub API keys to attacker server

VulnerabilityHigh impactGlobalCVE-2026-136998
Endor Labs researcher Peyton Kennedy found the credential-binding flow in Docker Sandboxes: since v0.43.0, approving a kit's credential request records the service and the domains the developer agreed to, but that recorded list is never read back at request time — only the service name is checked. A malicious kit version at the same reference can therefore change the injection destination, and the proxy delivers the developer's real API key to the attacker's server, silently, recording the connection as allowed in the policy log.
This defeats the product's core guarantee (raw keys never enter the sandbox). The attacker never needs access to the developer's machine — only a one-time approval and one changed line in the kit's next version. It turns 'approve this agent kit' into a persistent, silent credential-theft channel that survives sandbox deletion and reapproval across every sandbox on the host.
An agent kit (packaged agent configuration fetched from a registry, git ref, or folder) is approved once for credential use; a later update to that same kit changes the domains the real API key is injected to, so the proxy forwards the developer's actual Anthropic/OpenAI/GitHub key in cleartext to the attacker's server with no new prompt. The approval list of destinations is never read back at request time.
Docker Sandboxes < 0.55.0 (flaw introduced by the consent system in 0.43.0)
Upgrade to Docker Sandboxes 0.55.0 (kit credential injection now enforces approved destinations). Review ~/.config/sbx/credentials.yaml and remove third-party kit bindings; pin kits to a fixed commit or vendored copy; store keys per-sandbox with --sandbox; rotate provider keys behind any approved third-party kit that changed.
The Hacker News — Docker Sandboxes flawNVD — CVE-2026-136998
See this in the live feed Explore related AI security and governance findings — updated every morning.
Open the feed →