Codex Security: OpenAI's AI Vulnerability Scanner CLI
GitHub Repo
Apache-2.0
November 30, 2026 at 01:42 PM
0 views

Codex Security: OpenAI's AI Vulnerability Scanner CLI

@openaiProject Author

What Codex Security is

Codex Security is OpenAI's open-source command-line tool, TypeScript SDK and GitHub Action for finding, investigating and fixing vulnerabilities in code you own or are permitted to assess. The README states the scope in one line: it "helps you find, investigate, and fix vulnerabilities in your code." It ships on npm as @openai/codex-security, installs two equivalent binaries (cs and codex-security), and is also packaged as a plugin for Codex, OpenAI's coding agent, so the same workflows can be started from a chat.

It is not a rule-based static analyser in the Semgrep or CodeQL mould. A scan is a model-driven investigation: the CLI starts a session of the bundled Codex agent, loads a security plugin made of skills, reference documents and an MCP server, and has the model read the repository, build a threat model, look for vulnerabilities, validate candidate findings and write a report with source evidence and coverage limits. Around that core sit the jobs an application-security team does with findings once they exist: deduplication against earlier scans, severity classification against your own rubric, owner suggestions from CODEOWNERS and Git history, patch generation and fix verification, drafting SECURITY.md, importing findings from other scanners, and exporting SARIF, JSON, CSV or ServiceNow files.

The audience is developers and security engineers who already pay for model inference (an OpenAI API key or ChatGPT sign-in, Amazon Bedrock, OpenRouter, Fireworks AI or Cheaper Inference) and want an agent-driven review in a terminal, a CI job or a Codex session. The client code is Apache-2.0. The analysis itself always costs model tokens, and some features depend on OpenAI services that are not part of the repository.

How Codex Security works

Three layers in one npm package

The published package is a Node.js wrapper around two other components. Its registry manifest pins @openai/codex and @openai/codex-sdk at 0.171.0, and the Codex package pulls a platform-specific native executable through optional dependencies (Linux, macOS and Windows on x64 and arm64). The second component is the bundled Codex Security plugin, version 0.1.95 according to cs info --json, which in the installed package contains 20 skill directories (for example security-scan, security-diff-scan, deep-security-scan, triage-finding, fix-finding, verify-fix, threat-model, check-skills and publish-findings), a set of reference documents such as a default severity rubric and a SARIF adapter description, an MCP server, and 49 Python helper files. That is why the README requires Python 3.10 or later alongside Node.js: saved-scan lookup, export and some storage helpers run in Python.

An isolated Codex home per installation

The CLI does not reuse your normal Codex configuration for scans. On first use it writes a separate Codex home under the Codex Security state directory, by default $CODEX_HOME/state/plugins/codex-security (so ~/.codex/state/plugins/codex-security when CODEX_HOME is unset), overridable with CODEX_SECURITY_STATE_DIR. The generated config.toml observed in the hands-on test registers the bundled plugin from a local marketplace, sets approval_policy = "on-request", and defines named permission profiles. The default scan profile grants read access to the filesystem root and write access to workspace roots, and denies the agent any access to the Codex Security credential home. A separate policy-generation profile is read-only and sets network.enabled = false.

SECURITY.md is careful about what these profiles mean. Deep Scan workers use read-only execution "to prevent concurrent workspace writes", but "this does not make the worker an isolated, offline environment or disable inherited MCP servers." The project-configuration guide repeats the point: CLI dry runs and SDK preflight "are configuration checks, not sandbox qualification" and should not be used "as evidence of worker isolation." On Linux CI runners the agent sandbox depends on Bubblewrap and user namespaces, and the Bedrock guide gives a one-line bwrap probe to run before assuming any cloud role.

Scan modes and scopes

A Standard scan covers a whole repository, selected paths, a committed diff (--diff BASE to --head) or the working tree. Committed-diff scans require a clean, non-sparse checkout with no untracked files, and the head must be the checked-out commit. A Deep scan repeats Standard discovery runs with several workers and subagents and merges deduplicated findings. The documented defaults are four workers, three subagents per worker, stop after four runs that find nothing new, stop after three consecutive errors, at most 40 discovery runs, and a discovery limit of 5,760 minutes (96 hours). Deep mode does not support diff scopes or custom validation. --max-time is advisory in Standard mode and enforced for Deep discovery.

