openai /codex-security
OpenAI's Codex Security CLI and TypeScript SDK for finding, validating, and fixing security vulnerabilities. npm: https://www.npmjs.com/package/@openai/codex-security
★ 11,497⑂ 917👁 38⑃ 2,385● 195▤ 53◈ 0
11,497
stars
917
forks
38
watchers
2,385
prs
195
issues
53
releases
0
discussions
README
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. - In a terminal: install the CLI and scan your repository. - In automation: use the TypeScript SDK or GitHub Action. 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. - Track findings in Linear, Jira, or GitHub, publish completed scans, or export SARIF, JSON, and CSV. Integration workflows. - 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 authorization. Return the saved report, source evidence, and coverage limits. A completed scan saves a report and findings. Read the report for source evidence and exclusions, then request a patch or ask Codex to verify an existing fix. See the agent workflow guide for setup, task selection, and recovery. Quick start Requires Node.js 22.13.0+ within 22.x, or Node.js 24.x or 26.x, and Python 3.10+. Python 3.10 also requires tomli. Install the CLI globally and sign in: bash npm install --global @openai/codex-security cs login Run your first scan from the repository directory: bash cs scan . When the scan completes, open the Markdown file at the REPORT path in the terminal. Run cs scans show from the same repository to find its latest completed scan again. See scan scope and follow-up work for how to interpret exclusions in the report. cs and codex-security run the same CLI. If the short name conflicts with another command, use codex-security. To skip the global install, or if npm reports an EEXIST conflict, use npx @openai/codex-security in place of cs for both login and scanning. For CI, set OPENAI_API_KEY or CODEX_API_KEY in the scan process's environment. For a headless machine, see device or SSH login. Scan options Choose a scope and scan mode: bash Scan selected paths. cs scan . --path src --path tests Scan committed changes from a base revision to HEAD. cs scan . --diff origin/main Run a deep scan of the repository. cs scan . --mode deep Use cs scan . --max-time 15 for an advisory 15-minute Standard investigation allowance. See investigation time for timing semantics and Deep Scan limits. Use cs --help t
Top issues
#20Missing scan artifacts after model work in Linux, container, and Windows environments17 comments · 2026-07-28#73Track remaining missing-artifact failures during scan completion9 comments · 2026-07-29#56Preserve completed Standard scan work when a policy refusal stops the scan9 comments · 2026-07-29#25Show scan scope, budget semantics, and expected output before paid work begins9 comments · 2026-07-28#763Add versioned end-to-end discovery benchmarks across vulnerability categories7 comments · 2026-08-31#70Keep Standard scan progress and saved review activity consistent7 comments · 2026-07-29#2446Codex Security: Deep Scan prematurely finalizes after workers hit the 5-hour usage limit instead of pausing and resuming3 comments · 2026-11-07#2014Codex Security deep scan processes 9.45M tokens on an empty target and reports complete coverage3 comments · 2026-10-26
Latest release
Codex Security 0.9.1 npm-v0.9.1 2026-11-10Highlights - The npm package includes Developer ID-signed native addons for Apple Silicon and Intel Macs. This lets Codex Desktop load the addon when preparing review items. - Deep Scan runs independent Standard reviews in batches. Workers can share leads and verify each other's evidence. The final report groups observations that have the same fix and retains the source locations from each review. Deep Scan guide - External scanner imports are enabled by default in the CLI, SDK, and plugin. You can preview supported reports, save findings locally, and publish supported findings to Cloud. The