# DeepSeek Harness Authentication Bypass Lets Sandboxed AI Agents Escape via Single Command (CVE-2026-82533)

> DeepSeek Harness (CVE-2026-82533, CVSS 9.4 Critical) contains an authentication bypass in its local HTTP control-plane API: the isTrustedApiRequest function validates only the client-supplied Host header rather than the actual TCP connection origin. A sandboxed AI agent can exploit this with a single curl command to disable its own sandbox and approval prompts, and remote attackers reaching the port via tunnel or proxy gain full agent control and access to all stored conversations without credentials.

- **Published:** 2026-09-09T00:00:00Z
- **Last reviewed:** 2026-09-09T00:00:00Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-2412
- **Card image:** https://intel.threadlinqs.com/og/threat/threat-intel-deepseek-harness-auth-bypass-tl-2026-2412.webp?v=d9a4a40c (Threadlinqs threat intel: CVE-2026-82533 DeepSeek Harness Escape: Detection & IOCs (TL-2026-2412) — Critical severity, 16 IOCs, 9 detection rules.)
- **ID:** TL-2026-2412
- **Severity:** CRITICAL (CVSS 9.4)
- **Category:** VULNERABILITY
- **Status:** ACTIVE
- **Detections:** 9 (1 shown free below) · **IOCs:** 16
- **CVEs:** CVE-2026-82533

## Description

DeepSeek Harness (dsh) is an open-source, local-first AI coding-agent harness that has rapidly amassed over 216,000 GitHub stars since its launch in August 2026. It runs AI coding agents on a developer's machine with OS-level filesystem sandboxing (Bubblewrap on Linux, Seatbelt on macOS, ACL-restricted-token on Windows) and an approval-prompt system intended to gate dangerous operations. The tool ships as the npm package @deepseek-ai/dsh and its CLI binary dsh, with version 0.1.1-rc.2 as the latest npm release. The harness exposes a local HTTP control-plane API on 127.0.0.1:3080 to manage agent sessions, execute commands, and retrieve conversation logs.

CVE-2026-82533, discovered by OX Security researchers Nir Zadok and Moshe Siman Tov Bustan, resides in the isTrustedApiRequest function within packages/client/connection/src/api-request-trust.ts. This function serves as the sole gate for the entire /api RPC surface. It reads the client-supplied Host header to determine trust — if the Host value matches a loopback address (127.0.0.1 or localhost) or appears in a configured trustedHosts list, access is granted. Crucially, the function never compares the Host value against the actual TCP connection peer address. The function's own code comments acknowledge this is a trust boundary designed to prevent DNS rebinding and CSRF from browsers, but it is explicitly documented as "not an auth layer." Non-browser clients (such as a curl command from within a sandboxed agent) can simply supply a spoofed Host: 127.0.0.1:3080 header and bypass the gate entirely.

The attack chain for sandbox escape is straightforward. The sandbox profiles on both Linux (Bubblewrap, using --unshare-pid but not --unshare-net) and macOS (Seatbelt, using (allow default) with only (deny file-write*)) leave loopback networking open while restricting filesystem writes. Ordinary bash tool calls require no approval. From inside the sandbox, an agent executes a single curl command: curl -s -X POST http://127.0.0.1:3080/api/session/update-config -H "Host: 127.0.0.1:3080" -H "Content-Type: application/json" -d '{"danger-full-access": true, "approval": "never"}'. This sets the session to danger-full-access mode (which disables the sandbox entirely) and approval to never (which stops all approval prompts). The session log records the policy change with source: {kind: 'user'} — the harness cannot distinguish the agent's shell from the human at the keyboard, and no approval/request event appears anywhere in the log. OX Research verified the exploit by running two identical sessions from default settings: the session that made the API call successfully wrote files outside its workspace (e.g., /home/ubuntu), while the confined session had the identical write blocked by the sandbox.

