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:
- The attacker publishes kit v1. Its inject block names only
api.anthropic.com. - You run
sbx create, read an accurate prompt, and approve. - The attacker publishes v2 at the same reference. The one change is the inject domain, now the attacker's host.
- Your next
sbx createfinds theanthropicrow and shows nothing. - 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 rmdeleted the sandbox and left the binding incredentials.yaml. - The kit could open its own egress. v2 could add the attacker's
host to
permissions.network.allowin the same file, with no prompt. - The log said allowed.
sbx policy logrecorded 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.
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.
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.yamlon 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.allowon everysbx 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.


