cell jails any command in raw Linux namespaces — pivot_root, seccomp, cgroup caps, mediated egress — in about 4 milliseconds. One small binary. No root, no daemon, no Docker, no image pulls.
# jail anything, in one word $ cell run -- python3 agent.py # give it a workdir — writable code, read-only .git $ cell run --bind ~/proj:/work:rw \ --bind ~/proj/.git:/work/.git:ro -- make # mediated egress with policy + evidence $ cell run --net proxy --egress-only github.com \ -- curl -s https://api.github.com {"type":"egress","host":"api.github.com","action":"allow", "bytes_c2u":841,"bytes_u2c":5379,...}
The same architecture runc uses — compressed into a single static binary you fully control.
pivot_root onto a fresh tmpfs. The host filesystem is unmounted from the payload's world entirely — secrets unreachable even knowing exact paths.
Own network namespace with no route out. Bypassing the egress proxy is structurally impossible, not merely firewalled — the other path does not exist.
Host environment never leaks in. Pass-through is per-variable opt-in with --env KEY. Audit evidence records keys, never values.
Hand-written BPF blocklist: mount, bpf, io_uring, keyctl, kexec, modules, perf. The x32-ABI bypass is killed at the architecture check.
Pids and memory limits with honest detection — cell tells you when the host can't enforce them rather than silently pretending. Fork bombs die here.
Ctrl-C hits the payload's process group exactly like a terminal. Grace period, then escalation. Parent death takes the whole jail with it.
In --net proxy mode the parent process accepts the jail's connections
outside the boundary. Destinations are resolved once, checked against policy, then dialed literally —
no DNS-rebinding window. Private and loopback ranges are denied by default, so the proxy can't be
turned into an SSRF bridge. Every decision is a JSON evidence record.
# ~/.local/state/cell/audit.jsonl
{"type":"run","ts":"...","argv":["curl","https://example.com"],
"policy":"382f1453","cgroup":"enforced","outcome":{"exit":0}}
{"type":"egress","host":"example.com","ip":"104.20.23.154","port":443,
"action":"allow","bytes_c2u":841,"bytes_u2c":5379,"duration_ms":348}
Seccomp arch behavior, userns availability, cgroup delegation and mount-flag locking are all host-sensitive. Green on a dev laptop proves nothing, so the harness runs across a kernel spread — and has caught three real bugs invisible to single-host testing.
| host | kernel | result |
|---|---|---|
| dev laptop | 6.8 | reference host — harness now at 57 checks |
| cloud VPS | 6.8.0-147 | 45 pass + 3 skips |
| aws EC2 (Amazon Linux) | 6.1.188 | 45 pass + 3 skips |
| bare-metal server | 6.8.0-100 | 42 pass + 6 skips |
| unprivileged LXC | 6.17.2-pve | cannot run — host boundary, detected honestly |
The agent wrote it, you run it unread — no network, no host files, no env tokens, evidence after. The check stops being a decision.
npm install that can reach exactly the registry and nothing else — can't see your keys, can't exfiltrate, every connection logged.
The job reaches only api.github.com — resolve-once-dial-literal, no SSRF bridge, byte counts in the audit trail.
All use cases, copy-pasteable — including what it means for a risk register →
Not a hostile-multi-tenant boundary. The payload shares your kernel — a kernel exploit inside the jail is a host compromise. cell is for semi-trusted code: the kind that isn't exploiting zero-days but absolutely will read your ~/.ssh, your env tokens and your network if you let it. The VM end of the spectrum is being explored in
spore, a small KVM supervisor in machin that brings its own kernel — early research, not a product.