cloudflare-sandbox-containers

Warn

Audited by Socket on Nov 4, 2026

5 alerts found:

Securityx5
SecurityMEDIUM
references/sandbox/save-a-sandbox-automatically.md

The code provides sandbox lifecycle management and executes caller-supplied argv inside a container. The shown route has no authentication despite its comment, so any reachable caller can run commands in a sandbox selected by name and retrieve status including snapshotId; snapshots may contain credentials. No malware, suspicious external domains, or host-side execution is evident. Severity: security warning to alert depending on exposure; authenticate and authorize requests before sandbox lookup or command execution.

Confidence: 98%Severity: 73%
SecurityMEDIUM
references/sandbox/open-a-terminal-in-the-browser.md

This example exposes an interactive root shell inside a named sandbox over WebSocket. The shown Worker does not implement the authentication claimed in its comment, so an accessible deployment could let unauthorized callers access or create named sandboxes and run commands as root within them; this is a high-severity access-control risk, although the container is configured with Internet access disabled. Browser input reaches the sandbox shell, while shell output returns to the browser. The notes mention jsDelivr-hosted xterm.js and addon-fit; no suspicious domains, credential theft, or host-level execution are present in the code shown.

Confidence: 98%Severity: 83%
SecurityMEDIUM
references/sandbox/back-up-a-directory-to-r2.md

This is readable Cloudflare Sandbox documentation code for backing up and restoring a directory through R2, not evidence of malware. The sample has a significant access-control omission: without authentication at the Worker or another layer, callers can read notes, back up files that may include credentials, and restore files in named sandboxes. The shell argument handling shown is quoted and uses a fixed `printf` format, so the request body is not directly executed as shell code. Severity is high if deployed as shown on an untrusted network; the documentation itself advises authenticating callers.

Confidence: 99%Severity: 72%
SecurityMEDIUM
references/sandbox/save-and-restore-a-workspace.md

The fragment implements sandbox snapshot, restore, and note operations; it contains no evident malware, credential harvesting, or shell injection. As shown, the routes lack authentication and authorization, allowing callers who can reach them to access or manipulate sandboxes by name and potentially copy snapshots across users; snapshots may contain sensitive files. Severity is high if deployed without an external access-control layer; the notes themselves explicitly require ownership checks in production.

Confidence: 98%Severity: 78%
SecurityMEDIUM
references/sandbox/list-sandboxes.md

The fragment is documentation and example code, with no clear malware or obfuscation. The shown Worker handler does not implement the authentication explicitly required by its comments and trusts `owner` from the URL, which can expose listing, command execution, and destruction of other users' sandboxes if deployed as-is. The command execution is directed to sandbox containers, and the administrative token is sent to `api.cloudflare[.]com`; severity is high if the routes are reachable without separately enforced authentication and authorization.

Confidence: 98%Severity: 78%
Audit Metadata
Analyzed At
Nov 4, 2026, 10:38 AM
Package URL
pkg:socket/skills-sh/fandhe-ai%2Fagent-reference-skills%2Fcloudflare-sandbox-containers%2F@99f77e2c48478632bb143bab856dd321ca913458d399d8fd2459c97329d84ff1