Friday, 4 December 2026
4 agent hacks today▼ 3 vs yesterday (7)

Docker Sandboxes flaw could leak AI coding agents' API keys

Security firm Endor Labs found that a malicious update to a third-party agent kit could ship a developer's Anthropic, OpenAI or GitHub key to an attacker.

By The Agentic Times ·

Docker Sandboxes flaw could leak AI coding agents' API keys
· Image: thehackernews.com

A vulnerability in Docker Sandboxes, Docker's tool for running AI coding agents inside isolated virtual machines, could allow a malicious update to a third-party agent kit to steal the API keys the product is meant to keep away from the agent, according to reports published on 1 December 2026.

The flaw was identified by security firm Endor Labs. According to The Hacker News, the issue turns on what happens after a developer approves an agent kit once. A later update to that same kit could send the developer's real Anthropic, OpenAI or GitHub key to a server controlled by the attacker, with no new prompt shown to the developer. BleepingComputer described the bug as one that could leak developers' API keys to an attacker distributing malicious updates to third-party agent kits.

The point of Docker Sandboxes is isolation. AI coding agents are programs that read and write code, run commands and call external services on a developer's behalf, and sandboxing is the usual way to limit what they can touch if they go wrong or are manipulated. Credentials are a common thing to hold back: the sandbox is supposed to let the agent work without handing it the live keys that pay for model usage or unlock source code repositories. According to The Hacker News, the flaw meant a third-party agent kit could reach exactly those keys.

The mechanism described is a supply chain one rather than a prompt injection or a jailbreak. The developer's single decision to trust a kit carries forward to every version of that kit that follows. That is a familiar pattern from package managers, where a maintainer account takeover or a deliberately poisoned release lets attackers inherit trust granted to earlier, benign versions. What the sources describe as new here is that the trust being inherited covers credentials the sandbox was specifically designed to withhold.

The keys named in the reports are high-value. An Anthropic or OpenAI key can be used to run model requests billed to the victim. A GitHub key can, depending on its scope, reach private source code. The sources do not say whether any developers' keys were actually taken, how many installations were affected, or how the flaw was found.

Neither source, as published, records a statement from Docker on a fix or a patched version, and no CVE identifier is given. The incident record for this disclosure lists its status as reported.

Developers using Docker Sandboxes with third-party agent kits should watch for an advisory from Docker and review which kits they have approved. Rotating any Anthropic, OpenAI or GitHub keys that have been made available to a sandboxed agent is the standard response to a credential exposure of this kind, though the sources do not include specific guidance from the vendor or from Endor Labs.

Sources

  1. thehackernews.comhttps://thehackernews.com/2026/12/docker-sandboxes-flaw-lets-malicious-ai.html
  2. bleepingcomputer.comhttps://bleepingcomputer.com/news/security/docker-sandboxes-bug-could-leak-ai-api-keys-via-malicious-updates