Observatory defense blueprint · ATO.M0006
Ephemeral MicroVM & gVisor Agent Code Sandboxing
Execute untrusted LLM-generated code, shell tools, and headless browsers inside hardware-virtualized microVMs or gVisor kernels with default-deny network egress and zero raw secrets.
Control blueprint overview
- Control ID
ATO.M0006- Framework
- Observatory defense blueprint
- Stack layers
- Tool/Sandbox Boundary · Network/IAM
- Techniques addressed
- 0
- OWASP LLM Top 10
- NIST AI RMF
- Reference URI
https://observatory.silvauren.com/catalog/mitigations/ato-m0006/
Control mechanism
Replaces shared host processes and vanilla Docker containers with strong kernel-boundary sandboxes—Firecracker microVMs, Kata Containers, gVisor user-space kernels, or Cloudflare Sandbox/Workers Isolates—pairing ephemeral per-task snapshots with outbound credential-injecting proxies so sandboxed code never accesses host filesystems, metadata IPs, or raw API keys.
Implementation steps
- Route every LLM code-interpreter, terminal, and browser tool call to Firecracker/E2B microVMs, gVisor, Kata, or Cloudflare Sandboxes.
- Attach strict CPU, memory, disk-quota, PID-limit (`RLIMIT_NPROC`), and wall-clock execution timeouts per sandbox invocation.
- Block private VPC/metadata CIDRs and route approved outbound HTTPS requests through an external secret-injecting proxy.
- Destroy and discard sandbox state at session end unless explicitly checkpointed into a scanned artifact workspace.
What this control stops
- Container escape and host OS credential dumping from prompt-injected coding agents (AML.T0050, AML.T0090, AML.T0105).
- Fork bombs, local disk exhaustion, and cryptocurrency mining persistence inside agent runtime pods.
- Environment-variable harvesting of cloud IAM or LLM provider keys by untrusted executed scripts (AML.T0098).
Known bypass conditions & residual risk
- Abuse of explicitly allowlisted external endpoints via proxied sandbox network egress.
- Side-channel timing leaks in rare co-located workloads without dedicated microVM hypervisor boundaries.
- Malicious outputs returned by the sandbox back to the user or orchestrator without output validation (AML.M0033).
Latency, usability & false-refusal trade-offs
Latency: +50-200 ms cold microVM boot (<5 ms on pre-warmed sandbox pools or V8 isolates). | False-Refusal Risk: None; legitimate code executes identically inside the isolated Linux environment. | Operational Cost: Medium compute/orchestration cost for KVM/nested-virtualization or managed sandbox infrastructure.