← Back to all posts
Published on · by Renaud Deraison

The approval carried over

On November 30, Endor Labs disclosed CVE-2026-136998 in Docker Sandboxes. The sandbox keeps API keys on the host and a proxy adds them on the way out, but the list of hosts that get the real key came from the agent kit, and approving one kit version approved every later one. A one-line update sent a developer's Anthropic key to the attacker's server with no prompt, and the policy log called the connection allowed. In Bromure Agentic Coding, each key's destination is fixed on the Mac, nothing inside the VM can change it, and a stand-in headed anywhere else is blocked and pauses the VM.

The binding's domains list is written and never read.

On November 30, Peyton Kennedy of Endor Labs published CVE-2026-136998, a flaw in Docker Sandboxes, Docker's tool for running coding agents in microVMs. Docker fixed it the same day in version 0.55.0. Every earlier release back to 0.43.0, on macOS, Windows and Linux, is affected. A third-party agent kit that a developer had approved once could later send the developer's real Anthropic, OpenAI or GitHub key to a server of the attacker's choosing, and nothing asked first.

Kennedy reported it on September 21. No exploitation has been seen. CVSS 3.1 puts it at 8.2, High.

How the key is supposed to stay safe

Docker Sandboxes uses the same pattern Bromure does. You store a key on the host with sbx secret set. The agent inside the VM never holds it. It sends requests with a placeholder header, x-api-key: proxy-managed, and a proxy on the host swaps in the real key as the request leaves. Kennedy confirms that part held: the real key never entered the VM.

The question is which requests get the real key. In Docker Sandboxes, a kit answers it. A kit is a packaged agent setup that you can pull from a registry, a Git reference or a local folder, and its inject block lists, per service, the domains where the proxy should add the credential. Version 0.43.0, released September 15, added a consent gate. When a kit asks for a credential, sbx create shows the service and its domains, and approving writes a binding to ~/.config/sbx/credentials.yaml:

anthropic:
  apiKey:
    domains:
    - api.anthropic.com

What went wrong

The proxy never read that domains list. At request time, the check asked one question: is there a row for anthropic? If there was, the proxy added the real key at whatever domains the current kit declared. The binding wasn't tied to a kit name, a version or a content digest.

So the attack takes one approval and one update:

  1. The attacker publishes kit v1. Its inject block names only api.anthropic.com.
  2. You run sbx create, read an accurate prompt, and approve.
  3. The attacker publishes v2 at the same reference. The one change is the inject domain, now the attacker's host.
  4. Your next sbx create finds the anthropic row and shows nothing.
  5. The proxy sends your real key to the attacker's host.

Kennedy tested it with a dummy key and a server on his own machine. He approved kitA, deleted the sandbox, created a new one from kitB, and ran one curl with the placeholder header. His server logged X-Api-Key: sk-ant-FAKE-CANARY-deadbeef in cleartext. Then he rewrote the binding's domains to example.invalid, a host neither kit used, and got the same leak. The recorded list made no difference.

Three more details make it worse:

  • The approval outlived the sandbox. sbx rm deleted the sandbox and left the binding in credentials.yaml.
  • The kit could open its own egress. v2 could add the attacker's host to permissions.network.allow in the same file, with no prompt.
  • The log said allowed. sbx policy log recorded the connection as allowed and said nothing about a key being added.

Secrets set with sbx secret set are global unless you pass --sandbox, so one redirected binding reached every sandbox on the machine. Thirteen built-in services share the code path, including Anthropic, OpenAI, GitHub, Google, Groq, Mistral and OpenRouter. A model key gives the attacker metered access billed to you. A GitHub token gives them its scopes, which for most developers means write access to their repositories.

1. You approve v1kit inject block:api.anthropic.comprompt is accurate,you say yesbinding written tocredentials.yaml2. The kit updatessame reference, v2inject domain now:attacker.exampleand added topermissions.network.allowno prompt for either3. The check passesnext sbx create asks:is there an anthropic row?yes, so no promptthe recorded domainsare never compared4. The proxy sends itagent sendsx-api-key: proxy-managedhost proxy swaps inthe real key forattacker.examplepolicy log: allowed,no mention of the keyEndor Labs, CVE-2026-136998, November 30, 2026affected 0.43.0 to 0.54.x · fixed in 0.55.0 · reported September 21 · CVSS 3.1 8.2 High · no exploitation reportedbinding survived sbx rm · secrets global by default · 13 built-in services on the same paththe real key never entered the VM: the host sent it where the kit said
CVE-2026-136998 as Endor Labs reproduced it. The developer approves kit v1 for api.anthropic.com. The binding records only the service name in practice, so kit v2, which points the inject domain at the attacker's host, passes without a prompt, and the host proxy adds the real key to requests bound there.

