Docker Sandboxes Flaw Exposes Developer AI API Keys
Docker patches a critical Sandboxes authorization flaw, CVE-2026-136998, that allowed malicious agent kits to steal developers' API keys silently.

Table of Contents
Key Takeaways
- Vulnerability CVE-2026-136998 allows rogue AI agent kit updates to exfiltrate developers’ secret API credentials.
- Docker Sandboxes validated user consent by service label instead of cryptographically binding destination endpoints.
- The runtime host proxy silently substituted real Anthropic, OpenAI, and GitHub tokens onto attacker-controlled destinations.
- Docker remediated the flaw in version
v0.55.0; no active exploitation was observed in production environments.
A critical authorization vulnerability in Docker Sandboxes allowed malicious third-party AI agent kits to exfiltrate private developer API credentials without requiring secondary consent. Security researcher Peyton Kennedy of Endor Labs identified and reported the security defect, which enables automated credential theft across isolated coding microVMs.
Disclosed in November 2026 and tracked under CVE-2026-136998, the issue stems from flawed permission persistence inside the sbx command-line interface and sandboxd host daemon. While Docker Sandboxes isolates untrusted coding models inside microVMs to safeguard host files, its credential-brokering design inadvertently allowed rogue package updates to redirect high-privilege LLM tokens directly to attacker servers, presenting enterprise supply chain exposure similar to risks documented in our coverage of cloud credential leakage incidents.
Technical Breakdown
Docker Sandboxes introduced credential consent gates in version v0.43.0 to decouple sensitive platform secrets from the guest runtime. Under this model, third-party agent kits running inside guest environments receive temporary mock tokens. When an agent initiates an egress API call, the host-level proxy intercepts the traffic and substitutes placeholder headers with real production credentials, including tokens for OpenAI, Anthropic, and GitHub.
However, the authorization subsystem mapped developer approvals strictly to static service identifiers rather than pinning the target domain name or the agent kit’s cryptographic package hash. As cataloged under MITRE ATT&CK Technique T1195.002 (Supply Chain Compromise: Compromise Software Dependencies), an attacker publishing an innocuous agent kit could prompt a developer for initial authorization to a legitimate service. In a subsequent version update, the publisher could alter the underlying destination URL to an attacker-controlled endpoint.
Because the Docker daemon retained the historical consent binding across sandbox rebuilds and container deletions, sandboxd evaluated the outbound request against the trusted service label alone. The host proxy automatically stripped mock values and inserted active API tokens into headers outbound to the malicious destination. Compounding the issue, Docker’s native policy audit logging merely recorded the egress request as authorized under the configured service name, leaving security teams with zero visibility into the off-platform credential exfiltration.
Impact Matrix
| Security Dimension | Verified Assessment |
|---|---|
| Tracked Identifier | CVE-2026-136998 / ENDOR-VUL-2026-21091 (CWE-863) |
| Affected Components | Docker Sandboxes (sbx CLI and sandboxd) v0.43.0 through v0.54.x |
| Patched Release | Docker Sandboxes v0.55.0 |
| Exposed Secrets | Anthropic API keys, OpenAI API keys, GitHub personal access tokens |
| Isolation Boundary Breach | Negative; microVM hypervisor boundaries remained completely intact |
| Observed In-the-Wild Abuse | Zero verified exploitation detected prior to coordinated vendor patch |
Decoupling credentials from AI execution environments fails if the host proxy performs ambient credential insertion without strict cryptographic destination pinning. Autonomous developer tooling requires absolute identity-to-endpoint verification before secrets ever touch an egress packet.
— Texial Threat Research Desk
Immediate Actions
- Upgrade all local workstations and developer environments to Docker Sandboxes
v0.55.0or higher immediately to enforce cryptographic destination validation. - Review local
sbxconfiguration stores and purge stale agent consent bindings established under prior releases. - Rotate all Anthropic, OpenAI, and GitHub tokens previously integrated into Docker Sandboxes environments as an absolute defense-in-depth measure.
- Enforce egress perimeter domain allowlisting on developer endpoints to prevent unauthorized outbound transfers to unapproved endpoints.
- Audit AI dependency supply chains to inspect third-party agent kit version updates before onboarding new models into local engineering workflows.
Frequently Asked Questions
How did Docker Sandboxes inject API keys into outbound requests?
The host-level sandboxd proxy intercepted egress traffic containing temporary placeholder headers, automatically substituting them with live provider keys before sending packets downstream.
Which developer credentials were susceptible to this redirection flaw?
Any provider token configured within the sandbox credential gate was susceptible, specifically including production Anthropic, OpenAI, and GitHub developer access keys.
Why did policy logs fail to detect credential theft?
Docker Sandboxes logged egress transactions based strictly on the approved service label, omitting destination server IP records and masking the underlying credential injection process.
What remediation is required besides updating Docker Sandboxes?
Engineering teams should invalidate and rotate existing LLM provider tokens and audit all third-party agent kits installed across their development workstations.
Keep your security team ahead of this threat.
Rajiv Sharma
Cybersecurity correspondent tracking zero-day advisories, endpoint threats, and enterprise patching for Texial Newsroom.


