# CVE-2026-136998: Docker Sandboxes Credential Binding Flaw Lets Malicious AI Agent Kits Steal Developers' API Keys

> Endor Labs disclosed an incorrect-authorization flaw (CWE-863) in Docker Sandboxes (sbx CLI and sandboxd) introduced in v0.43.0. The credential consent binding is keyed only by service name, so a third-party kit updated after approval can redirect the host proxy's real-API-key injection to an attacker-controlled domain without a new prompt. Fixed in v0.55.0.

- **Author:** Threadlinqs Team
- **Published:** 2026-11-30T21:58:35Z
- **Last updated:** 2026-11-30T21:58:35Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-7119
- **Card image:** https://intel.threadlinqs.com/og/threat/TL-2026-7119.png
- **ID:** TL-2026-7119
- **Severity:** HIGH (CVSS 8.2)
- **Category:** VULNERABILITY
- **Status:** PATCHED
- **Detections:** 9 (1 shown free below) · **IOCs:** 8 (2 shown free below)
- **CVEs:** CVE-2026-136998, CVE-2026-103916

## Description

Docker Sandboxes keeps provider API keys on the host. Set with `sbx secret set`, they never enter the microVM. The sandboxed agent sends a placeholder header (for example `x-api-key: proxy-managed`), and a host-side proxy swaps in the real key for approved destinations. A kit's inject block names, per service, the domains where the proxy substitutes the credential. Third-party kits are fetched by tag, branch or directory and can declare credentials for built-in services.

v0.43.0 added a consent gate. On a TTY, `sbx create` shows each credential a kit requests with its domains. Approval writes a binding to ~/.config/sbx/credentials.yaml (service -> apiKey -> domains). Endor Labs found two defects. First, the domains list is written but never read at request time. The runtime check is a boolean keyed on the service name, so if any row exists for that service the proxy injects the real key at whatever domains the current kit declares. Rewriting the recorded domains to example.invalid produced an identical leak. Second, the binding is not keyed by kit name, content digest or source, so approval for one version carries over to later versions from the same reference. The author demonstrated only the version-swap case, and notes it could potentially apply to other third-party kits declaring the same service. The binary contains an apparently unused function, sandboxlib/bindingconsent.MissingDomainsForService, whose name matches the missing check.

Attack flow (version swap): (1) the attacker publishes kit v1 whose inject block names only api.anthropic.com; (2) the operator approves the accurate prompt at `sbx create`, writing the binding; (3) the attacker republishes at the same tag, branch or directory with the inject domain changed to an attacker-controlled host. The kit's permissions.network.allow entries are applied without a prompt, so v2 can also add the attacker host to the egress allowlist; (4) the next `sbx create` finds a matching binding and shows no prompt or diff; (5) the host proxy substitutes the real key into requests to the attacker host. In the reproduction, the canary received the dummy key in cleartext over plain HTTP, and `sbx policy log` recorded the connection as allowed with no mention of credential injection.

Impact: for model providers, metered API access billed to the victim; for GitHub, the token's scopes, which for typical developer tokens may include repository write access. The microVM boundary and the 'raw keys never enter the VM' property remained intact; the failure is in where the host sends the key. All thirteen built-in services share the injection path (anthropic, copilot, cursor, devin, droid, github, google, groq, mistral, nebius, openai, openrouter, xai); only anthropic was tested, with a dummy value. Controls that held: mixin kits cannot add inject domains for built-in services, kits cannot impersonate built-in agents by name, `sbx kit add` refuses credential-declaring kits, non-interactive runs decline (no --yes flag), and consent defaults to decline.

CVSS 3.1 is 8.2 High (AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N). The author first scored it AV:N 9.3 Critical, then corrected to AV:L. CVSS 4.0 is 6.9 Medium. Confirmed on build 79805a6e3c6667520dc2da4f6bdeddae9b700969 (macOS 15.6 arm64). Versions before v0.43.0 are not affected by this defect. Fixed in v0.55.0 on 2026-11-30. The source does not report in-the-wild exploitation and no attacker infrastructure or IOCs are published; the IOC list below holds detection artifacts and test canary values from the reproduction only. This is a vendor-research disclosure with reproduction steps but no exploit code.

## MITRE ATT&CK

