The factory is not a sandbox. It runs an agent that executes commands, and the only boundary is the dispatcher and runtime you choose.
localruns the agent on this machine. Withsandbox: true(the default) it jails the session with Landlock (Linux) orsandbox-exec(macOS) where the host supports one; elsewhere that setting does nothing.sandbox_runtimeislocal(the default) orremote, which runs the session on the sandbox serviceFACTORY_SANDBOX_URLnames.claude-cloudandfirerun the session in a hosted cloud environment, which decides isolation.k8sruns the session as a Kubernetes sandbox; seedocs/k8s.md.
A local session inherits only an allow list of variables from your environment (PATH, HOME,
locale, proxy and CA settings, SSH_AUTH_SOCK, CLAUDE_CONFIG_DIR and the CLAUDE_CODE_*,
LC_* and XDG_* families). GITHUB_TOKEN and GH_TOKEN are left out, but through HOME and
SSH_AUTH_SOCK the agent can use your git credentials and any login stored under your home
directory. Use a spend-capped key and a jailed or remote runtime.
Report a vulnerability privately to the maintainer in .github/CODEOWNERS, not in a public issue.