Docker Sandboxes flaw let approved AI agent kits leak API keys through later updates

4 Sources

Share

Docker has patched a flaw in Docker Sandboxes that let a one-time approval of a third-party agent kit carry over to a later version of that kit, which could then quietly redirect the developer's real API keys to an attacker's server

1

2

. Docker Sandboxes is the company's product for running AI coding agents inside isolated virtual machines, built so raw API keys stay on the host and get swapped into outgoing requests by a proxy

1

3

.

Source: Hacker News

Source: Hacker News

The approval list was never checked

Since version 0.43.0, released September 15, the approval system recorded which domains a developer had approved but never enforced them when a request was made. The proxy checked only that a binding existed for the service name, then sent the real key to whichever domains the kit version in use named

1

3

. "The domains the operator approved play no part in that decision," per Peyton Kennedy of Endor Labs, who demonstrated the flaw

1

.

What the attack needed, and what it would steal

The attack required no access to the developer's machine, only a prior approval and a changed destination in the kit's next version. The approval even survived deleting the sandbox

1

3

. Kennedy demonstrated it in a lab with a dummy Anthropic key and a local test server; no real-world attacks have been reported

1

2

4

.

Thirteen built-in services share the same injection path for keys, among them Anthropic, OpenAI, GitHub and Google, but only the Anthropic path was actually tested

1

2

3

4

. Detection through the product's own auditing would not have helped. Endor Labs' writeup notes, "An operator reviewing logs afterwards sees an ordinary permitted request"

2

. The policy log recorded the redirected connection as allowed and never mentioned that a credential had been injected

1

2

4

.

A stolen provider key could run up charges on the victim's account. A GitHub token could grant write access to repositories, since a typical token's scopes allow it

1

2

4

.

The fix, the severity argument, and what users should do

Docker fixed the flaw in version 0.55.0, released November 30. Per the CVE record Docker published, the flaw covers every version from 0.43.0 to just before the fix, on macOS, Windows and Linux

1

. Per the disclosure, anyone still on an older version remains exposed until they upgrade

1

.

Source: BleepingComputer

Source: BleepingComputer

How serious it is depends on who is scoring. Kennedy rated the flaw 8.2, High, on version 3.1 of the Common Vulnerability Scoring System, revised down from an initial 9.3 after correcting the attack vector to local. On version 4.0 of that system his score is 6.9 and Docker's own is 5.6, both Medium

1

.

Endor Labs recommends upgrading, then reviewing and removing third-party kit bindings

1

2

3

4

. It also advises pinning kits to fixed commits, scoping secrets per sandbox, and rotating keys behind a third-party kit that changed while vulnerable

1

2

3

4

. The steps are a precaution for machines still on older versions and for anyone who granted credentials to third-party kits while vulnerable

1

.

This is Kennedy's second Docker Sandboxes bug within a month; both were reported on September 21, and the earlier one, a file-copy flaw, was patched on November 3

1

. In each case the virtual machine isolation itself held. The failure was in what a developer's approval got attached to

1

.

The 0.55.0 release notes confirm the destination enforcement but do not mention two changes Kennedy asked Docker for: tying each approval to a kit's content digest, and logging every key injection

1

. Cloud sandboxes, which use a separate secret store, were not tested, so whether they shared the flaw is undetermined

1

. As Kennedy put it, "a prompt is only as strong as what its answer is bound to. If the approval is not tied to the artifact that was inspected, the next update inherits it"

1

.

© 2026 TheOutpost.AI All rights reserved