cell logo
v0.5 · 57/57 threat checks · 7/7 mutants caught

Kernel isolation for
semi-trusted commands

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,...}
~4ms
per jail, end to end
57/57
threat-harness checks
0
runtime dependencies
7/7
planted mutants caught

Everything a jail needs, nothing it doesn't

The same architecture runc uses — compressed into a single static binary you fully control.

filesystem

Detached, not hidden

pivot_root onto a fresh tmpfs. The host filesystem is unmounted from the payload's world entirely — secrets unreachable even knowing exact paths.

network

Loopback-only by default

Own network namespace with no route out. Bypassing the egress proxy is structurally impossible, not merely firewalled — the other path does not exist.

secrets

Environment scrubbed

Host environment never leaks in. Pass-through is per-variable opt-in with --env KEY. Audit evidence records keys, never values.

privilege

seccomp + no_new_privs

Hand-written BPF blocklist: mount, bpf, io_uring, keyctl, kexec, modules, perf. The x32-ABI bypass is killed at the architecture check.

resources

cgroup v2 caps

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.

signals

Terminal-true semantics

Ctrl-C hits the payload's process group exactly like a terminal. Grace period, then escalation. Parent death takes the whole jail with it.

Egress with policy — and receipts

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}

Verified where it matters — on hosts that differ

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.

hostkernelresult
dev laptop6.8reference host — harness now at 57 checks
cloud VPS6.8.0-14745 pass + 3 skips
aws EC2 (Amazon Linux)6.1.18845 pass + 3 skips
bare-metal server6.8.0-10042 pass + 6 skips
unprivileged LXC6.17.2-pvecannot run — host boundary, detected honestly

What people actually use it for

Running AI-generated code

The agent wrote it, you run it unread — no network, no host files, no env tokens, evidence after. The check stops being a decision.

Supply-chain installs

npm install that can reach exactly the registry and nothing else — can't see your keys, can't exfiltrate, every connection logged.

Scoped API egress

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 →

Honest limits

What cell is not

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.

  • No image format, no registry, no orchestration — deliberately, permanently. That's the Docker trap.
  • Egress mediation covers proxy-aware HTTP/HTTPS only; no arbitrary TCP/UDP.
  • CONNECT tunnels TLS end-to-end, so the proxy meters but cannot inspect inside TLS. Credential brokerage is a separate design question on the roadmap.
  • Best-effort cgroup limits depend on host delegation — cell warns rather than claims.