- T1195 Supply Chain Compromise
- T1195.001 Compromise Software Dependencies and Development Tools
- T1204 User Execution
- T1036 Masquerading
- T1685 Disable or Modify Tools
- T1550 Use Alternate Authentication Material
- T1528 Steal Application Access Token
- T1048.003 Exfiltration Over Unencrypted Non-C2 Protocol
- T1496 Resource Hijacking

## Free detection (Splunk SPL, Microsoft KQL, Sigma)

**CVE-2026-136998 Docker Sandboxes sbx create Repeated on Mutable Third-Party Kit Reference (Exploitation)** (`TL-2026-7119-SPL-001`)

Detects the precondition of the CVE-2026-136998 version-swap: sbx create run more than once against the same kit reference on the same host/user. In affected Docker Sandboxes builds (v0.43.0 to <v0.55.0) the credential consent binding is keyed only by service name, so once a third-party kit has been approved, later runs against the same tag, branch or directory get no prompt or diff even if the kit's inject domain or permissions.network.allow entries changed. Repeat creates against a mutable reference are the review queue for kits that could have been swapped. This does not prove exploitation: the kit content is not visible in process telemetry, so analysts must diff the kit source.

- **Languages:** Splunk SPL, Microsoft KQL, Sigma
- **ATT&CK:** T1195, T1195.001, T1204, T1036, T1562
- **Data sources:** sysmon, microsoft_defender_for_endpoint
- **Severity:** medium
- **Confidence:** medium

### Splunk SPL

```spl
index=endpoint sourcetype="XmlWinEventLog:Microsoft-Windows-Sysmon/Operational" earliest=-30d EventCode=1 (Image="*sbx.exe" OR Image="*/sbx") CommandLine="* create *" CommandLine="*kit*"
| rex field=CommandLine "(?i)kit[=\s]+(?<kit_ref>[A-Za-z0-9_./:@~-]+)"
| where isnotnull(kit_ref)
| eval local_ref=if(match(kit_ref,"^(\.|/|~)"),"yes","no")
| stats count AS creates min(_time) AS first_seen max(_time) AS last_seen values(CommandLine) AS cmdlines BY Computer User kit_ref local_ref
| where creates>=2
| eval first_seen=strftime(first_seen,"%F %T"), last_seen=strftime(last_seen,"%F %T")
| sort - creates
```

### Microsoft KQL

```kql
DeviceProcessEvents
| where Timestamp > ago(30d)
| where FileName in~ ("sbx", "sbx.exe")
| where ProcessCommandLine has "create" and ProcessCommandLine has "kit"
| extend KitRef = extract(@'(?i)kit[=\s]+([A-Za-z0-9_./:@~-]+)', 1, ProcessCommandLine)
| where isnotempty(KitRef)
| extend LocalRef = KitRef matches regex @'^(\.|/|~)'
| summarize Creates = count(), FirstSeen = min(Timestamp), LastSeen = max(Timestamp), CommandLines = make_set(ProcessCommandLine, 10) by DeviceName, AccountName, KitRef, LocalRef
| where Creates >= 2
| order by Creates desc
```

### Sigma

```yaml
title: Docker Sandboxes Third-Party Kit Create (CVE-2026-136998 Review Trigger)
id: 7a3c1e52-9b4d-4f6a-8c21-5d0e9f1a2b01
status: experimental
description: Detects sbx create invoked with a kit reference. In Docker Sandboxes v0.43.0 to before v0.55.0 an approved credential binding carries over to later versions of the same kit tag, branch or directory without a prompt or diff (CVE-2026-136998). Use as a review trigger for third-party kit use; correlate repeat runs per host and kit reference.
references:
  - https://www.endorlabs.com/learn/cve-2026-136998-docker-sandboxes
author: Threadlinqs Team
date: 2026/11/30
tags:
  - attack.initial-access
  - attack.t1195
  - attack.t1195.001
  - attack.execution
  - attack.t1204
  - attack.defense-evasion
  - attack.t1036
  - cve.2026.136998
logsource:
  category: process_creation
detection:
  selection_img:
    Image|endswith:
      - '\sbx.exe'
      - '/sbx'
  selection_cmd:
    CommandLine|contains|all:
      - ' create'
      - 'kit'
  condition: all of selection_*
falsepositives:
  - Developers legitimately creating sandboxes from reviewed, pinned internal kits
  - Repeated sandbox re-creation during normal agent development
level: medium
```

