Skip to content
Docker Sandboxes Vulnerability Lets Malicious AI Agents Steal OpenAI, Anthropic and GitHub API Keys

Docker Sandboxes Vulnerability Lets Malicious AI Agents Steal OpenAI, Anthropic and GitHub API Keys

Gbhackers •Divya • December 1, 2026

A vulnerability in Docker Sandboxes could let a malicious third-party AI agent kit steal developer credentials for OpenAI, Anthropic, and GitHub after a developer approved the kit once.

Tracked as CVE-2026-136998, the flaw allowed a later kit update to redirect a real credential without prompting the developer again. Docker fixed the issue in version 0.55.0, released November 30, 2026.

Docker Sandboxes Vulnerability

Unlike earlier Docker Sandboxes vulnerabilities that exposed host files , this flaw did not require an agent to escape its virtual machine. Docker Sandboxes keeps raw credentials on the host.

A proxy adds them to outbound requests destined for approved services, letting agents authenticate without seeing the secrets. The flaw was in how the host proxy enforced those approvals.

Peyton Kennedy of Endor Labs found that Docker recorded the destinations a developer approved but did not enforce that list when attaching credentials to requests.

The approval was associated with the service rather than the specific kit version the developer reviewed. That meant an updated kit could retain the original approval even though its credential destination had changed.

The issue differs from the Docker CopyEscape vulnerability , which could let a malicious container overwrite host files during a copy operation. Here, the secret never had to enter the sandbox. The host proxy sent it.

Kennedy also found that the policy log recorded the outbound connection as allowed without indicating that the proxy had attached a credential.

Kennedy confirmed the behavior on version 0.43.0 using a dummy Anthropic credential. The report identified 13 built-in services that the same credential-handling path. However, it did not test the other 12 individually.

The flaw was rated 8.2 High under CVSS 3.1 and 6.9 Medium under CVSS 4.0. Both scores describe the same authorization flaw.

The consequences depend on which credential is exposed. A stolen OpenAI or Anthropic key can be used to make API calls billed to the victim. A GitHub token can grant repository write access if its permissions allow it.

The GhostAction supply chain campaign separately targeted these same credentials, although it used a malicious GitHub Actions workflow rather than a sandbox authorization flaw.

As with the credential-stealing compromise of the Tensorlake package , the risk extends beyond the developer workstation. Once exposed, an attacker can use a credential against the provider account within its permissions.

Developers should upgrade to version 0.55.0 or later. The Docker Sandboxes release notes say the fix enforces approved destinations separately for API keys and OAuth credentials.

The update also requires external endpoints to use HTTPS before they can receive host-managed credentials. Ordinary HTTP requests can still proceed when network policy allows them, but the proxy no longer attaches those secrets.

Teams should review existing third-party kit approvals and rotate any credentials that may have been exposed. Where possible, pin kits to a reviewed commit rather than a moving branch or tag, and scope credentials to individual sandboxes instead of sharing them globally.

Because the old policy logs did not identify credential injection, teams investigating possible exposure should also review provider usage and billing records for unexpected activity, along with GitHub audit logs where available.

Join ANY.RUN and Torq to learn how TI Feeds can help your SOC detect up to 30% of malicious IOCs earlier & accelerate investigations -> Attend Free Live Webinar

Artificial Intelligence

Cyber security Course

Cyber Security Resources

Cybersecurity

Information Gathering

Information Security Risks

Turnitin Cyberattack Exposes Student and Educator Accounts to Data Theft Risks

easyDNS Confirms Cyberattack Exposing Customer Credentials and Sensitive Personal Data

USB2Shell Linux Kernel Vulnerability Allows Root Access Through Malicious USB Devices Without Login

Hackers Turn Downloadable AI Models Into Malware Carriers Without Breaking Their Normal Functions

Hackers Exploit React2Shell to Steal 50,000 Credentials From 19,000 Servers

Canada Detects Suspected AI-Powered Cyberattacks on Government Networks, Warns of Service Disruptions

The full story

This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.

Docker Sandboxes flaw CVE-2026-136998 let malicious AI agent kits redirect real API keys Endor Labs reports CVE-2026-136998, a flaw in Docker Sandboxes that could let a third-party AI agent kit send a developer's real API key for Anthropic, OpenAI, or GitHub to an attacker-controlled server. The developer approves a kit once, and a later kit update can redirect the credential without a new prompt, warning, or log entry recording that a key was sent. The researcher attributes the flaw to Docker recording approvals by service name rather than by the specific kit version reviewed, and to the host proxy not enforcing approved destinations when attaching credentials. Endor Labs confirmed the behavior using a dummy Anthropic key; the other 12 built-in services sharing the same code path were not tested individually, and no theft of real credentials is documented in the disclosure. Because sbx secret set stores credentials globally by default, a redirected key could be used across every sandbox on the machine, with API usage billed to the victim and GitHub tokens potentially granting repository write access. Endor Labs reported the issue to Docker on September 21, and the researcher rated it 8.2 (High) under CVSS 3.1 and 6.9 (Medium) under CVSS 4.0. Docker fixed the issue in Docker Sandboxes v0.55.0, released November 30, 2026, which enforces approved destinations separately for API keys and OAuth credentials and requires HTTPS for endpoints receiving host-managed credentials. Developers are advised to upgrade, review third-party kit credential approvals, and rotate any credentials that may have been exposed. 3 sources 68