
Executive Summary
A significant security flaw has been identified in Docker Sandboxes, a tool designed to run AI coding agents in isolated environments. This vulnerability could potentially expose developers' API keys to attackers distributing malicious updates to third-party agent kits. The flaw, tracked as CVE-2026-136998, allows an attacker to manipulate the update process, leading to unauthorized access to sensitive credentials.
Executive Context
Docker Sandboxes are intended to provide a secure environment for AI coding agents, ensuring that sensitive information such as API keys remains protected. However, the recent discovery by Endor Labs highlights a critical oversight in the credential approval process. When developers approve a kit, Docker records which domains may receive the key. Unfortunately, subsequent updates to these kits may change the destination to an attacker-controlled server without alerting the developer.
Adversary Goals and Capabilities
The primary goal of an attacker exploiting this vulnerability is to gain unauthorized access to API keys from developers. By distributing malicious updates to third-party agent kits, attackers can redirect API keys to their own servers. This could lead to various malicious activities, including:
- Unauthorized access to developer accounts.
- Incurred charges on the victim's account due to misuse of AI provider keys.
- Access to sensitive repositories via compromised GitHub tokens.
With the ability to manipulate the update process, attackers can effectively bypass the security measures intended to protect these credentials.
Observable Indicators and Telemetry
Detecting this vulnerability in action may be challenging, as the policy log in Docker Sandboxes may not reveal the injection of credentials. The logs may show that a connection was allowed, but they will not indicate that a developer's API key was sent along with the request. Key indicators to monitor include:
- Unusual outbound connections from Docker Sandboxes to unknown domains.
- Changes in configuration settings or destination addresses of approved kits.
- Unexplained charges or access logs in developer accounts.
Organizations should implement logging and monitoring solutions to capture these indicators and enhance their incident response capabilities.
Incident Response Priorities
In light of this vulnerability, organizations using Docker Sandboxes should prioritize the following actions:
- Upgrade: Immediately upgrade to Docker Sandboxes version 0.55.0, which addresses this vulnerability.
- Review Approvals: Conduct a thorough review of all credential approvals granted to third-party kits.
- Rotate Keys: If there are any suspicious changes in configuration or destination addresses, rotate the potentially exposed API keys as a precautionary measure.
- Monitor Logs: Enhance monitoring of logs for any unusual activity or unauthorized access attempts.
By taking these steps, organizations can mitigate the risks associated with this vulnerability.
Strategic Impact for Leadership
This vulnerability poses a significant risk to organizations leveraging AI technologies. The potential for unauthorized access to sensitive API keys can lead to financial losses, reputational damage, and regulatory scrutiny. Leadership must understand the implications of this flaw and ensure that appropriate measures are in place to protect their development environments.
“The second ‘sbx create’ shows no prompt. Operators reviewing logs afterwards see an ordinary permitted request.” - Endor Labs
By fostering a culture of security awareness and proactive incident response, organizations can better safeguard their assets against emerging threats.
Sources
What Happened
A recent vulnerability in Docker Sandboxes could allow attackers to steal API keys from developers through malicious updates to third-party agent kits.
Endor Labs highlights a critical oversight in the credential approval process. When developers approve a kit, Docker records which domains may receive the key. Unfortunately, subsequent updates to these kits may change the destination to an attacker-controlled server without alerting the developer. Adversary Goals and Capabilities The primary goal of an attacker exploiting this vulnerability is to gain unauthorized access to API keys from developers. By distributing malicious updates to third-party agent kits, attackers can redirect API keys to their own servers. This could lead to various malicious activities, including:
This report consolidates available public details and highlights where evidence is still limited, helping teams prioritize immediate defensive action while additional technical indicators are collected.
Technical Root Cause
Unauthorized access to developer accounts. Incurred charges on the victim's account due to misuse of AI provider keys. Access to sensitive repositories via compromised GitHub tokens. With the ability to manipulate the update process, attackers can effectively bypass the security measures intended to protect these credentials. Observable Indicators and Telemetry Detecting this vulnerability in action may be challenging, as the policy log in Docker Sandboxes may not reveal the injection of credentials. The logs may show that a connection was allowed, but they will not indicate that a developer's API
key was sent along with the request. Key indicators to monitor include: Unusual outbound connections from Docker Sandboxes to unknown domains. Changes in configuration settings or destination addresses of approved kits. Unexplained charges or access logs in developer accounts. Organizations should implement logging and monitoring solutions to capture these indicators and enhance their incident response capabilities. Incident Response Priorities In light of this vulnerability, organizations using Docker Sandboxes should prioritize the following actions: Upgrade: Immediately upgrade to Docker Sandboxes version 0.55.0, which addresses this vulnerability. Review Approvals: Conduct a thorough
Based on observed patterns in recent campaigns, the likely attacker objective is to establish durable access, exploit trust relationships, and later pivot toward higher-value systems. Where specific attribution or tooling data is absent, these details are not publicly disclosed and should be treated as unknown.
Exposure and Affected Environments
review of all credential approvals granted to third-party kits. Rotate Keys: If there are any suspicious changes in configuration or destination addresses, rotate the potentially exposed API keys as a precautionary measure. Monitor Logs: Enhance monitoring of logs for any unusual activity or unauthorized access attempts. By taking these steps, organizations can mitigate the risks associated with this vulnerability. Strategic Impact for Leadership This vulnerability poses a significant risk to organizations leveraging AI technologies. The potential for unauthorized access to sensitive API keys can lead to financial losses, reputational damage,
and regulatory scrutiny. Leadership must understand the implications of this flaw and ensure that appropriate measures are in place to protect their development environments. “The second ‘sbx create’ shows no prompt. Operators reviewing logs afterwards see an ordinary permitted request.” - Endor Labs By fostering a culture of security awareness and proactive incident response, organizations can better safeguard their assets against emerging threats. Sources Bleeping Computer The Hacker News A vulnerability in Docker Sandboxes, a tool for running AI coding agents in isolated environments, could leak developers' API keys to
an attacker distributing malicious updates to third-party agent kits. [...] will send the real API key without prompting the developer. Furthermore, the policy log would show that the connection was allowed without revealing that Docker sent the developer’s API key along with the request. “The second ‘sbx create’ shows no prompt. ‘sbx policy log’ records the connection to the canary host as allowed and says nothing about a credential being injected into it,” application security company Endor Labs explains . “An operator reviewing logs afterwards sees an ordinary permitted request.”
Security engineering teams should validate exploitability across environments, map exposure by asset criticality, and confirm whether available telemetry can detect pre-compromise reconnaissance, exploitation attempts, and post-exploitation behavior.
Patch and Mitigation Playbook
The flaw, tracked as CVE-2026-136998, was discovered by Endor Labs’ This report consolidates available public details and highlights where evidence is still limited, helping teams prioritize immediate defensive action while additional technical indicators are collected. researcher Payton Kennedy, who demonstrated it using a dummy Anthropic key. The researcher reported the finding to Docker, and the project pushed a fix in version 0.55.0 , released on November 30. The latest Docker Sandbox release ensures that kit credential injection respects the destinations approved separately for API keys and OAuth in credential bindings,
Organizations with internet-facing systems, third-party integrations, or delayed patch cycles generally carry elevated risk. Internal segmentation gaps can increase blast radius if an attacker obtains initial foothold credentials.
Detection and Monitoring Priorities
- Correlate authentication anomalies with unusual process execution and outbound traffic spikes.
- Alert on privilege escalation events, lateral movement indicators, and unauthorized persistence changes.
- Prioritize monitoring of externally exposed services and high-value identity providers.
- Track integrity changes in scripts, scheduled tasks, startup items, and critical configuration files.
- Hunt for command-and-control beaconing patterns and suspicious use of remote administration tools.
Detection coverage should be validated through tabletop simulation or controlled testing to ensure response teams receive actionable, high-confidence alerts quickly.
Mitigation Checklist
- Patch affected services and validate version levels across all environments.
- Restrict exposed management and service ports to trusted networks only.
- Enable detailed logging and alerting for suspicious process or network activity.
- Harden endpoint controls and isolate high-risk systems until remediation completes.
- Conduct post-remediation validation and document residual risk.
Mitigations should be sequenced by risk: immediately reduce exposed attack surface, then remove persistence opportunities, and finally harden architecture to prevent recurrence.
Incident Response and Recovery Planning
- Establish a clear incident commander and communication cadence across security, IT, and leadership.
- Capture and preserve relevant logs and forensic artifacts before major containment changes.
- Contain compromised accounts and hosts, then execute structured eradication with validation checkpoints.
- Document lessons learned and implement control improvements with owner accountability and timelines.
Recovery should include business continuity planning, legal or regulatory assessment where required, and transparent stakeholder updates based on verified facts.
Security Program Lessons Learned
and treats bindings with no approved destinations as missing. According to Kennedy, CVE-2026-136998 impacts 13 built-in services that share the vulnerable credential-handling code, including Anthropic, Copilot, Cursor, Devin, Droid, GitHub, Google, Groq, Mistral, Nebius, OpenAI, OpenRouter, and xAI. A stolen AI provider key could incur charges to the victim’s account, while a GitHub token could grant access to repositories if this is within its scope. The researcher noted that the faulty code was introduced in Docker Sandboxes version 0.43.0. Users are recommended to upgrade to Docker Sandboxes 0.55.0 and review
any credential approvals they previously granted to third-party kits. If there have been any suspicious configuration and destination changes on that kit, it would be prudent to rotate the potentially exposed key out of an Based on observed patterns in recent campaigns, the likely attacker objective is to establish durable access, exploit trust relationships, and later pivot toward higher-value systems. Where specific attribution or tooling data is absent, these details are not publicly disclosed and should be treated as unknown. abundance of caution. On December 15th, join Eoin Hinchy, our
Security leaders should align technical remediation with stakeholder communication, incident readiness, and continuous monitoring to reduce repeat exposure.