What a scan leaves behind

Each completed scan is sealed into a results directory outside the scanned worktree, with scan-manifest.json and findings.json as the canonical artifacts, a Markdown report.md that the report itself calls "a deterministic projection of those files", and a SARIF export. A SQLite workbench database stores saved findings and imported third-party findings, which is what makes deduplication against earlier runs, reruns, resumes and the findings and scans history commands possible. Output directories must be new or empty and outside the enclosing Git worktree, so a scan does not write into the code it reviews.

Automation contract

Exit codes are documented in both the agent-workflow and project-configuration guides: 0 when the scan completed without crossing a configured threshold, 1 when findings meet --fail-on-severity, 2 for execution, target-integrity or required-output failures (and for missing or invalid config files), and 130 or 143 on SIGINT or SIGTERM. Coverage gaps and investigation notes do not by themselves fail a scan.

Key features

  • Repository, path and diff scans: cs scan . with --path, --exclude-path, --diff or --working-tree, plus --mode deep for repeated discovery runs.
  • Validation, patching and fix verification: cs validate assesses supplied findings against source, cs patch generates patches for saved findings, and cs verify-fix reports fixed, still_vulnerable or inconclusive without changing the repository. --create-pr can open a draft pull request after verified patches.
  • Project configuration file: cs init writes a starter codex-security.yaml, validated against a bundled Draft-07 schema. Values are literal: the loader does not evaluate JavaScript, interpolate environment variables or fetch remote includes.
  • Cost and time limits: --max-cost sets an estimated USD limit per scan attempt, --max-total-cost covers a whole bulk or component run, and --show-cost prints the estimate. The docs warn that in-flight requests can exceed the limit.
  • Scanner imports: the 0.11.0 CLI offers 16 report readers, including Semgrep, OpenGrep, Snyk, Trivy, SonarQube Cloud, Checkmarx, Veracode, Wiz, Black Duck, Endor Labs, Amazon Inspector, GitHub code scanning and Dependabot, plus live collectors for Continuum, GitHub, Semgrep, Snyk and Sonar.
  • Exports and trackers: SARIF (the default export), JSON, CSV and ServiceNow AVIT, and publication to Linear, Jira, GitHub or Codex Security Cloud.
  • Pre-commit hook: install-hook installs a hook that runs a working-tree scan and blocks commits at a severity threshold (high by default).
  • Agent integrations and bulk runs: cs mcp add registers a read-only MCP server exposing info, cs skills add syncs CLI guidance to coding agents, and bulk-scan and scan-components run resumable multi-repository or per-component campaigns, with a Docker Compose setup for containers.

Getting started

The README asks for Node.js 22.13.0 or later within 22.x, or Node.js 24.x or 26.x, plus Python 3.10 or later (Python 3.10 also needs tomli). The global install and first scan are three commands:

npm install --global @openai/codex-security
cs login
cs scan .

The report path is printed when the scan finishes, and cs scans show finds the latest completed scan again. If cs clashes with another command on your PATH, use codex-security, or npx @openai/codex-security to skip the global install. For CI the README says to set OPENAI_API_KEY or CODEX_API_KEY in the scan process environment. Headless machines can use device login or SSH port forwarding.

Scope options from the README:

cs scan . --path src --path tests
cs scan . --exclude-path examples/
cs scan . --diff origin/main
cs scan . --mode deep

Before spending tokens, the project-configuration guide recommends inspecting the resolved settings and running a local preflight. Neither command starts Codex or checks credentials:

codex-security info -c codex-security.yaml --json
codex-security scan . -c codex-security.yaml --dry-run --json

A minimal project file, from the same guide, limits the scan to src and makes the scan exit with status 1 for high-severity findings:

scan:
  scope:
    paths: [src]
  exclude_paths: [src/examples]
policy:
  fail_on_severity: high

