// Agent profile
Codex Security is OpenAI's security scanning tool that helps developers find, investigate, and fix vulnerabilities in source code. It ships as a CLI (`@openai/codex-security`), a TypeScript SDK for automation, and a GitHub Action for CI pipelines. It supports Standard and Deep scan modes across repositories, selected paths, or Git diffs, with AI-powered validation that reduces false positives. At 12,600+ GitHub stars and an Apache-2.0 license, it integrates with Linear, Jira, and GitHub for ticket tracking, and supports multiple model providers including OpenAI, Amazon Bedrock, OpenRouter, and Fireworks AI.
Codex Security extends OpenAI’s Codex ecosystem from code generation into code defense. The CLI scans repositories for security vulnerabilities using AI models to identify issues, validate findings against false positives, and generate patches. Unlike traditional SAST tools that rely on pattern matching, Codex Security uses language models to reason about vulnerability context — understanding whether a SQL injection vector is actually reachable, whether an input is sanitized upstream, and whether a proposed fix introduces regressions.
The tool runs locally or in CI. Developers can scan an entire repository, target specific paths, or focus on just the Git diff to catch vulnerabilities before they reach main. Each finding includes a severity assessment, a suggested fix, and verification that the fix resolves the issue without breaking existing tests.
Two scan depths: Standard mode provides fast coverage suitable for CI gates, while Deep mode performs thorough analysis with higher model reasoning effort for pre-release audits. Both modes produce structured findings with severity ratings, CWE classifications, and remediation guidance.
Finding lifecycle management: Beyond detection, the tool manages the full vulnerability lifecycle. It validates candidate findings to reduce noise, generates patches, verifies fixes, flags duplicates across scans, and suggests code owners from Git history for triage routing.
Integration breadth: Findings export as SARIF (for GitHub Advanced Security), JSON, or CSV. The tool integrates with Linear, Jira, and GitHub Issues for ticket creation. The TypeScript SDK enables custom automation pipelines, and the GitHub Action drops into any CI workflow.
Threat modeling: The threat-model command analyzes a codebase and produces a structured threat model, identifying attack surfaces, trust boundaries, and data flows. The security-md command drafts a SECURITY.md vulnerability disclosure policy.
CI/CD security gates: Teams add the GitHub Action to their pipeline to scan every PR diff, blocking merges that introduce new vulnerabilities. Standard mode keeps scan times under CI timeout budgets while catching the most critical issues.
Pre-release audits: Before cutting a release, security teams run Deep mode across the full repository to surface issues that incremental diff scanning might miss, such as vulnerabilities that span multiple files or emerge from the interaction of changes across several PRs.
Third-party scanner consolidation: Teams already running Semgrep, Snyk, or CodeQL can import those findings into Codex Security for AI-powered validation and deduplication, reducing the false-positive triage burden that plagues traditional SAST tools.
Local-first session intelligence and analytics platform for coding agents, supporting Claude Code, Codex, and 20+ other agents.
Open-source, self-hostable AI Security Operations Center — alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger.
817 structured cybersecurity skills for AI agents mapped to MITRE ATT&CK, NIST CSF 2.0, MITRE ATLAS, D3FEND, NIST AI RMF, and MITRE F3.