Docker Sandboxes Flaw Could Let Malicious AI Agents Steal OpenAI, Claude and GitHub API Keys

cyberpress.org

CVE-2026-136998 EPSS 0.3%

An incorrect authorization flaw in Docker Sandboxes could expose raw API credentials for OpenAI, Anthropic’s Claude and GitHub through a malicious third-party agent kit.

Tracked as CVE-2026-136998, the defect allows an updated kit to inherit a developer’s prior credential approval even when its requested destination changes.

Endor Labs researcher Peyton Kennedy reported that Docker introduced the affected consent mechanism in v0.43.0 and fixed it in v0.55.0, released November 30, 2026. The disclosure describes controlled testing, not confirmed theft of production credentials.

Docker Sandboxes Flaw

Docker Sandboxes runs coding agents inside lightweight virtual machines and keeps raw secrets on the host. When an agent makes an authorized outbound request, a host-side proxy substitutes the real credential for a placeholder. Unlike earlier Docker Sandboxes isolation flaws, this issue does not require a guest escape or direct access to host files.

The microVM boundary holds, but the host proxy can transmit the secret beyond the destination the developer approved. Keeping a key outside the guest does not protect it if the host’s proxy sends it to an unauthorized recipient

credential binding version swap · 3 phases, attacker, operator, sandboxd (Source: endorlabs)

The sbx CLI records the approved destination domains, but the affected runtime checks whether an approval exists for the service rather than enforcing those domains.

The approval is also not bound to the reviewed kit’s identity, source or content digest, a fingerprint of its contents. A later kit revision can therefore inherit authorization without a fresh prompt.

Kennedy reported that the policy log recorded an allowed connection but did not identify the credential injection, limiting what defenders could reconstruct from Docker’s logs alone.

Kennedy demonstrated the disclosure with a dummy Anthropic credential and a local test endpoint. Kennedy identified 13 built-in services that share the credential injection path, but did not separately demonstrate exposure for OpenAI, GitHub or the other services.

Because Docker Sandboxes stores credentials globally by default, an exposed key could be the same one used by multiple sandboxes on a developer’s machine.

Stolen model-provider credentials could incur unauthorized inference charges, while exposed GitHub credentials can enable repository writes if the token grants them.

Endor Labs classified the defect as CWE-863, Incorrect Authorization, and assigned it a CVSS 3.1 score of 8.2 (High) and a CVSS 4.0 score of 6.9 (Medium).

The reported scenario requires an initial developer approval and subsequent use of an updated kit, but no pre-existing attacker account on the workstation.

Unlike intrusions targeting internet-exposed coding agents, this case concerns the trust granted to locally run third-party artifacts, not an exposed management interface.

Administrators should upgrade to Docker Sandboxes v0.55.0 or later, review existing third-party credential approvals and remove grants they no longer need.

Where an approved kit changed unexpectedly, revoke and replace potentially exposed keys, then review provider usage and GitHub audit activity for signs of misuse.

Pinning kits to reviewed immutable revisions reduces the risk of unreviewed updates. Using sandbox-scoped credentials with minimal provider permissions limits what a single credential can expose.

Join 16,000+ SOC teams using ANY.RUN to streamline threat investigations and reduce manual effort. Explore for your team 

The post Docker Sandboxes Flaw Could Let Malicious AI Agents Steal OpenAI, Claude and GitHub API Keys appeared first on Cyber Security News.

Read at cyberpress.org ↗

Filed under vulnidentityai

Coverage (6 sources)

  • Cyber Security News
  • Endor Labs
  • The Hacker News
  • BleepingComputer
  • Expert Insights
  • SCM feed for Latest
Mentions (2)
Reader notes

Notes are held for moderation. No account needed.