Skip to content
AI Sandboxing / architecture study / hosted deployment proposed

Give AI a computer.
Keep boundaries around it.

Run an agent and its tools inside wasm-vm. In a hosted deployment, run the browser inside a Firecracker microVM. If one boundary fails, another should still separate the agent from the host.

See the isolation stack →

Assume the code is hostile

A coding agent needs to execute programs, install packages, read files and try things that fail. Its inputs can include malicious repositories, dependencies and instructions. Treat everything it runs as untrusted, even when the agent is trying to help.

The proposed workspace puts the agent process, shell and generated code in the emulated Linux guest. The security goal is to contain a compromised workload through several independently enforced boundaries.

The aim: an escape from the agent's machine should land inside another sandbox, with another boundary still protecting the host.

Three layers, nested

03 / Firecracker microVM

A dedicated hosted machine

The browser runs inside this microVM. The service host sits outside it.

02 / Browser sandbox

Chrome with its sandbox enabled

WebAssembly execution and the renderer process restrictions form further boundaries.

01 / wasm-vm

The agent's Linux guest

Agent, shell, tools, generated code and a disposable workspace.

Proposed hosted layout. The entire browser must run inside Firecracker for the outer layer to exist.
  1. Start inside wasm-vm. Guest root privileges still belong to the emulated RISC-V machine. The emulator executes as WebAssembly, whose memory and host access are constrained by its embedding. WebAssembly security model ↗
  2. Keep the browser boundary. A compromise of the hosting page or renderer should still face Chrome's process sandbox. On Linux, Chromium combines mechanisms such as namespaces and syscall filtering, depending on the available kernel features. Chromium's Linux sandbox ↗
  3. Contain the whole browser. In this deployment, a full browser compromise would still be inside a Firecracker guest. Reaching the service host would require defeating that VM boundary or another exposed host interface. Firecracker design ↗

Make escapes expensive

Chrome brings an isolation system built for running untrusted web content. Using that boundary puts an attacker up against the browser's security engineering as well as wasm-vm's own implementation.

A reliable browser escape may require a chain of vulnerabilities, potentially including a valuable zero-day: a flaw without an available fix when it is used. That is the sense in which an attacker might have to “burn a zero-day” to get further.

It is a cost argument, not a guarantee. An unpatched browser can expose known bugs; an overly powerful API can grant access without an exploit. Escaping a JavaScript or WebAssembly engine also does not automatically mean escaping the renderer's OS sandbox. V8's discussion of its in-process sandbox ↗

Protect the interfaces

The layers need narrow connections between them. A privileged bridge around the stack can undo the intended containment.

Files and secrets

Give each job its own workspace. Keep host files, orchestration sockets and long-lived credentials outside the agent's reach. Review the files explicitly exported from the job.

Network access

Enforce an explicit egress policy outside the workload. Allowed network access can carry stolen data without any sandbox escape. Firecracker itself does not filter network traffic. Production host guidance ↗

The hosted boundary

Keep the browser sandbox enabled, patch the browser and virtualization stack, and use Firecracker's recommended jailer and seccomp restrictions. Bound CPU, memory, disk and log usage. Firecracker deployment requirements ↗

Prove each boundary

wasm-vm's recorded execution can make the agent's guest activity inspectable. Containment needs its own tests: forbidden host reads, denied network destinations, cross-job access, resource exhaustion and malicious bridge requests.

A deployment should demonstrate that the browser sandbox remains enabled inside the microVM, that jobs have separate state, and that a failed or compromised job can be terminated without affecting its neighbours. A guest recording alone cannot prove those host-side properties.

Current status

Available today

wasm-vm runs a RISC-V Linux guest in a browser. The public demo runs in the visitor's browser.

Proposed deployment

A dedicated Firecracker microVM containing the sandboxed browser and its wasm-vm workload, with restricted host interfaces and per-job policy.

Evidence still needed

A reproducible hosted setup and independent adversarial containment tests. This architecture study makes no claim that a Firecracker-backed service or an escape-resistant stack has already been verified.

Read the security model → · More case studies → · Try the browser VM →