US-Based Docker's Sandboxes Flaw Scored 8.2: One Approval Let a Malicious AI Agent Kit Steal Your Real API Keys

Text
Article image

US-based Docker released Sandboxes v0.55.0 on November 30, fixing high-severity flaw CVE-2026-136998: after one approval, an update to a third-party AI agent kit can send a developer's real Anthropic, OpenAI or GitHub key to an attacker-controlled server, with no new prompt and no log entry. Scored 8.2 under CVSS, it affects versions v0.43.0 through v0.55.0, with all 13 built-in services sharing the same injection path.

US-based Docker released Sandboxes v0.55.0 on November 30, fixing a high-severity flaw, CVE-2026-136998, scored 8.2 out of 10: once a developer approves a third-party AI agent kit, a kit update can silently redirect the developer's real Anthropic, OpenAI or GitHub key to a server the attacker controls — with no new prompt and no log entry. Every version from v0.43.0 up to v0.55.0 is affected, and all 13 built-in services share the same injection path.

The background is a promise Docker Sandboxes has sold for a long time: raw keys never enter the sandbox. A developer stores keys on the host with sbx secret set; the agent inside the sandbox only sends a placeholder header, and a proxy on the host swaps in the real key on the way out. Version 0.43.0 added a consent gate: it defaults to decline, third-party kits can no longer inherit a built-in agent's OAuth trust, and creating a sandbox lists each credential and destination domain in the terminal for the developer to approve before the binding is written. The flaw was found by US security firm Endor Labs, which reported it to Docker on September 21. It is the firm's second Docker Sandboxes finding in a month; the first, CVE-2026-103916, a file-copy escape, was fixed in v0.51.0 on November 3.

The root cause is how the approval is recorded. The binding is keyed only by service name — not by kit name, content digest or source — and the domains list written to the file is never read at request time: the proxy only checks whether the binding file has a row for anthropic, then injects the real key at whatever domains the current kit declares. The attack runs in five steps: the attacker publishes kit v1, whose inject block names only api.anthropic.com; the developer reads the prompt, finds it accurate, and approves; the attacker updates the same tag or branch to v2, changing a single line — the inject domain, now a host they control; the developer's next sandbox creation finds the existing binding and passes with no prompt and no diff; the proxy substitutes the real key into requests to the attacker's host. Worse, the kit can add the attacker's host to the sandbox egress allowlist in the same file, through permissions.network.allow, again with no prompt. The researcher reproduced the full chain with a dummy key and a loopback canary server: the log showed only an allowed connection, with no mention that a credential had been injected. The telling detail is that the binary already contains a function named MissingDomainsForService — exactly the check that is missing — which simply never gates the runtime path.

The impact falls in three layers

The impact falls in three layers. First is direct loss: a stolen model-provider key means the attacker runs inference on the victim's bill, while a GitHub token is worse — a typical developer token carries write access, so the attacker can modify the victim's repositories. Second is the trust structure: Docker's core promise, that raw keys never enter the virtual machine, was never broken — the key genuinely never entered the VM, but what decides where the key goes is the kit inside the VM. The isolation boundary held; the authorization boundary collapsed. Third is the hidden loser: every developer who approved a third-party kit since v0.43.0, because each historical approval is a standing blank check — the content behind a kit reference can change at any time, and the product will never ask again — and the whole AI coding-tool ecosystem, where kits, skills and plug-ins all run on trust-first, update-later. This time it was Docker; next time it could be any tool that manages keys through a one-time prompt. The fix is straightforward: upgrade to v0.55.0, delete old bindings granted to third-party kits, read a kit's inject domains on every sandbox creation, pin a fixed commit instead of a tag or branch where possible, scope keys per sandbox, and rotate any key you doubt.

iHolyshit review: The worst part of this flaw is not its difficulty — the attacker only has to change one line of YAML and never touches the victim's machine. The worst part is that Docker had already written the check function and never wired it into the runtime path: the lock was built but never fitted to the door. AI coding tools have spent two years chanting 'isolation' — sandboxes, microVMs, proxy-swapped keys — layers that all sound safe, but security is never about how many layers you stack; it is about the granularity of the approval. Approve a specific version for a specific domain, and the system must remember that version and that domain. An approval that records only the service name is, in substance, a blank check. Developers can do two things: upgrade now and delete old approvals — and from here on, treat every 'ask once' permission as one that will be abused.

2026-12-01

Share this article

What do you think of this story?

Anonymous feedback, up to 5 reactions per article.

Reader comments

Comment without signing in, or sign in to display your member name.

Discuss the technology and the story. Hate, politics and war, threats, abuse, personal accusations, sexual content, ads, links and personal information are not allowed.

0/500

No comments yet. Be the first to share.

Sources