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

Rewrite NVD provider #27

Merged
merged 2 commits into from
Jan 4, 2023
Merged

Rewrite NVD provider #27

merged 2 commits into from
Jan 4, 2023

Conversation

wagoodman
Copy link
Contributor

@wagoodman wagoodman commented Jan 3, 2023

The existing NVD provider has a few issues:

  • the existing "data-feeds" source is deprecated and will be removed within 9 months https://nvd.nist.gov/vuln/data-feeds
  • the existing provider requires refactors to remove unnecessary CPE version expansion
  • the existing provider takes 20 minutes to run even when all data is cached

The new implementation:

  • uses the new V2 JSON API (https://nvd.nist.gov/developers/vulnerabilities)
  • does minimal (no) transforms on the incoming data
  • supports incremental updates up to 120 days of drift (longer periods cannot be implements due to a NIST API limitation)

Closes #11
Closes #9

@wagoodman wagoodman force-pushed the rewrite-nvd branch 6 times, most recently from ca65a46 to ac2ced5 Compare January 4, 2023 00:09
@wagoodman wagoodman marked this pull request as ready for review January 4, 2023 00:11
@wagoodman wagoodman enabled auto-merge (squash) January 4, 2023 16:38
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
@wagoodman wagoodman merged commit 770229f into main Jan 4, 2023
@wagoodman wagoodman deleted the rewrite-nvd branch January 4, 2023 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants