OpenAI shows Codex Security scan, patch and GitHub pull request in six minutes
In a short walkthrough, OpenAI cyber deployment engineer Dan Shanahan installs the Codex Security plugin, scans a repository, generates a fix and then uses the CLI to bring scans into CI/CD pipelines.
OpenAI has published a hands-on tutorial for Codex Security, its tool for finding and fixing vulnerabilities in code. Dan Shanahan, a cyber deployment engineer at the company, takes a repository from first scan to a pull request on GitHub, then shows how a command line version lets teams run the same checks automatically across many projects.
Installing the Codex Security plugin
Shanahan starts in Codex, where he first confirms that his account has access to Daybreak Blue, which appears under general settings. He then searches the plugins page for Codex Security and installs it. The plugin lists several skills, including triaging findings and running a deep scan.
To start a scan, he picks a repository already staged on his machine and chooses Daybreak Blue as the model. A deep scan is optional. He stresses the additional context field, which lets the user give the model guidance so results are more accurate. In the demo he points it at the application's authentication service.

How the scan finds vulnerabilities
Once started, the scan works in stages. It gathers context on the repository, builds an understanding of the codebase and drafts a threat model to map likely attack surfaces. It then reviews code for candidate issues and narrows them to a list of real vulnerabilities that need action.
Each finding comes with a summary, an attack path and supporting evidence, so a reader can judge how the flaw affects the codebase and how best to deal with it.
Generating a patch and sending it to GitHub
From a finding, Shanahan chooses to generate a patch. This opens a new Codex thread, passes in the context of the vulnerability and applies a fix-finding skill to propose a solution. The change he reviews adds new authorization parameters.
Satisfied with it, he publishes directly to GitHub. The resulting pull request contains the same file changes he saw locally, and he says it would go through the normal review process before being merged into production code.

Codex Security CLI for CI/CD automation
Everything so far ran locally, on one repository at a time. For larger organisations, Shanahan points to the Codex Security CLI, which installs with an npm command. Running a scan in a local repository performs the same steps as the plugin, and findings can be reviewed and triaged within the CLI.
Because it is a command line tool, it can be embedded in existing automation, including CI/CD systems, which is how teams would make security scanning repeatable across many repositories. Shanahan closes by encouraging viewers to try a scan on a codebase they know, review the findings and work through a fix.
Questions and answers
What did OpenAI show in its Codex Security tutorial in 2025?
OpenAI published a hands-on walkthrough of Codex Security, its tool for finding and fixing vulnerabilities in code. OpenAI cyber deployment engineer Dan Shanahan installs the plugin, scans a repository, generates a patch, sends a GitHub pull request, then shows the CLI for CI/CD pipelines, in about six minutes.
How do you run your first scan with the Codex Security plugin?
Install the Codex Security plugin from the plugins page in Codex, after confirming your account has access to Daybreak Blue under general settings. Then pick a repository on your machine, choose Daybreak Blue as the model, optionally enable a deep scan, and add context to guide the results.
How does a Codex Security scan find vulnerabilities?
Codex Security scans in stages. It gathers context on the repository, builds an understanding of the codebase and drafts a threat model of likely attack surfaces. It then reviews code for candidate issues and narrows them to real vulnerabilities. Each finding includes a summary, an attack path and supporting evidence.
Why does the additional context field matter in Codex Security?
The additional context field lets the user give the Codex Security model guidance so its results are more accurate. Dan Shanahan of OpenAI stresses this field. In his demo he points the scan at the application's authentication service.
How does Codex Security generate a patch and send it to GitHub?
From a finding, the user chooses to generate a patch. Codex opens a new thread, passes in the vulnerability context and applies a fix-finding skill to propose a solution. The user can publish it directly to GitHub as a pull request, which goes through normal review before merging into production code.
How can companies use the Codex Security CLI for CI/CD automation?
The Codex Security CLI installs with an npm command and runs the same steps as the plugin on a local repository. Findings can be reviewed and triaged within it. Because it is a command line tool, teams can embed it in CI/CD systems to make security scanning repeatable across many repositories.
From the YouTube description
Get started with Codex Security, from installing the plugin to running your first scan. Learn how to select a repository, add context, review findings, and generate a patch. Then follow the fix into GitHub and see how to use the CLI to bring security scans into your automation workflows.
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.



