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

feat: add CVE, CPE and CWE from NVD Apis adapters #425

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

dpgaspar
Copy link

@dpgaspar dpgaspar commented Feb 8, 2024

Summary

New adapter proposal to support CVE, CPES and CWEs from NVD as a datasource.

Will consume 2 REST API endpoints from NVD, more details here: https://nvd.nist.gov/developers

for the CVES: https://nvd.nist.gov/developers/vulnerabilities
for the CPES: https://nvd.nist.gov/developers/products

Will allow for queries like (joining CVES and CWES):

SELECT 
  v.published_date,
  v.cve_id, 
  v.cwe_id, 
  v.cvss_score, 
  v.vendor,
  v.product,
  v.status,
  v.description, 
  w.description AS cwe_description,
  v.last_modified_date
FROM "cves://" AS v
LEFT JOIN "cwes://" AS w ON v.cwe_id = w.cwe_id
where v.vendor = "apache" and v.product = "superset"
Screenshot 2024-02-08 at 14 28 28

Still missing tests, tell me if this sounds interesting to you @betodealmeida, or if it makes sense to add it directly to shillelagh

Testing instructions

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

Successfully merging this pull request may close these issues.

1 participant