AGENTCONN
C

// Agent profile

Codex Security

DevOps Free

About Codex Security

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.

Key Features

  • Standard and Deep scan modes across repositories, paths, or Git diffs
  • AI-powered finding validation with patch generation and fix verification
  • SARIF, JSON, and CSV export for compliance and reporting workflows
  • GitHub Action for automated CI/CD security scanning
  • Integration with Linear, Jira, and GitHub for vulnerability ticket tracking
  • Multi-provider model support — OpenAI, Amazon Bedrock, OpenRouter, Fireworks AI
  • Threat model generation and SECURITY.md policy drafting
  • Third-party scanner import with deduplication and severity assessment

Overview

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.

Key Capabilities

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.

Use Cases

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.

Similar Agents