anchore / grype

A vulnerability scanner for container images and filesystems
Apache License 2.0
8.57k stars 559 forks source link

Use the upstream Bitmani vulndb data for matching #1609

Open wagoodman opened 10 months ago

wagoodman commented 10 months ago

Bitnami is providing vulnerability matching data for their contianers, which have embedded SPDX documents outlining the contained components: https://github.com/bitnami/vulndb . This could be leveraged in order to improve matching in grype for those components.

This involves at least the following tasks:

willmurphyscode commented 2 months ago

For the last item, updating grype to be able to search by these new records, we're starting to think about that pretty early, because to write a correct namespace we need to know how grype should search.

@wagoodman do you think this is a good time to add a ByPURL search function, and emit the namespace bitnami:purl? If it's not time to add a new search type, which search type should these be added to?

The existing search.By* things are ByPackageLanguage, ByPackageDistro, and ByPackageCPE. Bitnami's data doesn't seem to fit well in any of those buckets, and I think searching by PURL directly is a capability we want anyway.