LIVE FEED
ATLAS OWASP HIGH Significant risk · Prioritise patching RELEVANCE ▲ 8.5

CVE-2026-136998: Docker Sandboxes Flaw Leaks AI API Keys

TL;DR HIGH
  • What happened: Docker Sandboxes flaw lets updated AI agent kits silently steal real API keys from developers.
  • Who's at risk: Developers using Docker Sandboxes versions 0.43.0–0.54.x who have approved any third-party agent kit with credential access to Anthropic, OpenAI, GitHub, or Google.
  • Act now: Upgrade Docker Sandboxes to version 0.55.0 immediately · Audit previously approved agent kits and revoke bindings for untrusted sources · Rotate any API keys (Anthropic, OpenAI, GitHub, Google) stored via sbx secret set as a precaution
CVE-2026-136998: Docker Sandboxes Flaw Leaks AI API Keys

Overview

A high-severity vulnerability tracked as CVE-2026-136998 in Docker Sandboxes — a product designed to run AI coding agents inside isolated virtual machines — allowed maliciously updated agent kits to silently exfiltrate developer API keys to attacker-controlled servers. Discovered by Endor Labs researcher Peyton Kennedy, the flaw undermines the product’s core security promise: that raw credentials (Anthropic, OpenAI, GitHub, Google) never enter the sandbox. Docker patched the issue in version 0.55.0, released December 1, 2026.

Technical Analysis

Docker Sandboxes uses a proxy-based credential injection model. Developers store API keys on the host using sbx secret set; agents inside the VM send requests with placeholder headers; a host-side proxy substitutes the real key before forwarding the request. Which domains receive the real key is controlled by the kit — a packaged agent configuration fetched from a registry, Git reference, or local folder.

Since version 0.43.0 (September 15), approving a kit’s credential request creates a binding that records the permitted service and destination domains. The critical flaw: that recorded domain list was never consulted at request time. The proxy only checked whether a binding existed for the service name, then forwarded the real key to whatever domains the current version of the kit specified.

Kennedy demonstrated the attack with a simple two-step scenario:

  1. Developer approves a kit pointing to api.anthropic.com.
  2. The kit is silently updated at the same reference to point to an attacker’s test server.
  3. The next sandbox creation shows no new prompt; the proxy delivers the key in cleartext to the attacker’s server.

The approval binding persisted even after sandbox deletion, and the policy log recorded the connection as “allowed” with no indication that a key was injected — leaving developers with no post-facto warning. Additionally, a malicious kit could add its own server to the sandbox network allowlist without triggering any prompt.

Thirteen built-in integrations share this key-injection path, including Anthropic, OpenAI, GitHub, and Google.

Framework Mapping

  • AML.T0010 (AI Supply Chain Compromise) and AML.T0110 (AI Agent Tool Poisoning): The attack vector is a silently updated third-party agent kit — a supply chain artifact.
  • AML.T0083 / AML.T0098 (Credentials from/via AI Agent Configuration): The flaw directly enables credential harvesting through the agent’s configuration layer.
  • AML.T0086 (Exfiltration via AI Agent Tool Invocation): Real API keys are exfiltrated via the proxy during normal agent operation.
  • LLM05 (Supply Chain Vulnerabilities): Kit updates are fetched from external registries without re-consent.
  • LLM06 (Sensitive Information Disclosure): API keys are disclosed to unauthorized third parties.
  • LLM08 (Excessive Agency): The kit controls network routing decisions with no runtime oversight.

Impact Assessment

All Docker Sandboxes versions from 0.43.0 through 0.54.x on macOS, Windows, and Linux are affected. Any developer who approved a third-party kit with access to Anthropic, OpenAI, GitHub, or Google credentials is potentially at risk. CVSS 3.1 rates the flaw 8.2 (High) with a local attack vector — the attacker requires only a one-time approval from the developer and a single line change in a subsequent kit release. No network access to the developer’s machine is required. No in-the-wild exploitation has been reported.

Mitigation & Recommendations

  1. Upgrade immediately to Docker Sandboxes ≥ 0.55.0, which enforces the recorded domain allowlist at request time.
  2. Rotate all API keys stored via sbx secret set — Anthropic, OpenAI, GitHub, and Google — as a precautionary measure.
  3. Audit approved kit bindings: remove approvals for any kit sourced from untrusted or unverified registries.
  4. Pin kit versions by digest or commit hash rather than mutable Git references or registry tags.
  5. Monitor proxy logs for outbound connections to unexpected domains involving credential headers.

References

◉ AI THREAT BRIEFING

Stay ahead of the threat.

Twice-weekly digest of critical AI security developments — every story mapped to MITRE ATLAS and OWASP LLM Top 10. Free.

No spam. Unsubscribe anytime.