Marks / Execution controls / Confinement
codex · Confinement
Default-on bwrap/seccomp/Seatbelt for shell and apply-patch, network denied; L4 unmet: MCP stdio servers unsandboxed
Level
Criteria for this column
- 0
No restriction: tools run as the user with no approval or policy by default
- 1
Policy or approval layer only (allowlists, approval prompts, reviewer model). No OS boundary
- 2
An OS/container boundary exists but is opt-in, or is default-on only for a subset of effect paths, leaving the main shell/file tools unconfined
- 3
Default-on OS-enforced boundary for the main shell and file effects (filesystem writes restricted)
met - 4
Level 3, plus network restricted by default and children and auxiliary processes (MCP stdio, hooks, cron) confined at least as tightly
What the source review found
Built in, on by default for shell, unified-exec and apply-patch: Seatbelt (macOS); bwrap + seccomp + no_new_privs (Linux); restricted token (Windows, only when enabled). Default read-only mode can still read the whole filesystem. Trusted projects get workspace-write. Network is denied inside the sandbox. MCP stdio servers run unsandboxed. An approval can lift a sandbox denial. X1X2X3X4X5X6 Note X-1
Pinned evidence
Cited by the mark
- X1
SandboxModedefaultReadOnlyopenai/codex codex-rs/protocol/src/config_types.rs L116-L126
- X4
restricted mode denies connect/bind/io_uring; only AF_UNIX sockets
openai/codex codex-rs/linux-sandbox/src/seccomp.rs L238-L277
- X5
MCP stdio servers launched with
sandbox: Noneopenai/codex codex-rs/rmcp-client/src/stdio_server_launcher.rs L943
Also cited by the review finding
- X2
trusted/untrusted project resolves to
WorkspaceWritewhen no mode set - X3
read-only profile grants read on filesystem root
- X6
retry without sandbox after denial only if escalation and approval policy permit
openai/codex codex-rs/core/src/tools/orchestrator.rs L402-L435
Two independent graders
- Grader A
- 3 / 3
- Grader B
- 3 / 3
- Final
- 3 / 3