fasten-project / vulnerability-producer

Gathers, enriches and publishes vulnerability information to a Kafka topic.
https://www.fasten-project.eu/
Apache License 2.0
6 stars 3 forks source link

Cache CPE to PURL mappings #74

Closed elanzini closed 3 years ago

elanzini commented 3 years ago

We use the CPE dictionary from NVD to build a mapping between the CPE and its repository where we can find it hosted, and later map it to its package-coordinate, thanks to the crawling of ecosystem's metadata for each package.

Currently, we are not enriching this mapping with PURL information from advisories. The PurlMapper should also take this into account when inferPurl is called and cache the mapping cpe --> purl for later use.

The precision of this will need to be evaluated.