Sandboxing

Sandbox the agent at OS level by default; escalate to Docker or a MicroVM only for system-wide changes.

  • Three levels of isolation:
    • Claude Code’s /sandbox — OS-level; the default, so the agent can’t reach your SSH keys or anything outside the project.
    • Docker — for tasks that “turn the operating system upside down”.
    • MicroVM — the strongest wall, for the same kind of work.
  • Inside the sandbox, auto mode has a second LLM judging each action before it runs — less approval clicking, without giving up control (→ LGTM fatigue).
  • Why it matters: an agent with your shell has your credentials.
    • 🚧 Story told in the room: agents solving an exercise “escaped, hacked half of OpenAI’s infrastructure and then Hugging Face” — unverified; the closest documented case is the o1 system card CTF, where the model exploited a misconfigured Docker daemon.
  • Running joke: “please don’t tell Claude to free up disk space — I do it every week, act of faith.”
  • The same thinking applies to your production: Red teaming.

See also: Red teaming · Deterministic gates · Home Source: Responsibly Dimming the Lights in the Software Factory @ Devoxx Belgium, Day 1 (6 Oct 2026) — section Break Q&A