To try the reporting pipeline with no credentials at all, the CLI guide documents mock mode:

codex-security scan /path/to/repository --mock

Policy drafting and threat-model export, from the README:

cs policy .
cs policy . --path services/api --knowledge-base architecture.md
cs export --scan SCAN_ID --artifact threat-model --output threatmodel.md

For an agent driving the CLI, the agent-workflow guide lists discovery commands:

cs --llms
cs scan --schema --format json

The SDK exposes the same engine through a CodexSecurity class. It reads the same YAML file through loadProjectConfig() but never sets the exit status itself: callers check hasFindingsAtOrAbove().

Hands-on: version 0.11.0 without credentials

Tested on 30 November 2026 in a cloud Linux x64 VM with Node.js 22.23.5, npm 10.9.9 and Python 3.13. The package was installed into a scratch project with npm install @openai/[email protected], and every command ran with HOME pointed at an empty directory and with OPENAI_API_KEY, CODEX_API_KEY, CODEX_HOME and AWS variables unset. The test repository was a fresh Git repository with one small Python file. No API key, ChatGPT account or AWS role was used, so no real scan ran.

Package size and dependencies

CheckObserved
npm tarball1,289 files, 21.6 MB unpacked; SLSA provenance attestation listed in the registry record
Install timeabout 17 seconds; npm reported 0 vulnerabilities; no install lifecycle scripts in the manifest
Total node_modules596 MB across 83 top-level entries; 424 MB of it is @openai/codex-linux-x64 (a 301 MB codex binary, a 67 MB codex-code-mode-host and a bundled rg)
Package itself25 MB (dist, _bundled_plugin, JSON schemas, packaged docs)
Direct dependencies25, including @openai/codex 0.171.0, @openai/codex-sdk 0.171.0, ink, react, zod, ajv, @linear/sdk, @octokit/core, pdfjs-dist and add-mcp
Engines field^22.13.0 || ^24.0.0 || ^26.0.0, matching the README
Binariescs and codex-security, both pointing at bin/codex-security.mjs

Commands and results

CommandExitResult
cs --version00.11.0
cs --help0Commands grouped as scan and remediate, review results, import and share, automate, configure and troubleshoot, integrations
cs info --json0SDK and CLI 0.11.0, bundled plugin 0.1.95, Codex 0.171.0, default model gpt-5.6-sol, reasoning effort xhigh, every setting attributed to default
cs init0Wrote codex-security.yaml containing an empty mapping and commented examples; a second run failed with EEXIST and exit 2, as documented
cs scan . --dry-run --json0Reported the state directory, model and "authentication": {"method": "stored_credentials", "verified": false} even though no credentials existed
cs login status --json1{"authenticated": false, "method": "stored_credentials"}
cs scan . --headless2Failed in under a second: "No credentials were found. Run 'codex-security login'…" followed by hints for --device-auth and for setting OPENAI_API_KEY or CODEX_API_KEY in CI
cs policy .2Same credentials error
cs scan . --mock --headless0Completed in about five seconds: 12 findings (2 critical, 4 high, 3 medium, 2 low, 1 informational), all titled [Mock], saved as a normal scan
cs export --export-format csv --output -0Header plus 12 rows for the mock scan
cs export --artifact threat-model --output -2"No saved threat model is available for this result", expected for a mock scan
cs scan import --csv FILE --json0Imported the synthetic CSV row from examples/README.md as a completed scan with its own manifest

On Node.js 22 every command that touches the workbench printed Node's ExperimentalWarning: SQLite is an experimental feature to stderr. It is harmless, but it ends up in CI logs, and anything that parses stderr needs to ignore it.

What it writes to disk

The failed scan with no credentials still created 396 files (17 MB) under ~/.codex/state/plugins/codex-security/: the isolated codex-home/config.toml described above, a copy of the plugin's skills and references in a local marketplace directory, an empty .codex-security-scan.sqlite3, a keyring marker file, and a telemetry/ directory. Files were created with mode 0600 and directories with 0700 where they hold state. The scanned repository was untouched: git status was clean after every command, including init once its file was removed.

