Codex Security(openai/codex-security)
OpenAI 推出的代码漏洞扫描与修复工具,提供 CLI、TypeScript SDK 和 GitHub Action,专门用于排查、验证和自动修补项目安全缺陷。
13.1k · TypeScript
包名为 `@openai/codex-security`,既能扫指定路径和 Git diff,也能验证候选漏洞并生成补丁,甚至能顺带草拟 `SECURITY.md` 和根据提交记录推导责任人。不过它所谓的深度扫描是通过反复执行常规扫描来做去重分析,落到 CI 流水线里最直接的代价就是每次提 PR 都会成倍拉长等待时间并消耗大量模型调用。
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](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