lunasec-io / lunasec

LunaSec - Dependency Security Scanner that automatically notifies you about vulnerabilities like Log4Shell or node-ipc in your Pull Requests and Builds. Protect yourself in 30 seconds with the LunaTrace GitHub App: https://github.com/marketplace/lunatrace-by-lunasec/
https://www.lunasec.io/
Other
1.44k stars 164 forks source link

Add CISA Known Vulnerabilities Ingester #1076

Closed freeqaz closed 1 year ago

freeqaz commented 1 year ago

This adds the ingester that downloads the latest CSV of the CISA Known Vulnerabilities, aka CVEs which are known to be exploited in the wild by attackers.

Tested this locally and there are only 10 vulnerabilities in our DB which we're missing in our DB, and they all seem to affect iOS devices only :)

You can test for all vulns not in the DB with this query:

-- Find all the CVEs that are not in the CISA list.
SELECT * FROM vulnerability.cisa_known_exploited_vulnerabilities cve
    WHERE NOT EXISTS (SELECT 1 FROM vulnerability.vulnerability v WHERE v.cisa_known_exploited_cve = cve.cve);

Screenshot from my IDE: Screenshot_2023-01-03_17-44-18