The telemetry/ directory held one JSONL file with two receipts for the failed attempt: attempt_started and attempt_finished with "outcome": "failed", "failureCategory": "authentication", the command, surface, package version, scan mode and duration. It contained no paths, source or repository names, which matches the telemetry guide's statement that routine operation telemetry contains "no source, prompts, model output, finding text, paths, repository URLs, account IDs".

The mock scan's results directory (156 KB) held report.md, findings.json, scan-manifest.json, exports/results.sarif and checkpoint files. The terminal summary said 12 findings, while report.md lists "Reportable findings: 11" and notes that it omits details for one informational finding, so the two numbers measure different things. cs scans list --json showed zero tokens and a zero cost estimate, alongside the pricing table the CLI applies to the default model: $4 input, $0.40 cached input, $5 cache write and $20 output per million tokens for short context, doubled for long context, with an "asOf" date of 14 September 2026 and a link to OpenAI's pricing page.

Network behaviour

Running --version, the failed scan, the mock scan and an offline import under strace -f -e trace=connect showed no outbound TCP connections. The only connection attempts were to the D-Bus session socket, which does not exist in the VM. That fits a keyring lookup, since the generated config sets cli_auth_credentials_store = "auto". This is a narrow observation: a real scan sends source excerpts to the selected model provider by design, the CLI guide says interactive sessions can show update notices (disabled by CODEX_SECURITY_NO_UPDATE_NOTICE=1 or CI), and feedback --include-logs sends diagnostics that may include source and findings to OpenAI. Logs are off by default.

Offline import of normalised findings

The repository's examples/normalized-import/ directory contains a synthetic Trivy schema-v2 report. Against a fresh Git repository with an origin remote and a disposable CODEX_SECURITY_STATE_DIR, publish findings … --to local --provider trivy --trivy-scan-root . --dry-run --format json exited 0 and printed the normalised record: a source_finding_id prefixed trivy: with a SHA-256 identity, an evidence object with title, lower-cased severity, advisory IDs, a packages array (name, ecosystem, manifest path, installed and fixed versions), locations, branch, and the original report fields kept under source_data. Re-running with --yes saved it to a workbench.sqlite3 under the chosen state directory, and the documented listing command returned it with an ext_-prefixed ID:

codex-security findings imported /path/to/project --format json

Imported findings start as not_assessed. Checking whether one actually affects the code is a separate, model-backed triage step.

What could not be run

  • Any real Standard, Deep or diff scan, validate, patch, verify-fix, policy or exploitability check: these need model credentials, and none were used.
  • cs login, Cloud publication and the live Semgrep, Snyk, Sonar, GitHub and Continuum collectors: each needs an account sign-in.
  • The Docker Compose bulk-scan setup: container registries are not reachable from the test VM.
  • The GitHub Action: it needs a GitHub-hosted runner and an API key secret.
  • Sandbox enforcement: the docs say preflight cannot establish it, and no Bubblewrap probe was attempted.

CI, the GitHub Action and the two release tracks

Releases come in pairs. An npm-vX.Y.Z release publishes the CLI and SDK to npm with highlights and upgrade notes. A companion action-vX.Y.Z release, published minutes later, documents the GitHub Action and pins it to a distribution commit SHA that contains the Action bundles and a CLI dependency lock. For 0.11.0 the Action release says it "Installs @openai/[email protected]" and gives the pin openai/codex-security@02c70601a70dde2d1c9c9867d4ead298370890d1. The Action guide tells users to copy that full SHA into the workflow in place of REPLACE_WITH_REVIEWED_COMMIT after reviewing the release, and to run the workflow manually before trusting scheduled runs. CHANGELOG.md in the repository is only a pointer to GitHub Releases, plus upgrade notes for 0.8.3.

The sample repository workflow runs weekly on ubuntu-24.04 with contents: read, a 120-minute timeout, persist-credentials: false on checkout, an estimated $5 cost limit and fail-on-severity: none, so findings are reported without failing the job. The Action supports GitHub.com and GitHub Enterprise Cloud on *.ghe.com, and does not support GitHub Enterprise Server. The guide says the sandbox setup step installs bubblewrap and an AppArmor profile only on GitHub-hosted Ubuntu 24.04 VMs. Self-hosted runners and job containers must already provide a working Codex sandbox.

