Codex Security Explained: AI That Finds & Fixes Bugs

Developer reviewing an AI security scan of a code repository on a laptop, 2026

OpenAI’s Codex Security builds an editable threat model for your repo, reproduces flaws in a sandbox before flagging them, and drafts patches you review. Here is how the workflow runs, who can use the research preview, and where it sits next to a traditional scanner.