CVE Metadata Configuration#
Authentication#
An NVD API key is optional. When provided, Cartography fetches current CVE
metadata from the NVD API v2.0. Store the key in an environment variable and
pass its name with --cve-metadata-nist-api-key-env-var.
Without an API key, Cartography downloads the NVD yearly JSON feeds.
The EPSS API, the CISA KEV catalog, and CISA Vulnrichment need no credentials.
Configure Cartography#
No explicit enable flag is required. Include cve_metadata in the selected
module list or run all modules.
Use --cve-metadata-src multiple times to select metadata sources. Valid
values are nvd, epss, kev, and vulnrichment. All sources are enabled by
default. Each one downloads:
Source |
Download per sync |
|---|---|
|
One request per 100 CVEs with an API key, otherwise one yearly feed per CVE year |
|
One request per 100 CVEs |
|
The KEV catalog JSON, about 2 MB |
|
The Vulnrichment repository tarball, about 100 MB |
Nothing is downloaded when the graph has no CVE nodes.
Run Cartography#
Enrich CVEs with all sources:
cartography \
--selected-modules cve_metadata \
--cve-metadata-src nvd \
--cve-metadata-src epss \
--cve-metadata-src kev \
--cve-metadata-src vulnrichment
Enrich CVEs with only EPSS scores:
cartography \
--selected-modules cve_metadata \
--cve-metadata-src epss