Where the destination comes from

Kennedy's summary: "The key does not need to enter the VM if the VM's kit decides where the host sends it." Keeping secrets out of the sandbox only helps if the list of hosts that get the real secret is also out of the sandbox's reach. Here it was in a file the attacker publishes and can change whenever they like.

His second point is about the prompt: "If the approval is not tied to the artifact that was inspected, the next update inherits it." The dialog was accurate, defaulted to decline, and you made the right call. The answer then applied to a version you never saw.

Docker's fix makes the proxy enforce the approved domains, for API keys and for OAuth, each on its own list, and treats a binding with no domains as missing. Kennedy also asked Docker to key approvals to the kit's content digest and to log every key injection. The release notes don't mention either.

The same kit in Bromure Agentic Coding

Bromure Agentic Coding runs Claude Code, Codex, Grok, Kimi and omp in Ubuntu VMs on your Mac. The VM holds stand-ins, the real credentials stay encrypted on the Mac, and a proxy on the Mac swaps them in on the way out, like Docker's. The two differ on who sets each credential's destination, and on what the proxy does with a request bound anywhere else.

The destination is set on the Mac

When a machine boots, the app builds its token plan on the Mac: each real credential, its stand-in, and the host it belongs to. That host comes from the credential itself. An Anthropic key is scoped to Anthropic, an OpenAI key to OpenAI, a Linear key to linear.app. A GitHub or GitLab token goes to the host you typed when you added it. An MCP bearer token goes to the server host you entered in the MCP pane. A generic key goes to the hosts in its host filter. All of these live in the machine's settings on the Mac.

The proxy reads none of this from inside the VM. No agent config, plugin, skill, MCP config or new release of any of them declares where a real key goes, so editing a downloaded file can't move a key. Matching is exact host or subdomain, case-insensitive, never substring: a key scoped to openai.com goes to api.openai.com and not to openai.com.evil.example.

In Kennedy's test, the request to his canary host would go out with the stand-in still in it, and the canary would log a fake key.

A stand-in sent elsewhere stops the VM

Bromure also stops that request before it reaches the attacker. Each stand-in is unique, derived from the real value with HKDF-SHA256 and a per-install salt, so sk-ant-api03-brm-… identifies one credential. The proxy scans every outbound request, headers and body, for a stand-in headed outside its scope.

When it finds one, the request gets an HTTP 451 and no byte reaches the destination. The VM pauses, and the Mac shows This environment may have been compromised, with a line for each leak: the token preview, the credential's name, the host it was minted for and the host it was sent to. You choose Shut down, Block, Allow for this session only, or Save for Investigation, which exports the disk and home for a closer look. In Kennedy's scenario, step 5 is where you would learn the kit had changed, with its request on screen.

The kit can't open its own egress

Kit v2 added the attacker's host to its own network allowlist. In Bromure, a machine's network rules live in Settings › Sandbox Policy on the Mac, enforced by the proxy and the virtual switch, out of the VM's reach. On the OpenShell + Sentry engine everything is denied unless a rule allows it, and the starter policy allows GitHub, npm and PyPI read-only plus Ubuntu's mirrors. An agent can propose a rule only if you turned Agent proposals on, and the proposal comes to you. A file in the VM can't add a host.

Approvals end with the session

For keys you want watched, Ask before use in the Guardrails pane holds the first use of the credential in each session for a dialog: Allow for 5 minutes, Allow for 1 hour, Allow for the rest of the session or Don't allow. Grants live in memory. They end when the VM shuts down, they never survive an app restart, and Window › Credential Approvals… lists every live one with a Revoke button. Nothing is written to a file that a deleted sandbox leaves behind for the next one to inherit.

Every swap is on the record

Docker's policy log called the leaking connection allowed and said nothing about the key. Bromure's Security Timeline records every swap as a Credential brokering row, "swapped in sk-a…9f", with the destination host in the Condition column. A blocked leak is a red row: "blocked — exfiltration attempt, VM paused". Double-click a blocked row and the network lineage shows the prompt, the tool call and the process chain behind the request.

