All articles
2 min read

Docker Sandboxes bug could leak AI API keys via malicious updates

Malicious updates to AI agent tools pose a direct supply chain risk to sensitive API keys.

  • cyber
  • threat-intelligence
  • defense
Editorial hero image for Docker Sandboxes bug could leak AI API keys via malicious updates

The promise of a sandbox is simple: run untrusted code in a box where it can’t hurt you. A recent vulnerability in Docker Sandboxes shows how that promise can be broken by a subtle flaw in how permissions are granted and remembered.

According to a December 1 report from Endor Labs, a bug in the tool could leak developers’ AI and GitHub API keys. The issue isn’t a sandbox escape in the traditional sense. Instead, it’s a logic flaw in how the tool handles credential approvals for AI agent kits.

An Overly Trusting Permission Model

Here’s the attack flow described by the researchers:

  1. A developer uses a third-party agent kit inside Docker Sandboxes and approves its request to use, say, an OpenAI key to access api.openai.com.
  2. The kit’s author pushes a malicious update that changes the API destination to an attacker-controlled server.
  3. When the developer runs the updated kit, the sandbox checks that the kit is still using the OpenAI service, sees the previous approval, and injects the API key into the request.

The critical failure is that the sandbox doesn’t re-verify the destination domain after the initial approval. It trusts that an approval for a service is an approval for any destination that kit might use in the future.

This vulnerability (CVE-2026-136998) also had a stealth component. Endor Labs found that the policy logs would show the connection to the malicious host was allowed but wouldn’t mention that a developer’s API key was injected into the request. An operator reviewing logs would see a permitted network request and nothing more.

The Fix and the Broader Lesson

Docker fixed the issue in version 0.55.0, released on November 30. The new version now correctly binds credential approvals to the specific destinations the developer originally authorized. The flaw was reportedly introduced in version 0.43.0 and affected credential handling for 13 built-in services, including Anthropic, Google, Groq, Mistral, and OpenAI.

This isn’t just a simple patching story. It’s a good reminder for anyone building tooling that manages access for other tools, especially in the AI agent ecosystem. When you design a permission system for a component that can be updated by a third party, is a one-time approval enough? This bug suggests that permissions need to be scoped not just to a service, but to the specific, verified endpoint it’s allowed to contact.


Source: Docker Sandboxes bug could leak AI API keys via malicious updates

Tony Muzo

Cybersecurity analyst focused on threat intelligence, incident response, and security automation. More about me