Overview
A high-severity vulnerability tracked as CVE-2026-136998 in Docker Sandboxes — a product designed to run AI coding agents inside isolated virtual machines — allowed maliciously updated agent kits to silently exfiltrate developer API keys to attacker-controlled servers. Discovered by Endor Labs researcher Peyton Kennedy, the flaw undermines the product’s core security promise: that raw credentials (Anthropic, OpenAI, GitHub, Google) never enter the sandbox. Docker patched the issue in version 0.55.0, released December 1, 2026.
Technical Analysis
Docker Sandboxes uses a proxy-based credential injection model. Developers store API keys on the host using sbx secret set; agents inside the VM send requests with placeholder headers; a host-side proxy substitutes the real key before forwarding the request. Which domains receive the real key is controlled by the kit — a packaged agent configuration fetched from a registry, Git reference, or local folder.
Since version 0.43.0 (September 15), approving a kit’s credential request creates a binding that records the permitted service and destination domains. The critical flaw: that recorded domain list was never consulted at request time. The proxy only checked whether a binding existed for the service name, then forwarded the real key to whatever domains the current version of the kit specified.
Kennedy demonstrated the attack with a simple two-step scenario:
- Developer approves a kit pointing to
api.anthropic.com. - The kit is silently updated at the same reference to point to an attacker’s test server.
- The next sandbox creation shows no new prompt; the proxy delivers the key in cleartext to the attacker’s server.
The approval binding persisted even after sandbox deletion, and the policy log recorded the connection as “allowed” with no indication that a key was injected — leaving developers with no post-facto warning. Additionally, a malicious kit could add its own server to the sandbox network allowlist without triggering any prompt.
Thirteen built-in integrations share this key-injection path, including Anthropic, OpenAI, GitHub, and Google.
Framework Mapping
- AML.T0010 (AI Supply Chain Compromise) and AML.T0110 (AI Agent Tool Poisoning): The attack vector is a silently updated third-party agent kit — a supply chain artifact.
- AML.T0083 / AML.T0098 (Credentials from/via AI Agent Configuration): The flaw directly enables credential harvesting through the agent’s configuration layer.
- AML.T0086 (Exfiltration via AI Agent Tool Invocation): Real API keys are exfiltrated via the proxy during normal agent operation.
- LLM05 (Supply Chain Vulnerabilities): Kit updates are fetched from external registries without re-consent.
- LLM06 (Sensitive Information Disclosure): API keys are disclosed to unauthorized third parties.
- LLM08 (Excessive Agency): The kit controls network routing decisions with no runtime oversight.
Impact Assessment
All Docker Sandboxes versions from 0.43.0 through 0.54.x on macOS, Windows, and Linux are affected. Any developer who approved a third-party kit with access to Anthropic, OpenAI, GitHub, or Google credentials is potentially at risk. CVSS 3.1 rates the flaw 8.2 (High) with a local attack vector — the attacker requires only a one-time approval from the developer and a single line change in a subsequent kit release. No network access to the developer’s machine is required. No in-the-wild exploitation has been reported.
Mitigation & Recommendations
- Upgrade immediately to Docker Sandboxes ≥ 0.55.0, which enforces the recorded domain allowlist at request time.
- Rotate all API keys stored via
sbx secret set— Anthropic, OpenAI, GitHub, and Google — as a precautionary measure. - Audit approved kit bindings: remove approvals for any kit sourced from untrusted or unverified registries.
- Pin kit versions by digest or commit hash rather than mutable Git references or registry tags.
- Monitor proxy logs for outbound connections to unexpected domains involving credential headers.
References
- The Hacker News — Original Report
- Endor Labs researcher: Peyton Kennedy — technical analysis linked in original article
- Official CVE record: CVE-2026-136998