Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Direct osv.dev and/or GHSA support #6540

Open
chadlwilson opened this issue Mar 22, 2024 · 3 comments
Open

Direct osv.dev and/or GHSA support #6540

chadlwilson opened this issue Mar 22, 2024 · 3 comments

Comments

@chadlwilson
Copy link
Contributor

chadlwilson commented Mar 22, 2024

Is your feature request related to a problem? Please describe.

Currently, the challenges with the NVD program are very much in people's minds (courtesy of @marcelstoer)

As a result of the NVD analysis delays, the utility of ODC for some language ecosystems has decreased very markedly for discovery of new vulnerabilities (for those where it supports only NVD + OSSIndex, especially Java where ODC is one of the few tools that are Gradle/Maven-aware enough to work on transitives without lockfiles (as required by osv-scanner & GitHub; but still uncommon in the Java ecosystem).

While we hope the NVD can get back on its feet, there still seems utility in evaluating how we could expand ODC to complement with alternate sources as risk mitigation, even where they are less "indepedent" than an NVD or OSSIndex analysis, and don't come with a maintainer-independent assessment of the CVSS base score.

#6039 has been raised focused on addressing the false positive problem with current CPE heuristics, however I felt it perhaps sensible to have a more "direct" report or opportunity for discussion.

Describe the solution you'd like

Support for use of the osv.dev database via database dumps, otherwise co-erced or interpreted into the ODC formats.

  • ideally with a re-orientation around both CPE and purl identifiers and ability to de-duplicate between them when grouping by "product" or library

Describe alternatives you've considered

Additional context

Is there perhaps any call-to-action / call-for-help the maintainers would like to communicate to the community? Personally I'm quite conscious that ODC also can feel at times like it might be similar to the NVD in this image, so am unsure how realistic this is.

I believe courtesy of both xkcd and someone from the NIST Support Open Letter

@marcelstoer
Copy link
Contributor

I don't want this to turn into a broad "let's use source X" discussion, but I feel that GSD should maybe be added to the list of alternatives.

@chadlwilson
Copy link
Contributor Author

Related to jeremylong/Open-Vulnerability-Project#70

@jeremylong
Copy link
Owner

I have been planning to move to a different data source for a while. Doing so would have many benefits. I haven't started this effort as it will be a non-trivial effort.

When selecting a data source the biggest concern is how the local DB can be easily updated. The OSV datadumps don't appear to have any index of what was updated recently - so you just have to download the entire thing when you want to update? Or am I missing something?

If we go with just the straight GHSA, the open-vulnerability-client already has the capability. Plus everything in GHSA has the equivalent of a PURL so there would be way fewer FP.

GSD is interesting, we'd have to basically git pull to update the local files and then process the new/updated items. However, this has the problem that many of the entries have the equivalent of a CPE, not a PURL. As such, we'd still end up with more fuzzy matching that results in FP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants