A flaw in Docker Sandboxes, which runs AI coding agents inside isolated virtual machines, meant a third-party agent kit could steal the API keys the product is designed to keep out of the agent's reach.
After one approval from the developer, a later update to that kit could send their real Anthropic, OpenAI, or GitHub key to a server the attacker controls, with no new prompt, Endor Labs researcher Peyton Kennedy found. Docker fixed the flaw in version 0.55.0 yesterday.
He demonstrated the flaw, tracked as CVE-2026-136998, with a dummy key and a test server on his own machine. No attacks using it have been reported so far.
The product's promise is that raw keys never enter the sandbox. A developer stores a key on the host with sbx secret set, the agent inside the virtual machine sends requests with a placeholder header, and a proxy on the host swaps in the real key on the way out.
Which destinations receive the real key is decided by the kit, a packaged agent configuration fetched from a registry, a Git reference, or a local folder. Since version 0.43.0, released September 15, approving a kit's credential request writes a binding that records the service and the domains the developer agreed to.
That recorded list was never read back, the researcher found. At request time, the check only asked whether a binding existed for the service name, and the proxy then sent the real key to whatever domains the current version of the kit named. "The domains the operator approved play no part in that decision," he wrote in his technical analysis.
In his test, a kit approved with api.anthropic.com as its only destination was replaced at the same reference with a version that pointed to a test server instead. The next sandbox creation showed no prompt, and the proxy delivered the dummy key to that server in cleartext. The approval even survived the sandbox's deletion.
Nothing warned the developer afterward either: the policy log recorded the connection as allowed and said nothing about a key being injected into it. A malicious kit version could also add its own server to the sandbox's network allowlist without a prompt, he found.
Journalistic Attribution: Reported via The Hacker News for public informational purposes under Fair Use. Read the original primary report →
Copyright of original reporting belongs to The Hacker News. Contact support@cubiqinfotech.com for DMCA inquiries.