CVE Cleanup

Overview

CVE Data Cleanup Tool - Find and fix multi-CVE issue records, sync from custom fields.

Commands

CommandDescription
regscale cve-cleanup discoverDiscover Issues with multiple CVEs in the CVE field. Scans for Issues where the CVE field contains comma or newline delimited values, which need to be cleaned up.
regscale cve-cleanup fixFix Issues with multiple CVEs. For Issues with duplicate CVEs: Updates to keep only the first CVE. For Issues with different CVEs: Creates new Issues for each additional CVE. By default runs in dry-
regscale cve-cleanup sync-from-custom-fieldSync vulnerabilities and issues from custom field CVE data. Reads CVE values from a specified custom field on Issues and creates corresponding Vulnerability and Issue records without duplicates. Rec

regscale cve-cleanup discover

Discover Issues with multiple CVEs in the CVE field.

Scans for Issues where the CVE field contains comma or newline delimited values, which need to be cleaned up.

regscale cve-cleanup discover [OPTIONS]
FlagTypeRequiredDefaultDescription
--parent-idintegerNoFilter by parent ID (e.g., security plan ID)
--parent-moduletextNoFilter by parent module (e.g., 'securityplans')
--outputpathNoExport results to CSV file

regscale cve-cleanup fix

Fix Issues with multiple CVEs.

For Issues with duplicate CVEs: Updates to keep only the first CVE. For Issues with different CVEs: Creates new Issues for each additional CVE.

By default runs in dry-run mode. Use --confirm to actually make changes.

regscale cve-cleanup fix [OPTIONS]
FlagTypeRequiredDefaultDescription
--parent-idintegerNoFilter by parent ID (e.g., security plan ID)
--parent-moduletextNoFilter by parent module (e.g., 'securityplans')
--dry-runbooleanNotrueShow what would be changed without making changes (default: True)
--confirmbooleanNofalseActually perform the cleanup (disables dry-run)

regscale cve-cleanup sync-from-custom-field

Sync vulnerabilities and issues from custom field CVE data.

Reads CVE values from a specified custom field on Issues and creates corresponding Vulnerability and Issue records without duplicates.

Records are mapped to assets based on the assetIdentifier field.

Example: regscale cve-cleanup sync-from-custom-field --parent-id 123 --custom-field-name "CVE List" --dry-run

regscale cve-cleanup sync-from-custom-field [OPTIONS]
FlagTypeRequiredDefaultDescription
--parent-idintegerYesParent ID (e.g., security plan ID)
--parent-moduletextNosecurityplansParent module (default: 'securityplans')
--custom-field-nametextYesName of the custom field containing CVE data
--create-vulnerabilities, --no-vulnerabilitiesbooleanNotrueCreate missing vulnerabilities (default: True)
--create-issues, --no-issuesbooleanNotrueCreate missing issues (default: True)
--dry-runbooleanNotrueShow what would be created without making changes (default: True)
--confirmbooleanNofalseActually perform the sync (disables dry-run)

Did this page help you?