The remote attack path is equally severe. If port 3080 is reachable via SSH tunnel, reverse proxy, editor port forward, or the --host 0.0.0.0 option (which the CLI explicitly refuses but can be bypassed via proxy), an unauthenticated remote attacker gains full agent control: they can invoke commands/execute with danger-full-access permissions, read all stored conversations, and enumerate the filesystem via host.listDirectory and host.createDirectory — all without any credential or API key. The --profile web binding explicitly rejects --host 0.0.0.0, confirming the threat model includes local actors.

Beyond CVE-2026-82533, the vulnerability is part of a broader security picture for DeepSeek Harness. The same week the CVE was reported, community researchers published three additional vulnerabilities under discussion #451 (DSH-01, DSH-02, DSH-03): DSH-01 is a node:vm sandbox escape in the workflow tool (CVSS 8.8) where the constructor chain agent.constructor('return process')().getBuiltinModule('fs') bypasses the VM context entirely, achieving arbitrary file read/write and RCE; DSH-02 is a dynamic plugin host code escape via host-realm closure (CVSS 8.8) where btoa.constructor obtains the host Function constructor, enabling full process-level access including reading DEEPSEEK_API_KEY from process.env; and DSH-03 is the identical /api RPC bridge without authentication (the same class as CVE-2026-82533 but documented independently). A subsequent security audit (discussion #817) reported 7 additional findings: 2 High (unauthenticated LAN RPC when binding to 0.0.0.0, and the unpinned host-filesystem primitives the RPC carries) and 5 Medium (workflow tool bypassing sandbox modes, approval escalation not bound to the command, host-only dynamic packages activating with zero approval, sandbox context facade forwarding capability services, and Landlock falsely reporting full enforcement on NFS/CIFS/FUSE filesystems).

The project has no SECURITY.md file, and GitHub's private vulnerability reporting returns API 403, meaning there was no responsible disclosure path available. The fix was released in dsh-v0.1.2-alpha.1 on August 27, 2026 (commit 3e24087bfaeabe40b58ba2f7b936895b8f93fe27), implementing a one-time-token authentication scheme where the tool prints a token at startup, the browser exchanges it for a signed cookie, and every API call requires the cookie. However, the fix does not address the design limitations that the sandbox does not confine reads, network access, or process visibility, and the agent's shell still receives the interface address. The fix was first available on npm in version 0.1.2-alpha.2 (August 30) and the current npm release with the fix is 0.1.2-rc.1 (September 3). Third-party desktop builds that ship their own copy of the harness remain exposed until they update their pinned version.

A separate academic study (arXiv:2608.16393, August 2026) assessed DeepSeek Harness resistance to indirect prompt injection across 14,560 controlled agent executions, finding fake-completion attacks achieved 17.0% success, hidden unicode in files reached 25.5%, and the skills channel reached 16.0%, confirming that the broader attack surface extends well beyond the authentication bypass. No in-the-wild exploitation of CVE-2026-82533 has been reported as of publication.

## MITRE ATT&CK

- T1059.004 Command and Scripting Interpreter: Unix Shell
- T1059.007 Command and Scripting Interpreter: JavaScript
- T1071.001 Application Layer Protocol: Web Protocols
- T1685 Disable or Modify Tools
- T1548 Abuse Elevation Control Mechanism
- T1190 Exploit Public-Facing Application
- T1213 Data from Information Repositories
- T1082 System Information Discovery
- T1204.002 User Execution: Malicious File
- T1565.001 Data Manipulation: Stored Data Manipulation
- T1552.001 Unsecured Credentials: Credentials in Files

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

**DeepSeek Harness Sandbox Self-Escalation via Control-Plane API Exploit One-Liner (CVE-2026-82533, Exploitation)** (`TL-2026-2412-SPL-001`)

Detects the CVE-2026-82533 exploitation one-liner from Linux process-execution telemetry (auditd execve): any process, typically a sandboxed AI agent under Bubblewrap (bwrap) or Seatbelt (sandbox-exec), invoking curl against the DeepSeek Harness loopback control-plane API (127.0.0.1:3080 or localhost:3080) while carrying the danger-full-access / approval:never session-configuration payload. On vulnerable versions (<0.1.2-alpha.1) the isTrustedApiRequest gate trusts the client-supplied Host header instead of the TCP peer, so this single POST /api/session/update-config disables filesystem confinement and all approval prompts, achieving sandbox escape. The literal spoofed Host: 127.0.0.1:3080 header, when present, is the authentication-bypass signature.

