Architecture · November 12, 2026 · 8 min read
What does an isolated sandbox actually isolate?
The security boundaries we draw around every task, layer by layer, and the places where they stop.
By Kalworks engineering
"Isolated" is the most overused word in this market. It can mean a separate process, a separate container, a separate kernel or a separate machine. Those are very different promises when the code inside was written by an agent you don't fully control. Here's exactly what we mean.
Layer 1: a separate kernel per task
Every task runs in its own microVM: a minimal virtual machine with its own Linux kernel, its own memory and its own virtual devices. We use a KVM-based virtual machine monitor built for this, the same approach AWS built for serverless functions.
Containers share the host kernel. A kernel bug reachable from inside a container is a bug that reaches every other container on that host. Inside a microVM, the workload talks to a guest kernel, and the guest talks to the host through a handful of emulated devices: block, network, vsock and a serial console. That device surface is small enough to audit, which is the point.
Layer 2: a jailed monitor
The process that runs each microVM on the host is itself locked down:
- It runs as its own unprivileged user, in its own chroot, with its own cgroup.
- A seccomp filter allows only the system calls the monitor needs.
- It can't see other monitors' files, sockets or memory.
So escaping the guest kernel lands an attacker in a jailed, unprivileged process on the host, not in root.
Layer 3: network off by default
A new sandbox has no network. You turn it on per workload with a policy:
network:
egress: allowlist
allow:
- pypi.org
- files.pythonhosted.org
- github.com
deny_private_ranges: true
- Each machine gets its own network namespace and tap device. Machines can't see each other, even inside one fleet.
- Private address ranges and the cloud metadata endpoint are always blocked, whatever your allowlist says.
- Every outbound connection is logged with the task ID, so you can see what an agent tried to reach.
Layer 4: nothing survives the task
When a task ends, the machine is released and its disk and memory are discarded. The next task starts from your pinned image, not from what the last task left behind. That's what makes eval runs repeatable, and it's also what stops one task from planting something for the next.
Where it stops
We'd rather tell you the limits than have you find them:
- Side channels. Machines from different customers can share a physical host. We apply the host kernel's speculative-execution mitigations and disable SMT on shared hosts, but we don't claim a microVM defeats every side channel. If you need dedicated hosts, ask us.
- Your allowlist. If you allow an agent to reach the internet, it can reach the internet. We log it; we don't judge it.
- Your secrets. Anything you put in the image or pass as an environment variable is readable by the code inside. Use short-lived, narrowly scoped credentials.
- Independent testing. We haven't had a third-party penetration test yet. It's scheduled, and the report will be linked here when it's done.
The short version
One task, one kernel, one jailed monitor, no network unless you ask, nothing kept afterwards. That's the boundary. Everything past it is on our list of what we don't promise yet.