Agent chaosVerified·1 Dec 2026
Docker's sandbox for AI coding agents could be tricked into sending your real AI and GitHub keys to an attacker after just one approval
A security researcher found that Docker Sandboxes, built to keep developers' keys away from the AI coding agents it runs, remembered an approval by service name only. A third-party agent kit could be approved once, then push an update that sent the real key to an attacker, with no prompt. Docker fixed it on 30 November.
What Docker Sandboxes promises
Docker Sandboxes runs AI coding agents inside a walled-off box. It promises that your keys for services like Anthropic, OpenAI and GitHub never go inside that box. Instead, the sandbox adds the key to the agent's requests on the way out, to places you have approved.
What went wrong
A researcher at a security firm found that the approval was remembered by the name of the service, not by the agent kit you had actually looked at. A kit is a packaged agent setup that you fetch by name, a bit like a software package.
So a third-party kit could ask honestly once and get approved. A later update could change one line of its settings and send your real key to a server the attacker controls. No prompt, no warning, and no record in the logs that a key was sent.
Keys are saved for the whole computer by default, so the redirected key is the same one every sandbox on the machine uses. For an AI provider that means usage billed to you. For GitHub, a key can allow changes to your code.
The fix
The researcher reported it to Docker on 21 September. It affected version 0.43.0, the release that added the approval prompt, and was fixed in version 0.55.0, released on 30 November. Docker's release notes say key injection for kits now respects the destinations approved for each key. The researcher tested it with a dummy Anthropic key; the other twelve built-in services use the same code but were not tested one by one.
Our take
A yes should cover exactly what you checked. If an agent add-on changes, it should have to ask again. Update to 0.55.0, look again at the kits you approved, limit keys to one sandbox where you can, and swap any key you approved for a kit that later changed.
A one-time yes should cover one exact version. If an agent add-on changes, make it ask again.

