Codex Security(GitHub リポジトリ)の公開
OpenAI はコードのセキュリティ脆弱性をスキャン、検証、修正するためのコマンドラインインターフェース(CLI)と TypeScript SDK を公開した。
AI深層分析を開く2026年7月29日 23:25
AI深層分析
キーポイント
CLI と SDK の提供
OpenAI はコードのセキュリティ脆弱性をスキャン、検証、修正するためのコマンドラインインターフェース(CLI)と TypeScript SDK を公開した。
CI/CD 統合機能
開発者は CI パイプライン内でセキュリティチェックを実行し、変更のレビューや発見事項の追跡を自動化できる。
認証と設定オプション
ツールは ChatGPT のサインインまたは API キーによる認証に対応しており、非対話型スキャンでは API キーが優先される。
重要な引用
@openai/codex-security is a CLI and TypeScript SDK for finding, validating, and fixing security vulnerabilities in your code.
Scan repositories, review changes, track findings over time, and run security checks in CI.
編集コメントを表示
編集コメント
OpenAI が提供するこのツールは、生成 AI の普及に伴うコードセキュリティリスクへの対応策として位置づけられる。開発現場での実装コストを下げつつ、継続的なセキュリティ監視を実現する点に意義がある。
Source Article
元記事を日本語で読む
本文に関係しない購読案内、埋め込み通知、サイト内プロモーションは除いています。
@openai/codex-security は、コード内のセキュリティ脆弱性を発見・検証・修正するための CLI ツールおよび TypeScript SDK です。リポジトリのスキャンや変更レビュー、経時的な問題の追跡、CI 環境でのセキュリティチェック実行が可能です。
ドキュメント
クイックスタート
Node.js 22 以降、Python 3.10 以降が必要で、Codex Security のアクセス権限も必要です。
npm install @openai/codex-security
npx codex-security login
npx codex-security scan .
CI 環境ではログインする代わりに、OPENAI_API_KEY を設定してください。
ChatGPT のサインイン情報と API キーの両方が利用可能な場合、対話式のスキャンではどちらの認証情報を使うか選択を求められます。一方、CI やその他の非対話型スキャンでは既存の API キー優先ルールが維持されます。必要な場合は以下のコマンドで認証方法を明示的に指定できます。
npx codex-security scan . --auth chatgpt
npx codex-security scan . --auth api-key
ChatGPT のサインインを自動デフォルトに設定するには、設定済みの API キーを削除してください。
unset OPENAI_API_KEY CODEX_API_KEY
スキャン履歴は Codex Security のワークベンチ状態ディレクトリに保存されます。このディレクトリへの書き込みができない場合は、CODEX_SECURITY_STATE_DIR 環境変数を設定して、リポジトリ外の書き込み可能なディレクトリを指定してください。
TypeScript SDK
import { CodexSecurity } from "@openai/codex-security";
const security = new CodexSecurity();
const result = await security.run(".");
console.log(result.reportPath);
await security.close();
インストール、認証、スキャンオプション、CI 設定の詳細については、公式ドキュメント を参照してください。
原文を表示
@openai/codex-security is a CLI and TypeScript SDK for finding, validating, and fixing security vulnerabilities in your code. Scan repositories, review changes, track findings over time, and run security checks in CI.
Documentation
Quick start
Requires Node.js 22 or later, Python 3.10 or later, and access to Codex Security.
npm install @openai/codex-security
npx codex-security login
npx codex-security scan .For CI, set OPENAI_API_KEY instead of signing in.
If both a ChatGPT sign-in and an API key are available, interactive scans ask
which credential to use. CI and other noninteractive scans keep the existing
API-key precedence. Select a credential explicitly when needed:
npx codex-security scan . --auth chatgpt
npx codex-security scan . --auth api-keyTo make your ChatGPT sign-in the automatic default, unset any configured API
keys:
unset OPENAI_API_KEY CODEX_API_KEYScan history is stored in the Codex Security workbench state directory. If that
directory cannot be written, set CODEX_SECURITY_STATE_DIR to a writable
directory outside the repository.
TypeScript SDK
import { CodexSecurity } from "@openai/codex-security";
const security = new CodexSecurity();
const result = await security.run(".");
console.log(result.reportPath);
await security.close();For installation, authentication, scan options, and CI setup, see the official documentation.
AI算出
主要ニュースainew評価標準
AI セキュリティツールの公開は AI モデル・ツールの直接発表であり、新規性も高い。ただし Codex は世界的なツールであり、日本固有の情報や企業事例が含まれていないため関連性は低め。
6つの評価軸を見る
- AI関連度
- 75
- 情報源の信頼性
- 50
- 新規性
- 75
- 調べる価値
- 75
- 重複の少なさ
- 100
- 日本での有用性
- 25
関連記事
News to Guide
ニュースの次に確認する
発表内容を、現在の料金や仕様と照らし合わせられる関連ガイドです。
今日のまとめ
AIデイリーブリーフで今日の重要ニュースをまとめ読み