A security scanner that also writes the fix sounds like a shortcut, and in a way it is. The useful question is narrower: where does OpenAI’s Codex Security run, what does it touch, and at which point does a person still decide? The official documentation answers most of that clearly.
What Codex Security is and where it runs
Codex Security reviews code for vulnerabilities and reports the evidence you need to investigate and fix them. OpenAI offers it in four forms: the Codex Security plugin, a command-line tool (CLI), an SDK for building it into your own tools, and Daybreak Defense Factory, a separate plugin in research preview on the web and in the desktop app that needs workspace access, a GitHub connection and a compatible Codex cloud environment. One rule applies across all of them: scans that use OpenAI’s models require Codex Security access.

How a first scan works in the Codex app
In the ChatGPT desktop app you select Codex, install Codex Security and open Security in the sidebar. That opens the Security workbench, where scans, findings and repositories sit together and saved results can be compared across runs. A scan can cover a whole repository, a single component, a branch, a commit or just your local changes.
OpenAI recommends a standard scan for a first assessment or routine review. A deep scan is meant for a critical system or a scoped directory, where broader, repeated analysis justifies more time and compute; if it is interrupted, it can resume without repeating finished work. You can also focus a scan on one service, such as an authentication service, or add security context of your own. The scan works from a threat model: a description of the assets, trust boundaries and assumptions in your code. OpenAI advises keeping it current as your architecture changes, because an outdated model points the review at the wrong places.
From finding to pull request
Each finding comes with evidence. For a finding you accept, Codex Security can try to reproduce the issue, generate a focused patch and, where feasible, add a regression test that fails before the fix and passes after it. That test is the part worth looking at first: it shows the problem was real and that the change closes it.
The documentation is explicit about the last step. You inspect the suggested patch before opening a pull request, and the decision to apply it stays with an engineer. The tool can also triage findings you already have, including SARIF reports, GitHub code scanning and Dependabot alerts, advisories and Jira or Linear tickets, without starting a new scan.
Scaling up with the CLI
For more than one repository at a time, there is the public npm package @openai/codex-security. You sign in with npx @openai/codex-security login, scan the current repository with npx @openai/codex-security scan ., and run many repositories in parallel with the bulk-scan command and a CSV list. The package itself is public, but running scans still requires Codex Security access.
In pipelines, the CLI works with GitHub Actions and GitLab CI/CD. It can review pull or merge requests, export SARIF, keep evidence, and optionally fail a check when findings reach a severity threshold you choose. Separately, Codex Security Review analyses GitHub pull requests when someone comments @codex security review, or automatically if configured; it is available to ChatGPT Enterprise, Business, Edu and Pro accounts.
What Daybreak Blue is and who gets it
Daybreak Blue is OpenAI’s offering for approved defenders. It supports authorised work such as vulnerability triage, malware analysis and detection engineering. Access is limited to approved users doing authorised work, and approval means confirming your identity, your workspace or API organisation, the model and the product surface. Daybreak Red is a separate track for narrower, specialised activities, with its own approval and safeguards. OpenAI also notes that approval does not configure your environment for you.
Assessment: where the boundary sits
Which door are we opening? Two details in the documentation answer that better than any feature list. First, local scans use your operating system’s permissions and do not pause for approval, so the machine or CI runner you scan from defines what the tool can reach. A dedicated runner with only the repositories it needs is the calm default. Second, findings posted to GitHub inherit the pull request’s visibility, so a public repository means public findings unless you set the reporting threshold carefully.
My reading, which is an inference rather than an OpenAI claim: the design keeps the risky step, merging a change, in human hands, and that is the right place for it. The tool speeds up finding and drafting. The review, the threshold and the scope are still yours to set, and they are worth setting before the first scan rather than after.
Ask AI about this article
Opens in a new tab with the question filled in.


