Loading lesson…
Codex executes code on your behalf. Understanding the sandbox boundaries — and where they leak — is the difference between productivity and an outage.
Most chatbots cannot touch your system. Codex can run shell commands, edit files, hit URLs, and start subprocesses. That is what makes it useful and dangerous. The security model is a layered set of constraints that try to keep the useful parts in and the catastrophic parts out.
| Surface | Process isolation | Network policy | Credential exposure |
|---|---|---|---|
| Codex Cloud | Strong (per-task container) | Configurable allowlist | Per-task secrets |
| Codex CLI | Your shell | Your machine's | Your env vars |
| IDE plugin | Your shell | Your machine's | Your env vars |
| GitHub action | GitHub runner | GitHub config | GitHub secrets |
The big idea: security is a defense in depth. Sandboxes, permissions, network policy, and credential isolation each catch what the others miss.
8 questions · take it digitally for instant feedback at tendril.neural-forge.io/learn/quiz/end-codex-security-model-creators
What is the main idea of "Codex Security Model: What Code It Can Run And Where"?
Which concept is most central to "Codex Security Model: What Code It Can Run And Where"?
Which use of AI fits this topic best?
What should a careful learner remember about "The CLI sees your laptop"?
You want to use AI after this lesson. What is the safest next step?
How should AI output about sandbox be treated?
Name one way to verify an AI answer about sandbox.
Which action would help you apply "Codex Security Model: What Code It Can Run And Where" responsibly?