Docker Sandboxes flaw let agent kits redirect developers' API keys

An Endor Labs researcher found that one approval for a third-party agent kit carried over to later versions, letting an update send a developer's real AI provider key to an attacker's server. Docker fixed it in version 0.55.0.

Illustration of a cracked glass cube holding small robot coding agents, with a golden key slipping out through the crack while a thin beam of light runs to a dark server across the room. Image: AgenticFeed illustration

A flaw in Docker Sandboxes, a tool for running AI coding agents in isolated environments, let a third-party agent kit send a developer's real API key to a server controlled by an attacker, according to Peyton Kennedy, a security researcher at Endor Labs. Docker fixed the bug, tracked as CVE-2026-136998, in version 0.55.0 on Nov. 30, and Endor Labs rated it high severity at 8.2 out of 10.

A kit is a packaged setup for an agent that tells the sandbox which tools and credentials it needs. An API key is the secret string that lets software use a paid service, such as a model provider's API, and bills usage to its owner.

How the keys were supposed to stay safe

Docker Sandboxes runs each agent inside a microVM, a small virtual machine walled off from the developer's computer. Raw keys never enter it, Kennedy wrote in the Endor Labs disclosure. The agent sends requests with a placeholder, and a proxy on the host swaps in the real key only for destinations the developer approved.

Version 0.43.0 added a consent prompt for third-party kits. It shows the developer each credential a kit wants and the domains where it will be sent, and declining is the default, according to the disclosure.

What went wrong

Docker saved the approved domains but never checked them afterward, Kennedy found. At request time, the proxy only looked for an approval under the service name, such as "anthropic," and then sent the key wherever the current version of the kit pointed.

The approval also wasn't tied to the specific kit that had been reviewed, according to Kennedy. Kits are fetched by reference, much like a software package, so an attacker could publish a harmless version and wait for one approval. A later update could then change a single line to name a new destination.

The next launch showed no prompt or warning, Kennedy wrote.

The sandbox's own log recorded the request as an ordinary allowed connection, Endor Labs found. "An operator reviewing logs afterwards sees an ordinary permitted request," Kennedy wrote.

By default, Docker Sandboxes stores credentials globally, so the redirected key would be the same one every sandbox on the machine uses. Kennedy wrote that a stolen model provider key could run up charges on the victim's account, while a GitHub token could allow writes to the victim's repositories.

Scope and fix

Kennedy listed 13 built-in services that share the affected code path, including OpenAI, GitHub, Mistral and xAI. He demonstrated the attack only with a dummy Anthropic key and a test server on his own machine, and said the other 12 services weren't tested separately.

Exploitation needs a developer who previously approved the service and then runs the modified kit, according to the CVE record. Docker's v0.55.0 release notes say credential injection now enforces the approved destinations for API keys and OAuth tokens.

OAuth is a common standard for granting apps access to an account. Bindings with no approved destinations are now treated as missing, according to Docker's notes.

Kennedy reported the issue to Docker on Sept. 21, according to the disclosure timeline. It's his second Docker Sandboxes finding after CVE-2026-103916, a file-copy bug fixed in version 0.51.0 on Nov. 3.

Advice for developers

Endor Labs advises developers to upgrade to v0.55.0 and remove any credential approvals granted to third-party kits in the file ~/.config/sbx/credentials.yaml. It also recommends scoping keys to a single sandbox and pinning kits to a fixed commit instead of a tag or branch. Developers who approved a kit that later changed should rotate the affected keys, the company said.

Kennedy wrote that the sandbox's isolation itself held, since the microVM boundary never broke. The failure was in what the developer's approval was attached to. "If the approval is not tied to the artifact that was inspected, the next update inherits it," he wrote.

Source: Security research, Peyton Kennedy, Endor Labs, Nov. 30, 2026, “CVE-2026-136998: Docker Sandboxes vulnerability lets malicious AI agent kits steal developers' API keys”

Additional sources: Release notes, Docker on GitHub, Nov. 30, 2026, “Docker Sandboxes v0.55.0”; CVE record, CVE Program, 2026, “CVE-2026-136998”; News report, Bill Toulas, BleepingComputer, Dec. 1, 2026, “Docker Sandboxes bug could leak AI API keys via malicious updates”

Get the AgenticFeed newsletter

A free, regular roundup of the agent stories that matter. No spam, and you can unsubscribe at any time.

Want to reach readers following AI agents? Advertise with AgenticFeed

Next event · 30 Nov, 2026

AWS re:Invent 2026 in Las Vegas

AWS’s annual conference runs Nov. 30 to Dec. 4. Matt Garman’s CEO keynote is on Dec. 1, and the catalog lists more than 2,200 sessions.

The AgenticFeed newsletter

A free, regular roundup of the agent stories that matter. No spam.