The GitHub token gets one more check. New machines put GitHub under Prompt before write: reads pass, and every git push and REST write pauses for a dialog showing the exact call and repository.

The updatea kit, plugin, skill oragent config changesone line:attacker.exampleand asks to beallowed outUbuntu VMANTHROPIC_API_KEY=sk-ant-api03-brm-…GH_TOKEN=ghp_…(stand-in)no file here says where real keys gono file here can open egressrequest to attacker.example carriesthe stand-in, unchangedYour Mactoken plan: real key · stand-in · hosthosts set in the machine's settingsnetwork policy on the switchAsk before use grants in memorystand-in tripwire on every requestSecurity Timeline with lineageWhat the update tries, and what the Mac decidessk-ant-api03-brm-… sent to attacker.example → HTTP 451, VM paused, alert names the credential and both hostsa file in the VM adds its host to the allowlist → no effect, policy lives in Settings on the Macan approval from last week → gone, grants end when the VM shuts downevery legitimate swap → a Credential brokering row with its destination host
The same kit update on a Bromure machine. Each credential's destination is set on the Mac, so a changed file in the VM has nothing to redirect. The request to the attacker's host carries only a stand-in, the proxy blocks it with HTTP 451, and the VM pauses.

Destinations live on the Mac

Each key's host comes from the credential type or the host you entered. No file in the VM decides where a real key goes, so an update has nothing to redirect.

Stand-ins are tripwires

A stand-in headed outside its scope gets an HTTP 451. The VM pauses and the alert names the credential and both hosts.

Egress is yours

Network rules are enforced on the Mac and edited in Settings. An agent's proposal comes to you, and only if you turned proposals on.

Approvals don't linger

Ask before use grants live in memory and end with the VM. Every swap and every block is a row in the Security Timeline.

We covered the same pattern from another angle in May, when the sandbox held the key in a plaintext file inside it. Docker Sandboxes keeps the key out of the VM. CVE-2026-136998 adds a second requirement: keep the list of destinations out of the attacker's hands too.

What to do this week

  • Update Docker Sandboxes to 0.55.0 or later.
  • Open ~/.config/sbx/credentials.yaml (%APPDATA%\sbx\credentials.yaml on Windows) and remove bindings you granted to third-party kits.
  • If a third-party kit you approved has changed since, rotate the provider keys it could reach, GitHub tokens first.
  • Pin kits to a fixed commit or keep a reviewed local copy, and read the inject domains and permissions.network.allow on every sbx create, not only the first.
  • Scope keys per sandbox with sbx secret set --sandbox.
  • For any tool that adds credentials on your behalf, ask two questions: where does the list of destinations come from, and who can change it?

The manual covers the token plan, host scoping and the compromise alert in Credentials & the Wire Boundary, the network policy in Sandbox Policy, Ask before use and write policies in Guardrails, and the Credential brokering rows in the Security Timeline.

Related articles

The goal was a Bedrock key

On December 2, Perplexity described an autonomous attacker that spent two weeks probing its systems for AWS keys able to call frontier models on Amazon Bedrock. The operator wrote one goal; coding agents in a Kali container turned it into hundreds of tasks that mined git history, Gists, npm and PyPI releases, container layers and JavaScript bundles, and tested every complete key they found. Perplexity held. Two other companies didn't. In Bromure Agentic Coding, every key an agent can write into those places is a stand-in that fails the attacker's check.

Agentic CodingNews & Analysis

The improved skill had a DLL

On November 26, AIR Research published TrojanPony: fake "improved" copies of popular Claude Code skills that work like the originals and launch a signed Notepad++ updater, which side-loads a trojan. The kit sits in 487 public GitHub repositories, passed three scanner audits on skills.sh, and spread into 20 real repositories through one stolen GitHub token. In Bromure Agentic Coding, a skill installs into a Linux VM that holds only stand-in tokens, connections nobody allowed don't leave the Mac, and every push waits for you.

Agentic CodingNews & Analysis

Stay inside and tell someone

Anthropic's Siren evaluation gives Claude models routine tasks in about 1,700 weakened sandboxes, with a credential or file left outside. The current Claude models reached outside in 21% to 32% of scenarios. Anthropic's fix list has four parts: harden the sandbox, tell the model the rules, give it a way to report what it found, and add a monitor. Bromure Agentic Coding ships each of those for the agent on your Mac, and the key outside the wall is a stand-in.

Agentic CodingNews & Analysis