OpenAI's Codex Security CLI and TypeScript SDK for finding, validating, and fixing security vulnerabilities. npm: https://www.npmjs.com/package/@openai/codex-security
Import Checkmarx SAST findings
Use --provider checkmarx for a completed Checkmarx One scan (CLI JSON) or
self-managed CxSAST scan (XML). Both formats support gzip. If you need the report,
collect an existing scan with Codex or
export one scan manually.
Preview, import and verify
From the matching checkout, preview the report with its verified Git URL. Choose a source key for the product, tenant or instance, project and ref. Reuse it for later exports from that stream.
report=/private/path/checkmarx-results.json
codex-security publish findings "$report" --to local --repository . \
--provider checkmarx --source-repository-url https://github.com/example/project \
--source-key checkmarx-one/example-tenant/example-project/main/sast \
--dry-run --format json
For CxSAST, use the XML path and a key such as cxsast/example-instance/example-project/main/sast.
Check report.scanId, the SAST findings and any exclusions. If the preview
contains both findings and exclusions, a confirmed local import saves the
accepted findings and exits with status 1. Use the same file for confirmation
and retries. Save or publish and verify.
Collect an existing scan with Codex
Ask publish-findings for the full scan from a trusted session. Supply a native Python 3.10+ interpreter and vendor tools installed outside the scanned source tree.
Preview the full Checkmarx One scan
SCAN_IDforexample-projectonmain. Its repository ishttps://github.com/example/project.
- Checkmarx One uses
cx2.3.23+ with your signed-in profile or a complete environment login. UseCX_CONFIG_FILE_PATHfor a specific trusted profile. On mixed scans,cxretrieves all engines and may also generate an SCA package report. - CxSAST uses Java, CxFlow 1.6.37+ and your trusted SAST-only profile with
the
CxXmlwriter. Verify the completed scan ID, project and owning team's full path in the selected server’s Projects & Scans → All Scans view before collection. CxFlow fetches by ID and exports the full XML even when issue-tracker filters are set. Session credentials require confirmation for that server. CxSAST All Scans
If you need a subset or your tools differ from the collector requirements above, supply a native export from your usual environment. Keep reports in a private directory outside the checkout. Supported sign-in and collection settings.
Export one scan manually
For Checkmarx One, use the signed-in CLI from outside the checkout. Set
cx_path to the installed executable, scan_id to the selected scan, and
report_root to a private directory. Use the printed file after a successful export.
Checkmarx One results
report_dir=$(mktemp -d "$report_root/checkmarx.XXXXXXXX") &&
"$cx_path" results show --scan-id "$scan_id" --report-format json \
--output-path "$report_dir" --output-name checkmarx-results &&
printf '%s\n' "$report_dir/checkmarx-results.json"
For CxSAST, open the selected scan and choose Create Report → XML. Review the result filters before generating the file. Generate a CxSAST report.
Identity and evidence
Checkmarx One combines similarityId and data.resultHash to identify each occurrence.
CxSAST uses the project, query, path similarity ID and ordered path nodes,
or the reported result location for a path without nodes. Moving a node can
create a new occurrence. Checkmarx similarity IDs
The finding title is the Checkmarx query name. The scan ID, severity, rule,
CWE (when supplied) and Checkmarx triage state appear in the imported evidence.
To trace a Checkmarx One result, read evidence.source_data.row.data.nodes.
For CxSAST, read evidence.source_data.nodes in order. If you use the
original DeepLink under evidence.source_data.result, check its server
against the CxSAST instance where you exported the scan.
The scan may cover a directory or archive. Its paths stay in the scanner
evidence until you establish how they map to the checkout.