Add OpenCVE analyzer#1458
Open
thunderstornX wants to merge 1 commit into
Open
Conversation
Enrich cve observables with OpenCVE data (CVSS metrics, CISA KEV status, EPSS score, CWE weaknesses and affected vendors/products) via the free OpenCVE API. A configurable base_url supports self-hosted instances. The only existing CVE analyzer (Vulners) is a commercial service. Closes TheHive-Project#1236
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an OpenCVE analyzer that enriches a
cveobservable using the free OpenCVE API. This addresses #1236: the only existing CVE-enrichment analyzer (Vulners) is a commercial service, whereas OpenCVE is free and can also be self-hosted.Closes #1236
What it returns
For a given CVE, the analyzer reports:
vendor$PRODUCT$productlist is split into readable vendors and products)Two taxonomies are produced:
OpenCVE:CVSS=<score>, level by severity (malicious if in CISA KEV or CVSS >= 9, suspicious if CVSS >= 4, otherwise info)OpenCVE:KEV=CISAwhen the CVE is in the CISA KEV catalogConfiguration
tokenbase_urlhttps://app.opencve.io/apiFiles
analyzers/OpenCVE/—OpenCVE.json,opencve_analyzer.py,requirements.txt,README.mdthehive-templates/OpenCVE_1_0/—long.html,short.htmlTesting
Tested live against the OpenCVE API:
CVE-2021-44228(Log4Shell): CVSS v3.1 = 10, CISA KEV present, EPSS 0.94 →OpenCVE:CVSS=10(malicious) +OpenCVE:KEV=CISA; 13 vendors and 177 products parsed.cvedata type → rejected with a clear error message.flake8clean.