The Hacker News
Docker Sandboxes flaw let malicious kits steal developers’ API keys
A vulnerability in Docker Sandboxes, which run AI coding agents inside isolated virtual machines, could allow a malicious third‑party kit to exfiltrate developers’ API keys. Endor Labs researcher Peyton Kennedy demonstrated that, after a developer approves a kit, a later update to that kit could send the developer’s real Anthropic, OpenAI, or GitHub key to an attacker‑controlled server, even without a new prompt.
Docker fixed the flaw in version 0.55.0, released on 30 November 2026, and the issue is tracked as CVE‑2026‑136998. Kennedy’s test used a dummy key and a local test server; no attacks have been reported in the wild so far.
The flaw originated from a consent system added in 0.43.0 and affects every version prior to 0.55.0 on macOS, Windows and Linux. The key‑injection path, shared by thirteen built‑in integrations including Anthropic, OpenAI, GitHub and Google, could redirect real keys to destinations chosen by the kit’s current version, independent of the approved destinations recorded in the binding. The vendor notes that the binding and enforcement now require separate handling for API keys and OAuth destinations.
In practical response, Docker users on older versions are advised to review the approvals file at ~/.config/sbx/credentials.yaml (or %APPDATA%\sbx\credentials.yaml on Windows) and remove bindings granted to third‑party kits; further, pin kits to fixed commits, keep reviewed copies locally, store keys per sandbox with the --sandbox flag, and rotate provider keys tied to approved third‑party kits that later change.