- **Languages:** Splunk SPL, Microsoft KQL, Sigma
- **ATT&CK:** T1190, T1059.004, T1562.001
- **Data sources:** linux_audit, auditd, process_execution
- **Severity:** critical
- **Confidence:** high

### Splunk SPL

```spl
index=endpoint sourcetype=linux_audit
    (cmd="*127.0.0.1:3080*" OR cmd="*localhost:3080*") (
    cmd="*danger-full-access*" OR cmd="*/api/session/update-config*" OR cmd="*approval*never*")
| eval proc = mvindex(split(cmd," "),0)
| eval spoofed_host = if(cmd LIKE "%Host: 127.0.0.1%" OR cmd LIKE "%Host: localhost%", 1, 0)
| eval parent_sandbox = if(like(parent_process,"%bwrap%") OR like(parent_process,"%sandbox-exec%") OR like(parent_process,"%dsh%"), 1, 0)
| table _time host user proc parent_process cmd spoofed_host parent_sandbox
| sort 0 _time
| `comment("CVE-2026-82533: sandboxed process curls loopback:3080 with danger-full-access / approval=never escalation")`
```

### Microsoft KQL

```kql
let exploitProcesses = DeviceProcessEvents
| where TimeGenerated > ago(24h)
| where ProcessCommandLine contains "3080"
| where ProcessCommandLine has_any ("127.0.0.1", "localhost")
| where ProcessCommandLine has_any ("danger-full-access", "/api/session/update-config", "approval")
| project TimeGenerated, DeviceName, AccountName, FileName, ProcessCommandLine, InitiatingProcessCommandLine;
let loopbackApi = DeviceNetworkEvents
| where TimeGenerated > ago(24h)
| where RemotePort == 3080
| where RemoteIP == "127.0.0.1" or RemoteUrl has_any ("127.0.0.1:3080", "localhost:3080")
| project TimeGenerated, DeviceName, InitiatingProcessFileName, InitiatingProcessCommandLine, RemoteIP, RemotePort;
exploitProcesses
| union loopbackApi
| sort by TimeGenerated desc
```

### Sigma

```yaml
title: DeepSeek Harness Sandbox Escape via Control-Plane API - CVE-2026-82533
id: 7f1c2a9e-4d3b-4e00-9b21-2412a0010001
status: experimental
description: Detects the CVE-2026-82533 exploitation one-liner in which a process inside a DeepSeek Harness (dsh) OS sandbox issues an HTTP POST to the loopback control-plane API (127.0.0.1:3080 / localhost:3080) carrying a danger-full-access / approval:never session-configuration payload with a spoofed loopback Host header, disabling the sandbox and all approval prompts.
references:
    - https://www.ox.security/blog/cve-2026-82533-deepseek-harness-ai-agent-sandbox-escape/
    - https://www.vulncheck.com/advisories/deepseek-harness-alpha-1-authentication-bypass-via-host-header-spoofing
    - https://github.com/deepseek-ai/deepseek-harness/commit/3e24087bfaeabe40b58ba2f7b936895b8f93fe27
author: Threadlinqs Team
date: 2026/09/09
tags:
    - attack.execution
    - attack.t1059.004
    - attack.initial_access
    - attack.t1190
    - attack.defense_evasion
    - attack.t1562.001
    - attack.tool.curl
    - cve.2026.82533
logsource:
    category: process_creation
    product: linux
detection:
    selection_control_api:
        CommandLine|contains:
            - '127.0.0.1:3080'
            - 'localhost:3080'
    selection_escalation:
        CommandLine|contains:
            - 'danger-full-access'
            - '/api/session/update-config'
            - 'approval'
    condition: all of selection_*
falsepositives:
    - Monitoring or health-check scripts that curl the loopback control-plane endpoint
    - A power user manually toggling session configuration with curl
level: high
```

**Known false positives:**

- Health/monitoring scripts curling the loopback control-plane endpoint
- A developer manually toggling session config via curl on a workstation

