Codex Security (openai/codex-security)

OpenAI's official scanner and patch generator for finding, investigating, and fixing codebase vulnerabilities. It ships as the @openai/codex-security npm package, packing a CLI, TypeScript SDK, and GitHub Action.

13.1k · TypeScript

It runs standard checks or deep scans that repeat passes to deduplicate findings across repos, selected paths, or Git diffs, even drafting a `SECURITY.md` or assigning owners based on Git history. Because thorough runs rely on deep scans that repeatedly execute standard scans to deduplicate candidate findings, CI runtimes and LLM token usage will climb quickly on active branches.

README excerpt

# Codex Security Codex Security helps you find, investigate, and fix vulnerabilities in your code. Use its security workflows in Codex, or automate them with the `@openai/codex-security` CLI and TypeScript SDK. - **In Codex:** [choose a security workflow](docs/agent-workflows.md). - **In a terminal:** [install the CLI and scan your repository](#quick-start). - **In automation:** use the [TypeScript SDK](#typescript-sdk) or [GitHub Action](#github-actions). ## Features - Scan repositories, selected paths, or Git changes. Deep scans repeat Standard scans and return their deduplicated findings. - Validate candidate findings, generate patches, and verify existing fixes. - Draft `SECURITY.md` policies and save threat models for later review. - Browse saved scans and findings, identify duplicates, assess severity against your own rubric, and suggest owners from source and Git history. - Preview third-party scanner findings, save them locally, or publish supported reports to Codex Security Cloud. [Scanner import guides](docs/scanner-imports/README.md). - Track findings in Linear, Jira, or GitHub, publish completed scans, or export SARIF, JSON, and CSV. [Integration workflows](docs/plugin-connectors.md). - Automate scans across repositories or project components, including in CI and containers. ## Use in Codex Open your repository in a Codex session with the Codex Security plugin enabled, then ask: > Run a Codex Security scan on this repository, focusing on authentication and > autho

GitHub