AIToday
AI Business & IndustryOpenAI BlogPublished: May 14, 2026, 10:00 JST

OpenAI builds custom sandbox to secure Codex on Windows

3 Key Points

  1. What happened

    OpenAI's engineering team designed and built a custom sandbox—a restricted execution environment—for Codex, its coding agent, on Windows. Existing Windows isolation tools like AppContainer, Windows Sandbox, and Mandatory Integrity Control were evaluated and rejected as non-starters. The final design uses two new local users (CodexSandboxOffline and CodexSandboxOnline), firewall rules to block outbound traffic for the offline user, and two new binaries: codex-windows-sandbox-setup.exe and codex-command-runner.exe.

  2. Why it matters

    Before this, Windows users had to choose between approving nearly every command or enabling Full Access mode, which lets Codex run without oversight. A sandbox enforces safe file and network limits automatically. The team notes that Windows doesn't provide a built-in isolation utility like Seatbelt on macOS or seccomp/bubblewrap on Linux, so they had to implement their own solution. The elevated sandbox requires admin permissions at setup time.

  3. What to watch

    The sandbox's effectiveness hinges on whether the firewall rules and dedicated user accounts adequately block malicious code from exfiltrating data. The design balances safety with usefulness—the goal is for Codex to handle real developer workflows without constant user approval. This is the current implementation, suggesting OpenAI may continue to refine it based on real-world usage and feedback.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, in your inbox every morning.

Context & Analysis

The Codex engineering team started this project in September 2025 when Codex for Windows had no sandbox. The initial 'unelevated' prototype used synthetic SIDs and write-restricted tokens to limit file writes, but its network restrictions were only advisory and could be circumvented. This pushed the team to redesign with an 'elevated' approach that uses Windows Firewall and dedicated user accounts.

The final architecture composes multiple Windows primitives—SIDs, restricted tokens, firewall rules, and custom users—into a coherent system. The team emphasizes this complexity was necessary because Windows lacks a single primitive that maps cleanly to a safe autonomous coding agent. They note the security challenge differs from classic application security, requiring a balance between enforcing boundaries and supporting real developer workflows.

The system's success will likely hinge on whether the firewall rules and user-based isolation hold up against adversarial code while remaining transparent enough for legitimate developer tasks. The setup's admin requirement and asynchronous ACL granting suggest potential friction points for users, but the team prioritized effective enforcement over a simpler design.

FAQ
Why did OpenAI need to build a custom sandbox for Windows?
Windows doesn't provide a built-in isolation utility like Seatbelt on macOS or seccomp/bubblewrap on Linux. Existing tools like AppContainer, Windows Sandbox, and Mandatory Integrity Control didn't meet the requirements for Codex's open-ended developer workflows.
What are the two new Windows user accounts for?
CodexSandboxOffline is targeted by firewall rules to block all outbound network access. CodexSandboxOnline is not targeted by firewall rules. Commands run under these users instead of the real Windows user.

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleIsomorphic Labs secures $2.1bn in Series B funding to scale AI drug design engine IsoDDE