**Tuning notes:** Escalate when spoofed_host=1 (literal Host: 127.0.0.1 header) or when parent_sandbox=1 (child of bwrap / sandbox-exec / dsh). Exclude sanctioned port-forwarding tooling and dev containers that legitimately proxy to loopback:3080; any command line containing danger-full-access should alert regardless of process.

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

- Loopback Control-Plane API Exploitation of DeepSeek Harness (CVE-2026-82533, Exploitation) (locked: unlock with TL Creds)
- Node.js VM / Plugin Host Sandbox Escape via Constructor Chains in DeepSeek Harness (DSH-01/DSH-02, Post-Exploitation) (locked: unlock with TL Creds)
- Non-Loopback Network Connections to DeepSeek Harness Port 3080 (CVE-2026-82533, C2 / Lateral) (locked: unlock with TL Creds)
- DeepSeek Harness Control-Plane Sandbox Escape Command Detected (CVE-2026-82533, Exploitation) (locked: unlock with TL Creds)
- DeepSeek Harness Credential / Conversation Log Access After Sandbox Escape (CVE-2026-82533, Post-Exploitation) (locked: unlock with TL Creds)
- DeepSeek Harness Control-Plane API Unauthenticated RPC Access (CVE-2026-82533, C2 / Lateral) (locked: unlock with TL Creds)
- DeepSeek Harness Session Policy Escalation Recorded as User Without Approval Event (CVE-2026-82533, Post-Exploitation) (locked: unlock with TL Creds)
- Unauthenticated DeepSeek Harness Control-Plane RPC With Loopback-Spoofed Host Header (CVE-2026-82533, C2 / Remote Access) (locked: unlock with TL Creds)

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

## Sources

- [OX Security: CVE-2026-82533 — DeepSeek Harness AI Agent Sandbox Escape](https://www.ox.security/blog/cve-2026-82533-deepseek-harness-ai-agent-sandbox-escape/)
- [VulnCheck Advisory: DeepSeek Harness Authentication Bypass via Host Header Spoofing](https://www.vulncheck.com/advisories/deepseek-harness-alpha-1-authentication-bypass-via-host-header-spoofing)
- [The Hacker News: DeepSeek Harness Flaw Lets AI Agents Escape Sandbox With a Single Command](https://thehackernews.com/2026/09/deepseek-harness-flaw-let-ai-agents.html)
- [NVD Entry: CVE-2026-82533](https://nvd.nist.gov/vuln/detail/cve-2026-82533)
- [GitHub Release: dsh-v0.1.2-alpha.1 (Fix)](https://github.com/deepseek-ai/deepseek-harness/releases/tag/dsh-v0.1.2-alpha.1)
- [GitHub Commit: Fix for CVE-2026-82533](https://github.com/deepseek-ai/deepseek-harness/commit/3e24087bfaeabe40b58ba2f7b936895b8f93fe27)
- [GitHub Discussion #243: Workflow Tool VM Escape via Host-Realm Functions](https://github.com/deepseek-ai/deepseek-harness/discussions/243)
- [GitHub Discussion #451: VM Sandbox Escapes + Unauthenticated /api RPC](https://github.com/deepseek-ai/deepseek-harness/discussions/451)
- [GitHub Discussion #817: Security Audit Report (7 Additional Findings)](https://github.com/deepseek-ai/deepseek-harness/discussions/817)
- [Rye Security Review: DeepSeek Harness Sandbox Network Scope](https://rye.ai/blog/deepseek-harness-sandbox-network-scope/)
- [arXiv:2608.16393 — Security Assessment of DeepSeek Harness with A.I.G (Indirect Prompt Injection)](https://arxiv.org/abs/2608.16393)
- [DeepSeek Harness Sandbox Architecture Documentation](https://github.com/deepseek-ai/deepseek-harness/blob/master/packages/sandbox/sandbox-local/README.md)
- [Tencent AI-Infra-Guard: DeepSeek Harness Security Assessment](https://github.com/Tencent/AI-Infra-Guard)

## 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): https://intel.threadlinqs.com/mcp

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