Docker Sandboxes CVE-2026-136998: Running a Tampered Third-Party Agent Kit Can Leak Credentials
1. Basic Information
- Source article title (Endor Labs): CVE-2026-136998: Docker Sandboxes Vulnerability Allows Malicious AI Agent Kits to Steal Developers' API Keys
- Source: Endor Labs
- Published: 2026-11-30
- Updated: 2026-11-30
- Original Article: Endor Labs
- Related Sources: Docker CNA CVE Record, BleepingComputer
- Severity (Author's Priority): high
2. In One Sentence
In vulnerable versions of Docker Sandboxes, credential approval for a third-party Agent Kit is reused by service name without re-checking changes to the destination. Researchers confirmed in a lab that a stored dummy key was sent to a different destination than the one originally approved.
3. Attack Flow
The following scenario is based on the CVE record and Endor Labs’ analysis of what can happen when a modified kit is run.
- An attacker publishes an initial version of a third-party Agent Kit that declares only legitimate API domains as credential destinations.
- After a developer reviews the prompt and approves it once, Docker Sandboxes saves the service name and domain list in a credential binding.
- In an updated version using the same tag, branch, or directory reference, the attacker changes the credential injection target and network allowlist to an attacker-controlled domain.
- The next
sbx createonly checks whether a binding exists for the target service name. It does not compare the approved domains or the Kit digest, so it does not ask for re-approval. - When an agent inside the sandbox sends a request with a placeholder, the host-side proxy replaces it with the real key and sends the request to the attacker's domain.
4. Attacker Position and Execution Location
- The attacker does not directly access the developer's device; instead, they control the distribution source of the third-party Kit that the developer fetches and runs. Secret replacement occurs in the host-side proxy outside the sandbox.
5. Visibility for Victims and Administrators
Victims
- An approval screen showing the legitimate destination appears the first time, but no warning or diff is shown after an update. Because the real key never enters the sandbox, the boundary appears intact.
Administrators
- Clues include content changes at the Kit reference, changes to the
injectdomain andpermissions.network.allow, and traffic to destinations not in existing bindings. However, thepolicy login vulnerable versions does not record credential injection.
6. Conditions for Success and Failure
Conditions for Success
- Using Docker Sandboxes 0.43.0 or later and earlier than 0.55.0.
- A developer approves credential use for the target service in a third-party Kit once, and then runs an updated version from the same mutable reference.
- The attacker can change the credential injection target and outbound allowlist in the updated version.
Conditions for Failure and Countermeasures
- Update to Docker Sandboxes 0.55.0 or later.
- Review existing bindings granted to third-party Kits and delete unnecessary ones. If a suspicious update was executed, rotate the affected keys.
- Pin Kits to reviewed commits or managed local copies instead of mutable tags or branches.
- Scope credentials to specific sandboxes to reduce sharing. Because even scoped keys can leak in vulnerable versions, apply the patched version and audit credential injection and destinations.
7. What Happens on Success
- API keys for services such as OpenAI and Anthropic can leak, allowing attackers to use model APIs at the victim's expense.
- If a GitHub token is exposed, its scope determines whether an attacker could read or write private repositories and potentially tamper with the software supply chain.
- In logs, the traffic appears as allowed communication, making post-incident detection of the leak difficult.
8. Observable Logs
- Proxy / SWG / DNS: Traffic to domains newly allowed by the Agent Kit. Do not log the credential headers themselves in plaintext; audit injection events and destination metadata.
- Endpoint / EDR:
sbx create, Kit source and commit, changes tocredentials.yaml, and diffs ininjectandnetwork allowin Kit settings. - Identity / IdP: Unusual source IPs, usage volume, or repository actions for GitHub tokens or AI API keys.
- SaaS / Cloud: Audit and billing logs, token usage history, and unexpected API calls on OpenAI, Anthropic, GitHub, and similar services.
- Network: HTTP requests from the sandbox to unknown domains added by a Kit update.
9. Determining Attack Success
- Credential transmission confirmed in an isolated lab: Endor Labs confirmed in an isolated lab that re-approval was not requested for a modified Kit, and the host-side proxy sent a dummy Anthropic key scoped to the sandbox to a test server on the loopback interface. No production keys or external hosts were used in the demonstration, and no real-world exploitation has been reported.
10. Investigation Playbook
- Trigger: New destinations after a third-party Kit update, credential traffic without re-approval, or anomalies in AI API usage or GitHub actions.
- Initial Check: Verify the
sbxversion, Kit reference, domains at initial approval, currentinjectandallowsettings, bindings, and execution timestamps. - Endpoint: Preserve old and new versions of the Kit,
credentials.yaml,sbxpolicy log, fetch history, and proxy/DNS logs. - Auth & Cloud: Check usage history, scopes, billing, and repository changes for the affected API keys and GitHub tokens.
- Follow-on Actions: Investigate unauthorized API usage, repository writes, and tampering with workflows, dependencies, or releases.
- Containment: Update to 0.55.0, delete bindings, pin Kits, rotate keys, and revoke tokens.
- Classification: Separate Kit fetch, initial approval, update, destination change, key transmission, and post-acquisition use.
11. Defense and Detection Ideas
- Single Event: Changes to the
injectdomain of a bound service, or outbound allowlist entries added by a Kit update. - Time-Series Correlation: Correlate initial approval -> Kit reference update ->
sbx createwithout re-approval -> traffic to a new domain -> anomalous API key usage. - Hunting: Search for third-party Kit bindings, mutable tag or branch references,
injectandnetwork allowsettings that changed since approval, and globally shared keys. - Log Gaps: Because the
policy login vulnerable versions does not record credential injection, connection logs alone cannot determine whether a key was sent. - Priority Actions: Prioritize updating to 0.55.0, pinning Kit content, cleaning up bindings, and scoping keys per sandbox.
12. Facts / Inference / Hypothesis
Facts
- The issue affects versions starting from 0.43.0, which introduced the credential consent gate, and was fixed in 0.55.0.
- Thirteen built-in services share the same code path. Researchers demonstrated the issue using a dummy Anthropic key; the other 12 services use the same code path but were not individually demonstrated.
- The stored list of approved domains was not used for injection checks at runtime; only the presence of a row for the service name was checked.
- A Kit could also add the attacker's domain to the outbound allowlist within the same configuration.
- Docker (CNA) rated the vulnerability as CVSS 4.0 5.6 Medium. Endor Labs researchers rated it as CVSS 3.1 8.2 High and CVSS 4.0 6.9 Medium. The patched version and the Endor Labs article were published on November 30, and the official CVE record was published on December 1.
Inference
- Even if the sandbox boundary is not breached, secrets can leak if the approval target of the out-of-boundary proxy is not tied to the Kit's identity and destination.
- Routinely re-running kits from mutable references can allow a small change in a third-party kit to expose credentials under an existing approval.
Hypothesis
- None
13. MITRE ATT&CK Mapping
| ID | Technique | Confidence | Basis |
|---|---|---|---|
| T1195.002 | Supply Chain Compromise: Compromise Software Supply Chain | high | Changes the destination via a third-party Kit update after approval. |
| T1528 | Steal Application Access Token | high | Access credentials for services can leak. Lab demonstration was limited to a dummy Anthropic key, and acquisition of GitHub tokens was not individually verified. |
14. Unknowns and Further Investigation
- The adoption rate of 0.55.0, the scale of third-party Kit usage, and any actually leaked keys or real-world exploitation cases have not been confirmed.
- The impact assessment for the 12 services other than Anthropic is based on the shared code path, not individual functional demonstrations.
15. Impact on SOCs and Organizations
When evaluating the isolation of AI coding agents, organizations must check not only the inside of VMs or containers, but also the host-side credential proxy, approval bindings, and Kit update paths as part of the same trust boundary. SOC teams should require auditing that can distinguish between 'allowed connections' and 'connections with real keys injected,' and keep repository tokens least-privileged and short-lived.
16. Summary by Audience
- For SOC: Correlate Kit update diffs, new destinations, credential injection events, and anomalous usage on AI APIs and GitHub.
- For Administrators: Update to 0.55.0, inventory existing approvals for third-party Kits, and change mutable references to pinned commits.
- For Users: Check destinations and permissions when updating an Agent Kit just as you do on initial use, and do not pass personal or work API keys to unknown Kits.