OpenAI's Codex Security CLI and TypeScript SDK for finding, validating, and fixing security vulnerabilities. npm: https://www.npmjs.com/package/@openai/codex-security
TypeScript ai-securityapplication-securityclicode-scanningcodexcodex-securitycybersecuritydevsecopsnodejsnpmopenaisdksecuritytypescriptvulnerability-scanning
{
"run": {
"jsonrpc": "2.0",
"id": "run",
"method": "run",
"params": {
"version": 2,
"repository": "/workspace/repository",
"revision": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"scope": {
"paths": ["service-a", "service-b"]
},
"outputDirectory": "/scan/output",
"stateDirectory": "/scan/state",
"model": "fixture-model",
"reasoningEffort": "medium",
"severityRubric": {
"markdown": "# Security team rubric\n\nGrade the impact on the affected tenant.\n",
"revision": 3,
"sha256": "0735ad8680e64cc58dae0f2ac171cfbe98816494176fe95ca28b122476b61cfa"
},
"identity": {
"runId": "run-1",
"attemptId": "attempt-1",
"buildId": "fixture-build"
}
}
},
"execution": {
"jsonrpc": "2.0",
"id": "request-1",
"method": "execution.run",
"params": {
"version": 2,
"repository": "/workspace/repository",
"revision": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"scope": {
"paths": ["service-a", "service-b"]
},
"identity": {
"runId": "run-1",
"attemptId": "attempt-1",
"buildId": "fixture-build"
},
"model": "fixture-model",
"reasoningEffort": "medium",
"severityRubric": {
"markdown": "# Security team rubric\n\nGrade the impact on the affected tenant.\n",
"revision": 3,
"sha256": "0735ad8680e64cc58dae0f2ac171cfbe98816494176fe95ca28b122476b61cfa"
},
"requestId": "request-1",
"scanId": "scan-1",
"prompt": "Scan the selected paths using the supplied severity rubric.\n{\"severityRubric\":{\"markdown\":\"# Security team rubric\\n\\nGrade the impact on the affected tenant.\\n\",\"revision\":3,\"sha256\":\"0735ad8680e64cc58dae0f2ac171cfbe98816494176fe95ca28b122476b61cfa\"}}",
"runtime": {
"pluginRoot": "/opt/runtime/cli/_bundled_plugin",
"pluginVersion": "0.1.95",
"stateDirectory": "/scan/state",
"outputDirectory": "/scan/output",
"environment": {
"CODEX_SECURITY_STATE_DIR": "/scan/state",
"CODEX_SECURITY_CONFIG_PATH": "/scan/tmp/config-preflight.toml",
"CODEX_SECURITY_TARGET_PATHS_FILE": "/scan/tmp/target-paths.json"
}
}
}
},
"progress": {
"jsonrpc": "2.0",
"method": "execution.progress",
"params": {
"requestId": "request-1",
"event": {
"type": "progress",
"progress": {
"phase": "discovery",
"filesCompleted": 1,
"filesTotal": 2
}
}
}
},
"response": {
"jsonrpc": "2.0",
"id": "request-1",
"result": {
"requestId": "request-1",
"status": "completed",
"sessionId": "session-1",
"usage": {
"input_tokens": 12,
"output_tokens": 6,
"cached_input_tokens": 0
}
}
},
"terminal": {
"jsonrpc": "2.0",
"id": "run",
"result": {
"version": 2,
"repository": "/workspace/repository",
"revision": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"scope": {
"paths": ["service-a", "service-b"]
},
"identity": {
"runId": "run-1",
"attemptId": "attempt-1",
"buildId": "fixture-build"
},
"severityRubric": {
"markdown": "# Security team rubric\n\nGrade the impact on the affected tenant.\n",
"revision": 3,
"sha256": "0735ad8680e64cc58dae0f2ac171cfbe98816494176fe95ca28b122476b61cfa"
},
"outputDirectory": "/scan/output",
"status": "completed",
"scanId": "scan-1",
"pluginVersion": "0.1.95",
"provenance": {
"cliVersion": "0.2.0",
"pluginVersion": "0.1.95",
"buildId": "fixture-build"
},
"execution": {
"requestId": "request-1",
"status": "completed",
"sessionId": "session-1",
"usage": {
"input_tokens": 12,
"output_tokens": 6,
"cached_input_tokens": 0
}
},
"artifacts": [
{
"path": "scan-manifest.json",
"sha256": "1111111111111111111111111111111111111111111111111111111111111111",
"bytes": 1024
},
{
"path": "findings.json",
"sha256": "2222222222222222222222222222222222222222222222222222222222222222",
"bytes": 256
},
{
"path": "coverage.json",
"sha256": "3333333333333333333333333333333333333333333333333333333333333333",
"bytes": 512
},
{
"path": "report.md",
"sha256": "4444444444444444444444444444444444444444444444444444444444444444",
"bytes": 768
}
]
}
}
}