OpenAI's Codex Security: an AI security reviewer for software teams
ShiniFrontiers · Source: OpenAI
What problem does it solve?
Does a security expert read every change your team ships? OpenAI's Codex Security puts an AI one on every change before it goes live — it holds back a risky one, writes the fix and checks the fix held; trial it on one codebase first, as OpenAI publishes no accuracy figures.
What it is: A free, open-source tool (Apache 2.0 licence) from OpenAI that reviews each pull request — the proposed code change your team approves before it goes live. An AI model reads your code, lists likely security flaws and double-checks each one against the code, then writes a fix and verifies it. It runs on a laptop or inside your build pipeline, on OpenAI's models or others such as Amazon Bedrock.
Who it's for: Software companies that want every change security-reviewed, not once a year at audit time — and security teams with a pile of warnings to sort, fix and close.
The catch: Three things to know. Cost: every scan is paid model use, and the source gives no price — only an on-screen estimate and a spending cap you set. Refusals: the AI can decline security work and stop mid-scan; OpenAI's approved security-work access (Daybreak) reduces this but does not end it. Evidence, not proof: it reads code without running it, so a finding is strong evidence, not proof the flaw can be exploited.
A. Stop the flaw before it ships — for the head of engineering
Problem: A change can be approved and go live before anyone with security training has looked at it.
What it does: It reviews only the changed code. A finding at or above the severity you set — say, "high" — fails the check, so the change waits for a human. A short policy file, SECURITY.md, tells it what counts as a security issue in your product. Think of a building inspector who signs off each extension before the walls are closed, not once a year.
Note: Skipped is not scanned: OpenAI's example setup skips changes from people outside your company, and GitHub shows a skipped check as passed.
B. Clear the warning pile, and check the fixes held — for the security lead
Problem: Every warning has to be read by hand to decide whether it is real, then fixed, then checked again.
What it does: It imports the warnings GitHub's built-in scanner raises, checks each against the code, flags duplicates, rates severity against your own rubric and suggests an owner. It drafts the fix as a pull request for review. Later it re-checks closed items — fixed, still vulnerable or inconclusive, with evidence.
a proposed code change waiting for approval
A pull request is how a developer proposes a change to a shared codebase. Teammates read it, automated checks run on it, and only once it is approved is it merged into the product. Because every change passes through this point, it is the natural place to add a check — such as a security review — that can hold a change back.
THINK OF IT ASA draft contract circulated for sign-off before it becomes the official version.
Read the lesson →A program that has learned patterns from examples, so it can make predictions on new input.
An AI model is software that learned a skill from many examples instead of being given step-by-step rules. Shown millions of emails marked spam or not spam, it learns the patterns that separate them. Afterwards it can judge a new email it has never seen. The model itself is a large file of numbers that captures those learned patterns.
THINK OF IT ASLike an apprentice who has watched thousands of repairs. Nobody wrote them a rulebook, but they can now look at a new fault and make a good guess.
Read the lesson →Teaching a model by showing it many examples and correcting its mistakes.
Training is how a model learns. It is shown an example, makes a guess, and is told how wrong the guess was. Its internal numbers are then adjusted slightly to do better next time. Repeating this millions of times gives a model that works. Training is slow and expensive, and usually happens once, before anyone uses the model.
THINK OF IT ASLike learning to throw darts. Each throw shows how far you missed, and you adjust a little. After thousands of throws, you hit the board without thinking.
Read the lesson →See the difference
| The situation | Today | With Codex Security |
|---|---|---|
| Stop the flaw before it shipsA developer's change accidentally lets one customer open another customer's records | Ships if the reviewer misses it | Flagged on the pull request; a high-severity finding blocks it |
| Stop the flaw before it shipsWhole-codebase review | Waits for the next audit | Weekly scan, capped in time and spend |
| Clear the warning pile, and check the fixes heldA queue of open warnings | Someone reads each one | Each checked against the code, duplicates flagged, severity rated |
| Clear the warning pile, and check the fixes heldA confirmed flaw | A developer writes the fix from scratch | Fix drafted as a pull request for review |
| Clear the warning pile, and check the fixes heldTickets marked "done" | Assumed fixed | Re-checked: fixed, still vulnerable or inconclusive |
The scenarios are ours; the features are from OpenAI's documentation, which gives no accuracy or false-alarm figures.
- What it saves
Every change security-reviewed before it goes live — and every "fixed" re-checked instead of assumed.
- What it costs
Free software; you pay for model use (see the catch), plus engineering time to set it up and review its fixes.
- How ready
- Working in the real world
Installable now (version 0.4.0) with a supported GitHub Action; no published accuracy figures, and reduced-refusal access needs OpenAI approval.
Join free to unlock: how it works, a step-by-step setup with its costs, what you gain, and where it falls short, for every Friday idea.
Join free to read it all →