The pull-request workflow includes an unusually frank caveat. The target-specific check (Codex Security / main) cannot by itself prove that the current merge diff was scanned, because GitHub can reuse a successful head check after a base-only update. The guide says an independent merge-time gate is needed, and that the Action does not support merge_group events, so it cannot provide a required check for a merge queue.

Note that docs/ci.md, despite its name, does not cover scanning your repository in CI. It documents how the project tests its own pull requests (path-based job selection, native build caches, required ci and Validate PR Title checks) and points to the Action guide for user CI. For direct CLI pipelines, examples/ includes GitHub Actions and Azure Pipelines workflows that authenticate to Amazon Bedrock through OIDC.

Validation providers, imports and Cloud

Version 0.11.0 added AWS Continuum as an optional host-side validation provider. After a scan is sealed, the host sends findings to AWS and reads back verdicts and issue scores. Selecting it requires a trusted project file and an explicit --validate:

codex-security scan . --validate -c codex-security.yaml

The validation-providers guide spells out the data flow. AWS receives the repository, finding identifiers, titles, summaries, severities, CWEs, and paths and line ranges, and "these fields may contain sensitive information." The local validation method and summary stay on the host unless include_local_validation: true is set, in which case "AWS stores the text verbatim, including any secrets." Provider results never change the sealed report, the Codex severity or --fail-on-severity, and the guide notes that Codex "has not independently reproduced the claim". Provider spending falls outside Codex cost accounting, and cost limits cannot be combined with scan --validate. The same release added an experimental dependency-exploitability investigation, gated behind CODEX_SECURITY_ENABLE_DEPENDENCY_EXPLOITABILITY=1, which checks whether a dependency advisory's conditions are met in your code.

The scanner-import guide frames imports as a preview-then-save flow. publish findings FILE --to local --dry-run works offline with no Cloud login or model call, which the hands-on test confirmed for Trivy. Each reader keeps the vendor's own identity (a Semgrep fingerprint, a Trivy package and advisory pair) so repeat imports update existing records instead of duplicating them. Coverage of each reader is deliberately narrow. The Trivy reader takes language-package vulnerabilities and lists OS packages, secrets and misconfigurations as exclusions. Tenable One and CrowdStrike are local-only. ArmorCode Cloud import is marked unverified.

Codex Security Cloud is an optional OpenAI service. The README says local scans work without it, and Bedrock users get local reports, history and exports without an OpenAI login. Publishing to Cloud requires ChatGPT credentials, and the CLI's default Cloud API root is https://chatgpt.com/backend-api/aardvark, overridable with CODEX_SECURITY_CLOUD_BASE_URL for alternate deployments. Some cybersecurity requests and protected findings also require OpenAI's Trusted Access for Cyber programme, and the experimental --cyber-access-program option selects standard, daybreak_blue or daybreak_red for accounts that have that access.

Use cases

  • A first security review of an unfamiliar codebase: a Standard scan focused with --path and a --knowledge-base architecture document returns a threat model, findings with source evidence, and an explicit list of exclusions and unanswered questions.
  • Reviewing a risky pull request: cs scan . --diff origin/main in CI, with --fail-on-severity high and a cost cap, as a second reviewer next to rule-based checks.
  • Triage of another scanner's backlog: import Semgrep, Snyk, Trivy or GitHub alerts, then ask the triage workflow which ones are reachable in this checkout. That turns a list of not_assessed records into verdicts with missing evidence called out.
  • Fix and verify loops: generate a patch for one saved finding, then run verify-fix against the current checkout before closing the ticket.
  • Vetting agent skills: run $check-skills on a downloaded skill bundle, kept outside the agent's discovery paths, before installing it in a coding agent.

How Codex Security compares

