cloudflare-sandbox-containers

Pass

Audited by Gen Agent Trust Hub on Nov 4, 2026

Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
  • [COMMAND_EXECUTION]: The skill includes numerous examples of executing commands inside isolated sandbox containers via the ctx.container.exec() API.
  • In several instances (e.g., references/sandbox/run-a-linux-command.md), the code demonstrates how to take an argument array (argv) from a user-supplied HTTP request and execute it within the sandbox.
  • The author has proactively added "Adapted" sections to these examples that implement authentication checks (e.g., verifying a Bearer token) to ensure that only authorized users can trigger command execution.
  • [EXTERNAL_DOWNLOADS]: The documentation and examples reference the download of software components from well-known and reputable services.
  • In samples/r2-fuse-mount.md, a Dockerfile fetches the tigrisfs binary directly from Tigris Data's official GitHub repository.
  • Various implementation guides involve installing packages from the npm registry, including official Cloudflare SDKs (@cloudflare/sandbox, @cloudflare/containers), AI agent tools (@anthropic-ai/claude-code, @openai/codex), and terminal libraries (@xterm/xterm).
  • Dockerfiles use official base images from Docker Hub, such as node:24-trixie-slim and python:3.13-slim.
  • [DYNAMIC_EXECUTION]: The skill provides examples of dynamic code loading using the Cloudflare Workers Loader API.
  • Examples in references/sandbox/run-javascript-dynamic-workers.md and references/sandbox/build-an-ai-code-interpreter.md show how to execute JavaScript code provided in a request body by loading it into a new Dynamic Worker.
  • These examples explicitly include security constraints, such as disabling outbound network requests and limiting CPU usage, to mitigate the risks of running untrusted code.
  • [INDIRECT_PROMPT_INJECTION]: The skill documents patterns that create an attack surface for indirect prompt injection, particularly in the context of coding agents and AI interpreters.
  • Coding agent implementations (e.g., references/sandbox/claude-code.md) are designed to process and modify untrusted Git repositories.
  • The AI code interpreter example executes code generated by an LLM based on user prompts.
  • The documentation correctly identifies these as risks and demonstrates how to use the Sandbox and Containers platforms to contain these operations within isolated microVMs with restricted network access.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 4, 2026, 10:35 AM