On the Wilmington

Part of On the record
Technology

Docker Sandbox Flaw Lets AI Agent Kits Steal API Keys

·

Add On the record as a preferred source on Google
Data center
File photo: Data center. Photo: Carl Lender from Sunrise, USA / CC BY 2.0 via Wikimedia Commons

Key facts

  • Docker fixed the flaw in version 0.55.0 yesterday.1
  • A developer stores a key on the host with sbx secret set.1
  • A stolen GitHub token grants whatever its scopes allow.1

A Docker Sandbox flaw could let a malicious third-party AI agent kit steal a developer’s Anthropic API key for Claude, OpenAI API key, or GitHub token.1 2

The flaw, tracked as CVE-2026-136998, was disclosed on November 30, 2026, and fixed in Docker Sandboxes v0.55.0, according to Frost Rank.3 2

Endor Labs researcher Peyton Kennedy found that after one approval from the developer, a later update to that kit could send the real Anthropic, OpenAI, or GitHub key to a server the attacker controls, with no new prompt.1

The product’s promise is that raw keys never enter the sandbox.1

How the Trust Model Was Supposed to Work

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.1

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.1

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.1

That recorded list was never read back, the researcher found.1

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.1

The next sandbox creation showed no prompt, and the proxy delivered the dummy key to that server in cleartext.1

The approval even survived the sandbox’s deletion.1

Nothing warned the developer afterward either: the policy log recorded the connection as allowed and said nothing about a key being injected into it.1

A malicious kit version could also add its own server to the sandbox’s network allowlist without a prompt, he found.1

What an Attacker Could Do With a Stolen Key

A stolen GitHub token grants whatever its scopes allow, which for a typical developer token includes write access to their repositories, according to the researcher.1

Cloud sandboxes maintain a separate secret store, and it has not been established whether they ever shared the affected authorization logic.1

The researcher identified 12 other built-in services, including OpenAI and GitHub, that use the same credential handling process, but did not test them separately.2

The disclosure did not document theft of real credentials.2

How the Fix Works

The version’s release notes say kit credential injection now enforces the destinations approved for API keys and for OAuth separately, and treats a binding with no approved destinations as missing.1

Upgrading to 0.55.0 removes the flaw.1

No attacks using it have been reported so far.1

Who reported it

Report an error in this story

Sources

The numbers in the story point here. Each one links to the original article.

    See a sentence its source doesn’t back up?

    Tell us the source number and what’s wrong. We check every report. If we change the story, the fix goes on the corrections page with the old wording.