Docker Sandboxes runs AI coding agents inside isolated VMs, and the whole point is that your raw API keys never go inside. You store a key on the host with sbx secret set, the agent sends a placeholder, and a host proxy swaps in the real key on the way out. Endor Labs researcher Peyton Kennedy found a hole in that, The Hacker News reports.
Which destinations get the real key is set by the “kit,” a packaged agent config pulled from a registry, Git ref or local folder. Since 0.43.0 (Sept. 15), approving a kit’s credential request records the service and the domains you agreed to, but that domain list was never checked. Only the service name was. So a kit you approved for api.anthropic.com could be updated at the same reference to point somewhere else, and the next sandbox would ship your real key there in cleartext, with no prompt and nothing in the policy log. Thirteen built-in integrations share that path, including Anthropic, OpenAI, GitHub and Google. Tracked as CVE-2026-136998; no attacks reported. The VM boundary itself held.
Docker fixed it in 0.55.0, which now enforces approved destinations.
What to do
- Upgrade to Docker Sandboxes 0.55.0.
- Review
~/.config/sbx/credentials.yaml(or%APPDATA%\sbx\credentials.yaml) and remove bindings granted to third-party kits. - Pin kits to a fixed commit or keep a reviewed local copy.
- Rotate provider keys behind any third-party kit that changed after you approved it.
Lesson for all of us running agents: an approval is only as good as what it’s tied to. If it isn’t tied to the exact version you reviewed, the next update inherits it.
God Bless, and Use the Source!