Principle:0x4m4 Hexstrike ai CVE Fetching and Normalization
| Knowledge Sources | |
|---|---|
| Domains | CVE_Intelligence, Data_Normalization, Vulnerability_Management |
| Last Updated | 2026-10-10 00:00 GMT |
Overview
Technique for fetching CVE data from the NVD API and normalizing heterogeneous CVSS versions (v3.1, v3.0, v2.0) and CPE configuration data into a uniform schema.
Description
The CVE Fetching and Normalization principle describes querying the NVD API v2.0 for CVEs within a time window, then normalizing the response into a consistent schema. CVSS scores are extracted by trying v3.1 first, then v3.0, then v2.0 (converting v2.0 scores to severity levels). CPE (Common Platform Enumeration) strings are parsed to extract vendor, product, and version from the cpe:2.3: format. Each CVE entry is normalized to include cve_id, description, severity, cvss_score, published_date, affected_software, and references. Rate limiting is respected with delays between requests.
Usage
Apply this principle when integrating CVE data from the NVD:
- CVSS version fallback: Try v3.1 → v3.0 → v2.0 for maximum coverage
- CPE parsing: Extract readable software names from CPE 2.3 format strings
- Rate limiting: Respect NVD API rate limits (6 second delay for unauthenticated requests)
- Severity filtering: Filter CVEs by severity level (HIGH, CRITICAL)
Theoretical Basis
The normalization pipeline:
# Abstract pattern (NOT real implementation)
# CVSS extraction (version fallback)
if "cvssMetricV31" in metrics:
score = metrics["cvssMetricV31"][0]["cvssData"]["baseScore"]
severity = metrics["cvssMetricV31"][0]["cvssData"]["baseSeverity"]
elif "cvssMetricV30" in metrics:
score = metrics["cvssMetricV30"][0]["cvssData"]["baseScore"]
elif "cvssMetricV2" in metrics:
score = metrics["cvssMetricV2"][0]["cvssData"]["baseScore"]
severity = v2_to_severity(score) # >=9.0→CRITICAL, >=7.0→HIGH, etc.
# CPE parsing
# cpe:2.3:v:vendor:product:version → "vendor product version"
parts = cpe_string.split(":")
affected = f"{parts[3]} {parts[4]} {parts[5]}"