Complete AI Training
Start for Free

Your job's AI kit

Get your AI kit

Tell us who you are and what you do. We show you your kit right away and email you the link: skills, prompts, AI agents, MCP servers and courses for your job.

500+ jobs ready, and we make a kit for any other job. No payment needed to look.

Share

AI news ·

Docker sandboxes flaw leaks AI API keys through malicious kit updates

A Docker Sandboxes flaw lets attackers steal API keys from 13 AI services, including OpenAI and GitHub, by pushing malicious kit updates without triggering a new approval prompt.

A flaw in Docker Sandboxes could expose developers' API keys to attackers who distribute malicious updates to third-party AI agent kits. The vulnerability lets a compromised kit redirect credentials to an attacker-controlled server without triggering a new approval prompt or leaving clear evidence in audit logs.

The bug, tracked as CVE-2026-136998, was discovered by Endor Labs researcher Payton Kennedy and fixed in Docker Sandboxes version 0.55.0, released November 30. The faulty credential-handling code was introduced in version 0.43.0.

How the credential leak works

Docker Sandboxes runs AI coding agents in isolated environments. When a developer approves a third-party kit to use an API key, Docker records which domains are authorized to receive that key. On subsequent runs of the same kit, Docker checks only whether the developer previously approved the AI service - it does not re-verify that the destination domain matches the original approval.

An attacker who publishes an update to a previously approved kit can change the destination to a server they control. Docker's proxy then sends the real API key to the attacker's server without prompting the developer. The policy log shows the connection as allowed but does not indicate that credentials were transmitted.

"The second 'sbx create' shows no prompt. 'sbx policy log' records the connection to the canary host as allowed and says nothing about a credential being injected into it," Endor Labs said. "An operator reviewing logs afterwards sees an ordinary permitted request."

Affected services and scope of damage

According to Kennedy, the vulnerability impacts 13 built-in services that share the same credential-handling code: Anthropic, Copilot, Cursor, Devin, Droid, GitHub, Google, Groq, Mistral, Nebius, OpenAI, OpenRouter, and xAI. A stolen API key for an AI provider could rack up charges on the victim's account. A compromised GitHub token could grant access to private repositories, depending on the token's scope.

The fix in version 0.55.0 ensures that credential injection respects the destinations approved separately for API keys and OAuth tokens. Bindings with no approved destinations are now treated as missing, closing the gap that allowed the bypass.

What Docker Sandbox users should do now

Users should upgrade to Docker Sandboxes 0.55.0 immediately. They should also review any credential approvals previously granted to third-party kits. If a kit's configuration or destination has changed in a suspicious way, rotating the potentially exposed key is the safest course of action.

For teams running AI coding agents in development environments, the incident highlights a broader risk: trust in third-party tooling extends beyond initial vetting. Updates to those tools can silently alter where sensitive credentials flow. Organizations that want to build stronger security practices around AI tooling may benefit from dedicated AI Security Analytics Courses that cover supply-chain risks and credential hygiene in agent-based workflows.

Why this matters for IT and development teams

The vulnerability turns a routine kit update into a credential exfiltration vector. Because the attack leaves almost no trace in standard logs, detection is difficult. Development leads and platform engineers should treat third-party AI agent kits with the same supply-chain scrutiny applied to any other dependency. Credential rotation and approval audits should become part of the update cycle, not a one-time onboarding step. Developers working with AI coding tools can also find relevant security-focused training through AI for Developers Courses that address secure integration practices.

Share