Description
- Expanding out from feat: "language" parsers for Linux packages #2621
.debs have a set of control fields which contain a bunch of information that looks awfully like the {vendor, product, version}
tuplet we use for NVD lookups:
https://www.debian.org/doc/debian-policy/ch-controlfields.html
I think it should be possible to read these files similar to the way we read package lists.
For NVD lookup, we would want to intentionally build in some special cases for things like python files which are all packaged with the prefix python3-
and so on rather than just assuming the name is correct, and maybe trying to do some nice parsing of the url included to see if that can be used to better guess the vendor
.
The release-monitoring.org website may help you with names across distros. e.g. https://release-monitoring.org/project/3779/
Anyone working on this:
- The language parsers are in the cve_bin_tool/parsers directory.
- There's a readme explaining what you need to make a new parser: https://github.com/intel/cve-bin-tool/blob/main/cve_bin_tool/parsers/README.md
- Java Parser for example: https://github.com/intel/cve-bin-tool/blob/main/cve_bin_tool/parsers/java.py