DriftLock

Docker Sandboxes Flaw Let Agent Kits Steal API Keys: What to Do

CVE-2026-136998, disclosed by Endor Labs and patched by Docker in version 0.55.0, let a third-party AI agent kit that a developer had already approved push a later update that redirected their real Anthropic, OpenAI, GitHub, or other provider API key to an attacker-controlled server, without triggering a new approval prompt and without the theft showing up in Docker's policy log. Thirteen built-in services sharing the vulnerable credential-handling code were affected, including Anthropic, Copilot, Cursor, Devin, Droid, GitHub, Google, Groq, Mistral, Nebius, OpenAI, OpenRouter, and xAI. No attacks exploiting it have been reported; companies should confirm they are on Docker Sandboxes 0.55.0 or later and inventory which agent kits their developers have approved.

Docker Sandboxes is built around a specific promise: the API keys a developer uses to talk to Anthropic, OpenAI, GitHub, and similar providers never enter the sandbox where an AI coding agent actually runs. CVE-2026-136998, disclosed by researchers at Endor Labs and reported by The Hacker News and BleepingComputer, shows that promise could be broken through a path the sandbox's own approval system was supposed to prevent.

How the theft worked

When a developer installs a third-party "agent kit" — a package that extends what a coding agent can do — Docker Sandboxes asks them to approve which outside domains that kit is allowed to reach. That approval is a one-time gate: once granted, Docker trusts it going forward. The flaw is in what happens next. If the kit publishes an update that quietly changes its destination to a server the attacker controls, Docker's proxy reuses the original approval and sends the developer's real API key to the new destination — no new prompt, no second chance to say no.

Two details make this worse than a simple leaked credential. First, Docker Sandboxes stores credentials globally by default, so the key an attacker captures isn't scoped to one project or one sandbox session — it's the same key every sandbox on that machine uses. Second, the policy log that security teams rely on for after-the-fact review doesn't show the theft. Endor Labs described the log as recording the connection to the malicious host as "allowed" while saying nothing about a credential being injected into it. A security team scanning logs for suspicious activity would see a permitted connection and move on.

Endor Labs proved the vulnerability using a dummy key and a local test server, and rated it 8.2 (High) under CVSS 3.1. The flaw stems from how credential approvals get reused combined with a lack of checks on whether the destination has actually changed — a gap in the trust model rather than a one-off bug.

What was affected

The vulnerable credential-handling code is shared across thirteen built-in services: Anthropic, Copilot, Cursor, Devin, Droid, GitHub, Google, Groq, Mistral, Nebius, OpenAI, OpenRouter, and xAI. That breadth matters for IT and security leaders because it means the exposure wasn't tied to one provider or one coding tool — any team using Docker Sandboxes with any of these integrations was potentially exposed, regardless of which specific agent their developers preferred.

Timeline

Endor Labs reported the issue to Docker on September 21. Docker shipped a fix in version 0.55.0, 70 days later, with the patch and public disclosure both landing around December 1, 2026. This is the second vulnerability reported in Docker Sandboxes in a month, following a separate file-copy flaw fixed in November. No exploitation in the wild has been reported for either issue, but the pattern — two credential-and-isolation bugs inside a few weeks — is worth noting on its own.

What to check today

  • Confirm every machine running Docker Sandboxes has been upgraded to version 0.55.0 or later. The patch is out; the exposure window closes only once it's actually installed everywhere, not just on the machines IT remembers to check.
  • Pull the list of third-party agent kits your developers have approved. Any kit update since the original approval is a point where the destination could have changed without anyone reviewing it again.
  • Rotate API keys for Anthropic, OpenAI, GitHub, and any other provider used inside Sandboxes on machines where the patch wasn't applied promptly, since the policy log can't tell you whether a key was quietly redirected before the fix landed.
  • Treat "approve once" permission models for any AI tool — not just Docker Sandboxes — as something that needs periodic re-review, not a one-time decision.

Where DriftLock fits

This flaw lived inside Docker's own credential-handling and approval logic — a layer DriftLock does not sit inside and cannot patch. What DriftLock does is watch the AI tools running on the laptop itself: Claude Code, GitHub Copilot CLI, Cursor, VS Code, Windsurf, Claude Desktop, and AI in Chrome, Edge, and Brave. It flags when an agent's behavior changes in ways that suggest it's reaching a destination or requesting data it shouldn't, and it gives IT a Console to set and enforce policy across every company laptop rather than relying on each developer to remember to check for updates and reapprove kits correctly. DriftLock does not inspect sandbox internals or replace a vendor's own patching, and it would not have detected this specific credential-exfiltration path inside Docker's proxy. It's a second layer for the agents running on the machine, not a substitute for keeping the tools themselves patched.

DriftLock is available now: free for Mac, with an optional Pro plan. Windows and business accounts are on a waitlist.

What to take away

  • CVE-2026-136998 let an already-approved AI agent kit silently redirect a developer's real API key after a later update, with no new prompt and no trace in the policy log.
  • Thirteen integrations were affected, including Anthropic, OpenAI, GitHub, Copilot, and Cursor; Docker patched it in version 0.55.0.
  • No exploitation has been reported, but Endor Labs's 70-day disclosure-to-patch window and the second Sandboxes flaw in a month argue for treating the upgrade as urgent, not routine.
  • One-time approval models for AI tool permissions need periodic re-review, since an update can change what was approved without asking again.

Download DriftLock

Sources

Related