The closest neighbours fall into three groups: rule-based code scanners, dependency and infrastructure scanners, and agent-skill security tooling. Codex Security imports reports from several of them instead of replacing them, so the table compares roles, not feature lists. Claims about the alternatives come from their READMEs and existing pages and are kept general.

ToolApproachWhat it looks atLicenceRelationship to Codex Security
Codex SecurityModel-driven investigation through the bundled Codex agent; findings validated and sealed with evidenceYour source, paths and Git diffs; imported findings from other toolsApache-2.0 client; inference billed by your model providern/a
Semgrep and CodeQL (comparison)Rule- and query-based static analysisSource code patterns and data flowSee the comparison pageCodex Security reads Semgrep JSON or SARIF, OpenGrep JSON and GitHub code scanning alerts, then can triage them against the checkout
TrivyDatabase-backed scanningContainer images, filesystems, Git repositories, VM images and Kubernetes, covering CVEs, IaC, secrets and licences (per its README)Apache-2.0Its schema-v2 JSON imports offline; only language-package vulnerabilities are kept
SkillSpectorStatic patterns plus optional LLM evaluation (Python 3.12+)AI agent skills before installation; its README lists 71 patterns in 17 categories and SARIF outputApache-2.0Overlaps with the $check-skills workflow, which returns PASS, REVIEW, BLOCK or INCOMPLETE
Trail of Bits skillsSkills and plugins loaded into an agentWhatever the agent is pointed at; installs into Claude Code or CodexCC-BY-SA-4.0An alternative way to give a coding agent security workflows; Codex Security ships its own plugin and CLI wrapper

The practical split: rule-based and database scanners are deterministic, cheap to re-run and easy to gate on, but they only find what their rules or advisories describe. Codex Security can reason about authorisation logic and cross-file data flow that rules miss, but every run costs tokens, results depend on the model, and the docs repeatedly frame its output as evidence to review rather than ground truth. Secret scanners such as Gitleaks, TruffleHog and Kingfisher and SBOM platforms such as Dependency-Track cover ground that Codex Security does not claim as its focus. For the agent underneath, see the Codex CLI page and the Claude Code vs Codex CLI vs Gemini CLI comparison. Dependency-alert workflows overlap with update bots covered in Renovate vs Dependabot.

Limits, trade-offs and when not to use it

  • No offline analysis. Apart from mock scans, imports, exports and history browsing, everything useful needs a paid model provider. The default configuration uses xhigh reasoning effort, cost limits are estimates that in-flight requests can exceed, and there is no built-in cost limit unless you set one.
  • Source leaves the machine. A scan sends code to the selected inference provider (OpenAI, Bedrock, OpenRouter, Fireworks AI or Cheaper Inference). Optional validation sends finding details to AWS.
  • Isolation is not a sandbox guarantee. SECURITY.md says the tool "runs under your local account", that you should scan only trusted repositories, and that Deep Scan workers are neither isolated nor offline and still inherit MCP servers. Project files are trusted input that can start MCP servers and redirect model requests, so keep CI config outside the checkout being scanned.
  • Not a deterministic gate. Missed findings and false positives are explicitly "ordinary bugs" under the security policy, and the telemetry guide says production finding counts cannot establish recall. Pair it with rule-based scanners if you need repeatable pass or fail results.
  • Heavy install. Nearly 600 MB on Linux x64, mostly the bundled Codex binary, plus a Python 3.10+ requirement. That matters for container images and CI caches.
  • Platform limits. The Action runs on GitHub-hosted Ubuntu 24.04 x64 or self-hosted runners with a working sandbox, not on GitHub Enterprise Server, and not in merge queues. Linux scans need Bubblewrap and user namespaces.
  • Telemetry. Operation receipts are written locally under telemetry/ and are not uploaded by the wrapper. Model requests carry attribution metadata (command, surface, versions, provider family, scan mode), and the telemetry guide says native analytics opt-out "does not remove request attribution".
  • Licence. Apache-2.0 covers the CLI, SDK, plugin and Action source, with a patent grant and no copyleft obligations for internal use or redistribution. The services it calls (OpenAI models, Codex Security Cloud, Trusted Access for Cyber, AWS Continuum) are governed by their own terms, not the repository licence.
  • Maturity and churn. The repository was created in July 2026 and is still pre-1.0, with four npm releases between 10 and 24 November 2026. Release notes regularly include breaking changes for scripts, such as the 0.11.0 change to cs exploitability run and 0.8.3's replacement of direct Python helper calls. Pin versions in CI, as the Action's SHA-pinning model already forces.

