Skip to content
News · Security·2026-12-02

Docker Sandboxes Flaw Lets Malicious AI Agent Kit Updates Steal API Keys

A vulnerability in Docker Sandboxes allowed third-party AI coding agent updates to siphon real API keys after initial developer approval.

dockerai agentsapi securityvulnerability

What Happened

A security flaw identified in Docker Sandboxes allowed third-party AI agent kits to exfiltrate real API keys to an attacker-controlled server. Discovered by Endor Labs researcher Peyton Kennedy and tracked as CVE-2026-136998, the vulnerability meant that after a developer gave a one-time approval for a kit, a subsequent update to that same kit could redirect sensitive credentials with no additional prompts. Docker released a fix in version 0.55.0, according to The Hacker News.

Under normal operation, Docker Sandboxes aims to keep raw keys out of the sandbox entirely. A developer stores a secret on the host, the agent inside the virtual machine sends requests with a placeholder header, and a host-side proxy injects the real key. However, the researcher found that the authorization system introduced in version 0.43.0 recorded approved service bindings but never read them back during actual requests. Instead, the proxy sent real credentials to whatever domains the current version of the kit requested.

Who Is Affected

The vulnerability impacts every local version of Docker Sandboxes prior to 0.55.0 across macOS, Windows, and Linux. Thirteen built-in integrations share the affected key-injection path, including services from Anthropic, OpenAI, GitHub, and Google. Cloud sandboxes maintain a separate secret store and were not established to share the affected authorization logic. No attacks exploiting this flaw have been reported in the wild.

Context and Significance

This issue highlights a core challenge in securing AI development tooling: consent systems are only as secure as the artifacts their answers bind to. When an approval is decoupled from the specific version or content digest of an inspected artifact, updates can inherit trust unintentionally. Because global keys are shared across all sandboxes on a machine by default, a redirected token such as a GitHub credential with broad scopes can grant unauthorized access to an entire repository set.

What to Do Now

Organizations and developers utilizing Docker Sandboxes should take immediate steps to remediate the risk:

  • Upgrade Docker Sandboxes to version 0.55.0 or later immediately to enforce proper destination checks for API keys and OAuth.
  • Review the local approvals configuration file at ~/.config/sbx/credentials.yaml on Unix systems or %APPDATA%\sbx\credentials.yaml on Windows, and remove bindings granted to untrusted third-party kits.
  • Inspect a kit’s injection domains and network allowlist entries on every sandbox creation rather than just the initial setup.
  • Store keys locally per sandbox using the --sandbox flag instead of relying on global configurations.
  • Rotate any provider keys behind third-party kits that underwent updates while the system was vulnerable.

To secure your AI integrations and agent workflows against similar supply chain risks, get in touch.

This post was summarised and put in context with AI assistance from the source named above. The original source is authoritative.

Ready for a real assessment?

Short scoping call, clear proposal, kick-off in two to four weeks.

Start the conversation

Newsletter

Substance over noise

One email every two weeks with a new blog post or a technical deep dive. No clickbait.