OpenAI details Codex sandbox permission restrictions
Start here
OpenAI published a post introducing the Codex sandbox: Codex runs commands in the user's existing environment and restricts file system and network access according to a permissions profile. The built-in :workspace profile allows writes within the workspace, makes .git and .codex read-only, permits a fairly broad read scope, and disables network by default. OpenAI says this blocks a large class of bad behavior, but harm can still be caused by tampering with packages in node_modules and similar means, so training and alignment are also needed. Network restrictions are enforced by a shared network proxy according to domain rules; macOS uses Seatbelt's sandbox-exec, Linux combines bubblewrap with seccomp-bpf, and on Windows it is being replaced with an implementation based on Microsoft's MXC library. The codex sandbox command lets developers apply the same set of restrictions to their own tools, and the post gives the example of adding a permissions profile to a stdio MCP server.
Generated by AI from reports · Updated 11 days ago
Attention and developments
Attention, hourly
Now 34, -1% in 24 hours·Peak 37 (Nov 22 21:00)
Progress timeline
- WebZenn Security (Japanese)· Media coverageReading the internal structure of the Codex sandbox through diagrams(opens the original post in a new tab)
- Hacker NewsHacker News· DiscussionInside The Codex Sandbox(opens the original post in a new tab)
- X@takamasa_aiso· DiscussionOpenAI official blog https://t.co/u7oa9xBkGG(opens the original post in a new tab)
- X@kesslernity· DiscussionSource: OpenAI https://t.co/7amS0yHWuL(opens the original post in a new tab)
- X@daisuke· Discussionhttps://t.co/zEa42XXgue(opens the original post in a new tab)
- X@Rakel076· Discussionhttps://t.co/cZDvdfY38e(opens the original post in a new tab)
- Hacker NewsHacker News· DiscussionThe Codex Sandbox(opens the original post in a new tab)
- X@NewMaxxSSD· DiscussionInside the Codex sandbox https://t.co/UuXx12iaQT(opens the original post in a new tab)
- XX @OpenAIDevs· Discussionhttps://t.co/HkJeHjQpzI(opens the original post in a new tab)
- Hacker NewsHacker News· DiscussionThe Codex Sandbox(opens the original post in a new tab)
- OpenAISelectedOpenAI explains in detail how the Codex sandbox restricts commands' file and network access
OpenAI published a post introducing the design of the Codex sandbox, which lets Codex run commands in the user's existing environment and restricts file system and network access according to permission profiles. The built-in :workspace profile allows writes within the workspace, makes .git and .codex read-only, allows a fairly broad read scope, and disables network by default; OpenAI says this blocks a large class of bad behavior, but harm can still be caused by tampering with packages in node_modules and similar means, so training and alignment are needed as well. Network restrictions are enforced by a shared network proxy according to domain rules; macOS uses Seatbelt's sandbox-exec, Linux combines bubblewrap and seccomp-bpf, and on Windows it is being replaced with an implementation based on Microsoft's MXC library. The codex sandbox command lets developers apply the same set of restrictions to their own tools, and the post gives adding a permission profile to a stdio MCP server as an example.
Related discussion
- Older than 72 hours · Not included in the 72-hour figures
- X@DD7eFBO19751965The Codex sandbox does not use containers; it uses system mechanisms to keep commands within your environment: network disconnected by default, workspace writable, .git/.codex read-only. It blocks exfiltration but cannot block local poisoning: the official example is inserting code into node_modules/prettier, which git status cannot see, and editors…(opens the original post in a new tab)
1 likes·Nov 21 21:40Collect
- WebZenn Security (Japanese)Reading the internal structure of the Codex sandbox through diagrams(opens the original post in a new tab)
- X@yumamaeda1210OpenAI has published a "sandbox" mechanism that prevents Codex from running amok even when it operates a PC. Codex is convenient, but what worries people is security. "Won't it delete important files on its own?" "Won't it send internal confidential information outside?" So Open…(opens the original post in a new tab)
2 likes·Nov 21 15:44Collect
- X@Aoyi21Have Codex organize photos: you can give it read and write permission only for the photo directory, then turn off networking. A new OpenAI post explains this sandbox clearly: where files can be touched and whether the network can be used can both be scoped. Next time I have an Agent organize materials, I'll first set up the directory, then let it work on its own, spending less time watching the screen and clicking confirm. ht…(opens the original post in a new tab)
- X@sora_reads_techOpenAI disclosed how the Codex sandbox works. It is not a VM or container but the OS's sandbox feature, running in the local environment as is. The standard :workspace only allows writes within the workspace, and the network is disabled. If you get stuck fetching dependencies…(opens the original post in a new tab)
- X@yabai_tou🔒 Write down the scope of what can be touched first. OpenAI's Codex sandbox, there are 3 default restrictions 👇 ・Only the working location can be written to ・. git etc. are read-only ・Network is disabled Source: OpenAI official https://t.co/6DD95H2swK…(opens the original post in a new tab)
1 likes·Nov 20 20:13Collect
- X@shho91425216OpenAI explained clearly how the Codex sandbox works. It does not move commands into a virtual machine or container to run them separately; instead, it runs them directly on your computer, with file and network permissions defined by you. By default it can modify code in the workspace, .git and .codex are read-only, and the network is turned off first. The readable scope is not narrow, however; sensitive [content] outside the workspace…(opens the original post in a new tab)
3 likes·Nov 20 18:12Collect
- X@sekurimrsOpenAI disclosed the design of the Codex sandbox. It does not stuff all commands into a unified container; instead, it uses the system isolation capabilities of macOS, Linux, and Windows respectively to restrict file and network access within the user's existing environment. The reason is practical: developing iOS on a Mac requires native compilation tools…(opens the original post in a new tab)
6 likes·Nov 20 17:12Collect
- X@tenpos_7120OpenAI explained Codex's sandbox implementation. It uses mechanisms for macOS/Linux/Windows respectively, and runs commands after the user controls file write destinations and network connections. Under the premise of having the agent do hands-on work, permissions…(opens the original post in a new tab)
- X@cohenoriה-sandbox של Codex לא באמת sandboxed. אני מאמין שצוותים צריכים לשפוט sandbox של סוכן קוד לפי מה שהוא יכול לקרוא ולשנות,…(opens the original post in a new tab)
- X@Bing_Bryan_BRNOpenAI breaks down the Codex sandbox: run commands on your computer while you limit file and network permissions. This is a long engineering post about how Codex executes commands in a sandbox on macOS, Linux and Windows. The default workspace permission allows writing files in the project directory, but puts…(opens the original post in a new tab)
- X@shshajs85Letting AI run commands on your computer, the biggest fear is it slipping and randomly modifying files or secretly going online. This OpenAI piece explains the Codex sandbox thoroughly: by default it can only write within the workspace, .git and .codex are read-only, the network is cut off entirely, and permissions can be configured yourself in config.toml, usable on all three platforms. Age...(opens the original post in a new tab)
1 likes·Nov 20 09:12Collect
Attention trend
New sources per day
- Nov 18: 1 new sources (1 outlets, 0 accounts)
- Nov 19: 38 new sources (0 outlets, 38 accounts)
- Nov 20: 14 new sources (0 outlets, 14 accounts)
- Nov 21: 3 new sources (1 outlets, 2 accounts)
- Nov 22: 0 new sources (0 outlets, 0 accounts)
- Nov 23: 0 new sources (0 outlets, 0 accounts)
- Nov 24: 0 new sources (0 outlets, 0 accounts)
- Nov 25: 0 new sources (0 outlets, 0 accounts)
- Nov 26: 0 new sources (0 outlets, 0 accounts)
- Nov 27: 0 new sources (0 outlets, 0 accounts)
- Nov 28: 0 new sources (0 outlets, 0 accounts)
- Nov 29: 0 new sources (0 outlets, 0 accounts)