Docker Sandboxes Flaw Lets Malicious AI Agent Kit Updates Steal Developers' API Keys
About 3 min read
securityaisoftwarenetworking
A vulnerability in Docker Sandboxes allowed a malicious AI‑coding agent kit to steal developers’ API keys, and Docker patched the flaw in version 0.55.0 released yesterday.
The defect affected every Docker Sandboxes release prior to 0.55.0 on macOS, Windows and Linux. It stemmed from the consent system introduced in version 0.43.0 on September 15, 2026. When a developer approved a third‑party kit to use a service such as Anthropic, OpenAI, GitHub or Google, Docker recorded a binding that listed the approved service and the domains the developer consented to. The binding was never consulted when the sandbox later sent a request. Instead, the proxy simply checked that a binding existed for the service name and then forwarded the real API key to whatever domain the current kit version specified. Consequently, a kit that was initially approved for api.anthropic.com could be updated to point to an attacker‑controlled server, and the sandbox would inject the real key without prompting the developer again.
Researcher Peyton Kennedy of Endor Labs demonstrated the issue, tracked as CVE‑2026‑136998, using a dummy Anthropic key and a test server on his own machine. After a single developer approval, a later kit update sent the real key to the attacker’s server in cleartext, with no additional prompt. The approval persisted even after the sandbox was deleted, and the policy log only recorded the connection as allowed, offering no warning that a key had been injected. Kennedy also showed that a malicious kit could add its own server to the sandbox’s network allowlist without triggering a prompt.
Thirteen built‑in integrations share the vulnerable key‑injection path, including Anthropic, OpenAI, GitHub and Google. In the test, the dummy Anthropic key was replaced by the real key when the kit’s destination was altered. Because secrets stored with the sbx secret setting are global by default, a stolen GitHub token could grant the attacker write access to all of the developer’s repositories, depending on the token’s scopes.
The attack does not require the adversary to compromise the developer’s machine. The attacker only needs the one‑time approval granted by the developer and a single line change in the next version of the kit. The vulnerability is therefore classified as high severity. Kennedy initially scored it 9.3 Critical under CVSS 3.1, later adjusting the vector to “local” and assigning an 8.2 High rating. Under CVSS 4.0 the vendor’s score is 5.6 Medium, while Kennedy’s is 6.9 Medium, reflecting differing views on whether harm to the provider account should affect the base score.
Docker’s fix in version 0.55.0 enforces that key injection respects the destinations approved for each API key and for OAuth separately. The release notes state that a binding with no approved destinations is now treated as missing, preventing the proxy from sending keys to unapproved domains. The vendor’s notes do not mention Kennedy’s additional recommendations to tie approvals to a kit’s content digest or to log every key injection in the policy log.
Developers who have been running Docker Sandboxes on versions earlier than 0.55.0 should upgrade immediately. Those who granted credentials to third‑party kits while the product was vulnerable are advised to revoke and re‑issue any affected API keys, especially GitHub tokens, and to review the policy logs for unexpected connections. Kennedy also suggested a short remediation checklist, though the exact steps were not detailed in the source material.
This is the second security issue Kennedy reported in Docker Sandboxes within a month. The earlier flaw, disclosed on September 21, allowed an agent to copy files from the host outside its approved directories and was patched on November 3. In both cases, the virtual‑machine boundary itself held; the failures occurred in how Docker bound developer approvals to the artifacts being inspected. Kennedy summed up the lesson: a prompt is only as strong as the binding it protects, and if the approval is not tied to the specific kit version, any subsequent update inherits the same privileges.
Over the weekend a research paper that was drafted with the help of Anthropic AI models was finally released. The paper ended a wave of alarm that had spread through the security community. …
Google announced today that it will push two separate Android updates before the close of the year. One of the updates is restricted to devices running Android 17, while the other will be di…
GameMaker, the development platform best known for powering Undertale and a host of other indie successes, has released a new set of contribution guidelines that place strict limits on the u…