December 2, 2026

Critical Security Flaw in Docker Sandboxes Exposed API Keys to Third-Party Agent Kits

Despite the fix, Kennedy suggested further enhancements to the product’s security architecture. He recommended that Docker tie user approvals to a specific content digest of the kit, ensuring that any modification to the kit would invalidate the previous approval and force a new prompt. He also urged the vendor to ensure that every instance of key injection is explicitly recorded in the policy logs to provide better auditability. While the latest release addresses the core destination enforcement issue, it did not explicitly implement these additional suggestions.

This discovery marks the second significant vulnerability Kennedy has identified in Docker Sandboxes within a single month. Both issues were reported to Docker on September 21. The first vulnerability involved a file-copy flaw that could allow an AI agent to bypass directory restrictions and access files on the host machine that it was not authorized to see. That issue was patched in early November.

Reflecting on the nature of these vulnerabilities, Kennedy noted that in both instances, the primary virtual machine boundary remained intact. The failures occurred not in the isolation technology itself, but in the management and authorization layers that connect the host to the guest environment. "A prompt is only as strong as what its answer is bound to," Kennedy wrote in his analysis. "If the approval is not tied to the artifact that was inspected, the next update inherits it."

Docker Sandboxes Flaw Lets Malicious AI Agent Kit Updates Steal Developers' API Keys

For developers and organizations currently using Docker Sandboxes, the primary recommendation is an immediate upgrade to version 0.55.0 or later. For those who may have granted credentials to third-party kits while running vulnerable versions, a thorough audit of active secrets and a rotation of any potentially exposed API keys is highly advised.

The incident serves as a critical reminder of the complexities involved in securing AI-automated workflows. As developers increasingly rely on third-party "kits" and agents to handle sensitive coding tasks, the systems designed to protect them must ensure that user consent is not just a one-time gate, but a continuous and verifiable contract between the user and the software. As the ecosystem for AI development tools continues to expand, the scrutiny of these isolation boundaries will remain a vital component of maintaining a secure software supply chain.