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.
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 →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.
The browser runs inside this microVM. The service host sits outside it.
WebAssembly execution and the renderer process restrictions form further boundaries.
Agent, shell, tools, generated code and a disposable workspace.
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 ↗
The layers need narrow connections between them. A privileged bridge around the stack can undo the intended containment.
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.
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 ↗
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 ↗
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.
wasm-vm runs a RISC-V Linux guest in a browser. The public demo runs in the visitor's browser.
A dedicated Firecracker microVM containing the sandboxed browser and its wasm-vm workload, with restricted host interfaces and per-job policy.
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 →