Today's cybersecurity headlines are brought to you by ThreatPerspective


Ethical Hacking News

A Severe Flaw in Docker Sandboxes Allows Malicious AI Agents to Steal API Keys




A severe flaw in Docker Sandboxes has been discovered, allowing malicious AI agents to steal API keys. This finding highlights the complexities and vulnerabilities inherent in the latest technological advancements, underscoring the importance of vigilance and proactive measures to mitigate such threats. The impact of this flaw cannot be overstated, as it highlights the potential for malicious agents to compromise the security of developers' applications.

  • A recent discovery in Docker Sandboxes has revealed a severe flaw that enables malicious AI agents to steal API keys, compromising the security and integrity of developers' applications.
  • The flaw affects every version before 0.55.0 on macOS, Windows, and Linux, with 13 built-in integrations sharing the key-injection path.
  • The severity of the flaw has been reduced slightly, but its impact remains significant, highlighting the potential for malicious agents to steal API keys and compromise application security.
  • The damage follows the key, with secrets stored with sbx secret set being global by default, allowing stolen GitHub tokens to grant write access to repositories.
  • To mitigate the flaw, researchers recommend reviewing approvals files, removing binding granted to third-party kits, and pinning kits to fixed commits.



  • The cybersecurity landscape has recently been marred by a significant revelation, one that highlights the complexities and vulnerabilities inherent in the latest technological advancements. A recent discovery, attributed to Docker Sandboxes, has revealed a severe flaw that enables malicious AI agents to steal API keys, thus compromising the security and integrity of developers' applications. This finding has significant implications for the broader cybersecurity community, underscoring the importance of vigilance and proactive measures to mitigate such threats.

    In a detailed analysis, an Endor Labs researcher, Peyton Kennedy, discovered that a flaw in Docker Sandboxes, which runs AI coding agents inside isolated virtual machines, could be exploited by malicious third-party agents to steal API keys. The Docker Sandboxes are designed to provide a secure environment for developers to work on AI projects, with the product's promise being that raw keys never enter the sandbox. However, this promise was found to be breached by the malicious agents, which could send the real Anthropic, OpenAI, or GitHub key to a server controlled by the attacker, with no new prompt.

    The researcher demonstrated the flaw, tracked as CVE-2026-136998, with a dummy key and a test server on his own machine. No attacks using it have been reported so far. However, the discovery of this flaw has significant implications, as it highlights the potential for malicious agents to compromise the security of developers' applications. The researcher noted that this flaw affects every version before 0.55.0 on macOS, Windows, and Linux, with thirteen built-in integrations sharing the key-injection path, including Anthropic, OpenAI, GitHub, and Google.

    The researcher rates the flaw 8.2, High, under CVSS 3.1, after first scoring it 9.3 Critical and correcting the attack vector to local. The malicious kit is a file the developer fetches, not a service an attacker reaches over the network. However, the severity of this flaw has been reduced slightly in the latest version of the CVSS, with the revised score being 6.9 and the vendor's score being 5.6, both Medium. Despite the slight reduction in severity, the impact of this flaw cannot be overstated, as it highlights the potential for malicious agents to steal API keys and compromise the security of developers' applications.

    The researcher also noted that the damage follows the key, with secrets stored with sbx secret set being global by default. A stolen GitHub token grants whatever its scopes allow, which for a typical developer token includes write access to their repositories. The researcher also emphasized that the attacker never needs access to the developer's computer, only a one-time approval and a single changed line in the kit's next version. Other checks held in the researcher's testing include a kit cannot impersonate a built-in agent, and the consent prompt still defaults to decline.

    To mitigate this flaw, the researcher recommends a short set of steps for machines still on older versions, and for anyone who granted credentials to third-party kits while vulnerable. These steps include reviewing the approvals file, ~/.config/sbx/credentials.yaml or %APPDATA%\sbx\credentials.yaml on Windows, and removing any binding granted to a third-party kit. The researcher also recommends reading a kit's inject domains and its permissions.network.allow entries on every sbx create, not only the first. Where the kit source allows it, pin kits to a fixed commit, or keep a reviewed copy in a local folder. Store keys per sandbox with the --sandbox flag instead of globally. Rotate the provider keys behind any approved third-party kit that later changed.

    The researcher also asked Docker to tie approvals to a kit's content digest and to record every key injection in the policy log. However, the vendor's published notes confirm the destination enforcement and do not mention these two changes. The bug is the researcher's second in the product within a month, and both were reported to the vendor on September 21. The earlier one, a file-copy flaw that allowed an agent to access host files outside its approved folders, was fixed on November 3.

    In conclusion, the discovery of this flaw in Docker Sandboxes highlights the complexities and vulnerabilities inherent in the latest technological advancements. It underscores the importance of vigilance and proactive measures to mitigate such threats. As the cybersecurity landscape continues to evolve, it is crucial that developers and organizations remain vigilant and take proactive steps to protect their applications and data.



    Related Information:
  • https://www.ethicalhackingnews.com/articles/A-Severe-Flaw-in-Docker-Sandboxes-Allows-Malicious-AI-Agents-to-Steal-API-Keys-ehn.shtml

  • https://thehackernews.com/2026/12/docker-sandboxes-flaw-lets-malicious-ai.html


  • Published: Tue Dec 1 12:14:26 2026 by llama3.2 3B Q4_K_M













    © Ethical Hacking News . All rights reserved.

    Privacy | Terms of Use | Contact Us