**Known false positives:**

- Developers re-creating sandboxes from the same reviewed, pinned internal kit as part of normal workflow
- CI or onboarding scripts that run sbx create repeatedly with a known first-party kit

**Tuning notes:** The kit flag syntax of sbx create is not documented in the research; the rex/extract pattern matches 'kit' followed by a value and should be adjusted to the real CLI syntax. Exclude first-party or pinned-commit kit references with a lookup, and raise priority when local_ref=no (remote tag/branch). Because kit content is not in telemetry, pair hits with a diff of the kit source (inject domains, permissions.network.allow). Index name 'endpoint' is a placeholder for your Sysmon index; on macOS/Linux use Sysmon for Linux or EDR process telemetry mapped to the same fields. Upgrade to Docker Sandboxes v0.55.0+ to remove the root cause.

### 8 more detection rules (Splunk SPL, Microsoft KQL, Sigma), unlock with TL Creds

- CVE-2026-136998 Docker Sandboxes sbx create Repeated on Mutable Third-Party Kit Reference - Defender KQL (Exploitation) (locked: unlock with TL Creds)
- CVE-2026-136998 Docker Sandboxes [indicator] Binding Written or Tampered Out-of-Band - Defender KQL (Post-Exploitation) (locked: unlock with TL Creds)
- CVE-2026-136998 Docker Sandboxes sandboxd Egress to Non-Provider Host / Plaintext HTTP - Defender KQL (Credential Exfiltration) (locked: unlock with TL Creds)
- CVE-2026-136998 Docker Sandboxes Third-Party Kit Create Review Trigger - Sigma (Exploitation) (locked: unlock with TL Creds)
- CVE-2026-136998 Docker Sandboxes [indicator] Modified by Non-sbx Process - Sigma (Post-Exploitation) (locked: unlock with TL Creds)
- CVE-2026-136998 Docker Sandboxes Host Proxy Egress to Non-Provider Destination - Sigma (Credential Exfiltration) (locked: unlock with TL Creds)
- CVE-2026-136998 Docker Sandboxes [indicator] Binding Written or Tampered Out-of-Band (Post-Exploitation) (locked: unlock with TL Creds)
- CVE-2026-136998 Docker Sandboxes sandboxd Egress to Non-Provider Host / Plaintext HTTP (Credential Exfiltration) (locked: unlock with TL Creds)

Sign up free to unlock the detection rules: https://threadlinqs.com/?modal=signup

## Sample indicators (2 of 8)

Defanged, TLP:CLEAR.

- Domain: `localtest[.]me`
- File hash: `79805a6e3c6667520dc2da4f6bdeddae9b700969`

Full set of 8 indicators unlocks with TL Creds: https://threadlinqs.com/tl-creds

## Sources

- [Endor Labs: CVE-2026-136998 Docker Sandboxes Vulnerability Allows Malicious AI Agent Kits to Steal Developers' API Keys](https://www.endorlabs.com/learn/cve-2026-136998-docker-sandboxes)
- [Endor Labs: Docker Sandboxes vulnerability lets AI agents access sensitive files outside their sandbox (CVE-2026-103916)](https://www.endorlabs.com/learn/docker-sandboxes-vulnerability-lets-ai-agents-access-sensitive-files-outside-their-sandbox-cve-2026-103916)
- [Endor Labs: Vulnerability reporting transparency (ENDOR-VUL-2026-21091)](https://www.endorlabs.com/research/vulnerability-reporting-transparency)
- [CVE Record: CVE-2026-136998](https://www.cve.org/CVERecord?id=CVE-2026-136998)
- [Docker Sandboxes product page](https://www.docker.com/products/docker-sandboxes/)

## Full data

The other 8 detection rules (Splunk SPL / Microsoft KQL / Sigma) unlock with TL Creds; a free account includes daily creds: https://threadlinqs.com/?modal=signup
Indicator values unlock with TL Creds, at a lower price on Red and Purple; AI agents can query rules and IOCs through the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account): https://intel.threadlinqs.com/mcp

Canonical: https://intel.threadlinqs.com/threat/TL-2026-7119