Where the sources disagree

  • Default model. The published 0.11.0 CLI (cs info, scan --help, cs init) and the action.yml at the npm-v0.11.0 and action-v0.11.0 tags default to gpt-5.6-sol. On main, the Action README, action.yml, the SDK's config.ts and the Bedrock pricing notes already say gpt-6.1-sol, while package.json there still reads 0.11.0. Docs on main describe unreleased behaviour, so read the docs at your installed tag.
  • Provider list. The README lists five scan providers including Cheaper Inference, and scan --help agrees. The Action guide says the Action supports four (OpenAI, Bedrock, OpenRouter and Fireworks) and points to the direct CLI workflow for anything else.
  • OpenGrep. The scanner-import table lists --provider opengrep, while publish findings --help adds that "OpenGrep findings use the semgrep storage provider". Both are true: there is an OpenGrep reader, but its records are stored under Semgrep.
  • "CI" documentation. docs/ci.md describes the project's own pull-request testing, not user CI. The user-facing material is in the Action guide and examples/.
  • Finding counts. The mock scan's terminal summary reported 12 findings, matching the CLI guide, while report.md counted 11 reportable findings and left out the informational one.
  • Authentication in dry runs. scan --dry-run reported method: stored_credentials with no stored credentials present (only verified: false hints at this). The project-configuration guide does say dry runs do not verify credentials, so check cs login status instead.
  • Tenzai reader. The scanner-import table on main lists a Tenzai guide and --provider tenzai, but that guide does not exist at the npm-v0.11.0 tag, and the 0.11.0 publish findings --help offers 16 readers without Tenzai.
  • Changelog location. The README's citation section and CHANGELOG.md both send readers to GitHub Releases. The file itself carries only 0.8.3 upgrade notes, so it is not a complete history.

Project activity

As of November 2026 the repository has about 14,491 stars and 1,161 forks, with 236 open issues. It was created on 13 July 2026, is written mainly in TypeScript with a Python plugin layer, is licensed under Apache-2.0, and was last pushed on 30 November 2026. The first npm version was published on 28 July 2026. Recent paired releases: 0.9.1 (10 November), 0.10.0 (12 November), 0.10.1 (18 November) and 0.11.0 (24 November 2026). Vulnerabilities in Codex Security itself go through OpenAI's Bugcrowd programme. Prompt injection, or a model misusing access it already has, does not qualify on its own, and model-behaviour reports go to a separate Safety Bug Bounty. Source: github.com/openai/codex-security. Documentation: developers.openai.com/codex/security. Package: npmjs.com/package/@openai/codex-security.

Checked 30 November 2026: latest release npm-v0.11.0 (24 November 2026), with the companion action-v0.11.0 published the same day and pinned to commit 02c70601a70dde2d1c9c9867d4ead298370890d1. The npm latest tag points at 0.11.0. Licence Apache-2.0 per the LICENSE file, and 14,491 stars per the GitHub repository metadata.

Enjoying this project?

Discover more amazing open-source projects on TechLogHub. We curate the best developer tools and projects.

Project
openai-codex-security
Created
November 30
Last Updated
November 30, 2026 at 01:42 PM

Maintain Codex Security: OpenAI's AI Vulnerability Scanner CLI? Add the badge to your README

Show that the project is featured on TechLogHub and send readers to this write-up.

Featured on TechLogHub
[![Featured on TechLogHub](https://techloghub.com/badge-neutral.svg)](https://techloghub.com/open-source/openai-codex-security?utm_source=techloghub_badge&utm_medium=referral&utm_campaign=readme)

Find more projects like this

One email a week: new and trending developer tools, fresh comparisons, and what shipped. Unsubscribe in one click.