Skip to content

v2.8: the untrusted-code sandbox

Choose a tag to compare

@kylnor kylnor released this 11 Jul 10:35
· 73 commits to main since this release

The stack could clone and run other people's code but had nowhere safe to do it. This release adds the missing surface: a disposable sandbox so untrusted repos never touch the host, plus the skill and the reflex that make your assistant use it by default. Opt-in, requires a Docker daemon.

New

  • lab/ — the untrusted-code sandbox. Dockerfile + a lab wrapper (portable to macOS bash 3.2). Every run is offline by default, mounts nothing of yours (code enters by in-container clone or docker cp, never a bind mount), disposable (--rm + volume cleanup), and de-fanged (all Linux capabilities dropped + no-new-privileges + memory/pid caps). lab <url|dir|zip> for an interactive offline shell; lab --analyze <source> for a non-interactive read-only recon report.
  • /in-the-lab — the skill. Resolves a repo/dir/zip, runs the offline recon in the box, reports what the code reaches for (install hooks, network/shell/eval, obfuscation, dependency count), and never runs the code on the host to triage.
  • Steering rule — untrusted code runs in the lab, not on the host.

Upgrade (additive-doc): copy lab/ and skills/defs/in-the-lab/ into your stack, add the one steering rule to your rules/CLAUDE.md. No interview. Needs Docker (Docker Desktop, OrbStack, or colima).

Adversarially reviewed before release: two sandbox-guarantee breaks (clone-step command injection, interactive volume leak) were found and fixed, each re-verified live against the real image.