DeepSeek Harness Permissions & Sandbox Security
Do not treat workspace-write as a complete security boundary. Official rc.7 documentation says network access is outside SandboxMode, and the web_fetch source warns that private-network and SSRF protection is not implemented. Treat PTC Mode run_code as host user-level code execution unless an upstream fix explicitly proves confinement.
Sharing includes the public link only, without local progress or private configuration.
Verified capability boundaries
SandboxMode governs documented filesystem effects; it is not a promise to isolate network access, process visibility, every extension, or every code-runtime path. The Python minimal example is intentionally more permissive and uses danger-full-access, so its behavior must not be generalized to workspace-write.
The official rc.7 web_fetch provider source states that private-network and SSRF protection is not implemented. On a host that can reach cloud metadata, loopback services or private subnets, do not enable that provider without an external egress policy that blocks those destinations.
- Separate filesystem policy, approval policy, network egress and process isolation in the threat model.
- Use a disposable OS account or container without production credentials for untrusted work.
- Apply outbound proxy or firewall rules; a workspace sandbox does not supply SSRF filtering.
PTC Mode and run_code
The rc.7 worker-thread implementation creates a Node worker and executes generated code through an AsyncFunction path. Open Discussion #3245 reports that this run_code path is not wrapped by ctx.sandbox.confine(). The source supports the execution-path concern, while the security impact remains an open community report rather than a publisher-confirmed advisory.
Until upstream resolves or documents the boundary, avoid DSH_TOOLS_MODE=code or both when filesystem confinement is a hard requirement. If PTC is needed, run the entire Harness process inside an independently enforced container or virtual machine boundary.
- Do not describe PTC run_code as protected by workspace-write without a version-specific proof.
- Keep secrets outside the process environment and mounted workspace.
- Re-check tagged source and the report after every release candidate.
Verification before sensitive use
A safe configuration is demonstrated by blocked effects at the external boundary, not by a preset label. Test with canary files and denied network destinations in a disposable environment, and record the exact rc, OS, runtime, profile and enforcement layer.
- Verify writes outside the allowed workspace fail at the OS or container layer.
- Verify loopback, link-local and private-network destinations are blocked by egress controls.
- Treat #3245 and #3051 as open, not independently reproduced reports until their upstream status changes.
First-party sources
Open the pinned or retrieved source before acting on a changed release candidate.
- Official rc.7 sandbox documentationOfficial documentation · retrieved 2026-08-19↗
- Official rc.7 web_fetch provider sourceOfficial tagged source code · retrieved 2026-08-19↗
- Official rc.7 worker-thread entry sourceOfficial tagged source code · retrieved 2026-08-19↗
- Official rc.7 worker-thread bootstrap sourceOfficial tagged source code · retrieved 2026-08-19↗
Community reports
These are open user reports hosted in the official repository. They are not publisher confirmation and have not been independently reproduced by this guide unless a separate local reproduction is linked.