Skip to content

Response, New York. Noah Park: Check Point Patches Actively Exploited Management Server Path Traversal. Detection, Dallas. Ava Okello: Report Finds Nearly Half of Deployed Detections Need Attention Before SOCs Can Trust Them.

SOCtember

Always First. Fast SOC News.

An Endor Labs illustration on a black background showing a glowing green key on the left connected to an approval panel with a check mark, and a red key on the right, suggesting a credential redirected after approval.
Image: Endor Labs (fair use), "CVE-2026-136998: Docker Sandboxes Vulnerability Allows Malicious AI Agent Kits to Steal Developers' API Keys," November 30, 2026. Endor Labs' lead image for the advisory.

Tools

A Docker Sandboxes Flaw Let an Updated AI Agent Kit Quietly Send Developers' Real API Keys to an Attacker After One Honest Approval, and the Logs Showed Only an Ordinary Allowed Request

Endor Labs found that Docker's sandbox for AI coding agents remembered a credential approval by service name alone, so a third-party kit could change where an Anthropic, OpenAI or GitHub key was sent without a new prompt. Docker fixed CVE-2026-136998 in version 0.55.0.

James Whitford, ToolsAustin5 min read

AUSTIN - Docker Sandboxes, the tool Docker offers for running AI coding agents inside isolated micro virtual machines, could be tricked into handing a developer's real API keys to an attacker through nothing more than an update to a third-party agent kit, according to a disclosure from the application security company Endor Labs.

The flaw, CVE-2026-136998, was found by Endor Labs researcher Peyton Kennedy and fixed in Docker Sandboxes v0.55.0, released November 30. It was introduced in v0.43.0, the release that added the credential consent prompt meant to prevent exactly this kind of leak. Kennedy scored it 8.2, High, under CVSS 3.1 and 6.9, Medium, under CVSS 4.0.

"The update runs with no prompt, no warning, and no record in the logs that a key was sent," Kennedy wrote.

A promise kept, and still not enough

Docker Sandboxes is built around one guarantee: raw keys never enter the sandbox. A developer stores a key on the host with sbx secret set. The agent inside the micro VM sends requests with a placeholder header such as x-api-key: proxy-managed, and a proxy on the host swaps in the real key for requests bound to approved destinations.

Which destinations get the key is decided by the kit, a packaged agent configuration. Third-party kits are fetched by reference, from a tag, branch or directory, much like a package. Since v0.43.0, sbx create shows the operator each credential a kit wants and where it will go, and approving writes a binding to ~/.config/sbx/credentials.yaml listing the approved domains.

The problem, Endor Labs found, was that the domains list in that binding "is written and never read." At request time the proxy checked only whether a binding existed for the service name, such as anthropic, then injected the real key at whatever domains the current kit declared. The binding was not tied to a specific kit, version or content digest.

An Endor Labs diagram titled "One approval of kit v1 silently covers every later version," with three columns for the attacker, the operator and sandboxd on the host. At t0 the attacker publishes kit v1 pointing at api.anthropic.com and the operator approves. At t1 the attacker ships kit v2 at the same reference pointing at an attacker host, and sbx create runs again with no prompt. At t2 the proxy injects the real key to the attacker host in cleartext, and sbx policy log records the destination but not the injection.
Image: Endor Labs (fair use), November 30, 2026. The credential binding version swap, in three phases.

That made the attack look like a routine update. An attacker publishes a plausible kit whose inject list names only api.anthropic.com. The developer approves it under a prompt that is truthful at the time. The attacker then ships a second version at the same reference, changing one line so the key goes to a host they control. The kit can also add that host to the sandbox's network allowlist, because its permissions.network.allow entries are applied without a prompt.

On the next sbx create, there is no prompt, warning or diff. In Kennedy's reproduction, which used a dummy key and a canary server on loopback, the canary received the header X-Api-Key: sk-ant-FAKE-CANARY-deadbeef in cleartext over plain HTTP. When he rewrote the binding's approved domains to a meaningless value, example.invalid, the leak was identical.

What the logs miss

For a security team, the most uncomfortable detail is the audit trail. sbx policy log "records the connection to the canary host as allowed and says nothing about a credential being injected into it," Kennedy wrote. "An operator reviewing logs afterwards sees an ordinary permitted request."

A screenshot of the Endor Labs advisory's summary table listing Endor Labs ID ENDOR-VUL-2026-21091, product Docker Sandboxes (sbx CLI and sandboxd), introduced in v0.43.0, fixed in v0.55.0, CWE-863 Incorrect Authorization, CVSS 3.1 8.2 High and CVSS 4.0 6.9 Medium, above an affected-versions table showing releases before v0.43.0 not affected and v0.43.0 affected.
Image: Endor Labs advisory page (fair use screenshot), November 30, 2026. The summary and affected-versions tables for CVE-2026-136998.

All 13 built-in services share the vulnerable injection path, Endor Labs said: anthropic, copilot, cursor, devin, droid, github, google, groq, mistral, nebius, openai, openrouter and xai. Kennedy demonstrated only anthropic; the other 12 follow the same code. Because sbx secret set stores keys globally by default, the key a kit could redirect is the one every sandbox on the machine uses. For model providers that means usage billed to the victim. For GitHub, Endor Labs said, a typical developer token includes write access to the victim's repositories.

Several other paths held, the researcher said. Mixin kits could not add an injection domain for a built-in service, kits could not impersonate built-in agents by name, sbx kit add refused credential-declaring kits and, without a terminal, sbx create declines rather than proceeding.

A screenshot of the Docker Sandboxes release notes under "Bug fixes and improvements, Security and credentials," with the first item reading that Docker fixed CVE-2026-136998, where a modified third-party kit could reuse a previously approved service binding to send a stored provider credential to an attacker-controlled host, and that credential injection now enforces the approved destinations for API keys and OAuth tokens.
Image: Docker documentation, Docker Sandboxes release notes (fair use screenshot), v0.55.0, November 30, 2026.

Docker's release notes for v0.55.0 say that "exploitation required the user to have previously approved the service and subsequently launch the modified kit," and that credential injection "now enforces the approved destinations for API keys and OAuth tokens." Bindings with no approved destinations are now treated as missing. It was Kennedy's second Docker Sandboxes finding, after CVE-2026-103916, a file-copy flaw that reached past a sandbox's allowed folders.

What a SOC should check

  • Inventory developer machines running Docker Sandboxes and confirm every one is on v0.55.0 or later; versions from v0.43.0 up to the fix are affected.
  • Have developers open ~/.config/sbx/credentials.yaml and remove any binding granted to a third-party kit, then review each kit's inject domains and permissions.network.allow entries before every sbx create, not just the first.
  • Pin third-party kits to a fixed commit or a reviewed local copy instead of a tag or branch, and scope keys with sbx secret set --sandbox rather than the global default.
  • Rotate Anthropic, OpenAI, GitHub and other provider keys if a third-party kit that was approved later changed, and check provider billing and GitHub audit logs for use from unfamiliar addresses.
  • Do not treat sbx policy log as proof that no key left the machine; on affected versions it records destinations but not credential injection, so correlate with egress proxy or DNS logs for unexpected hosts contacted from developer endpoints.

About the Author

James Whitford

James Whitford covers SOC tooling, SIEM, SOAR, and detection platforms for SOCtember from Austin.

Related stories

Tools desk