Repository navigation
Add CVE_Exploitability analyzer (CISA KEV + FIRST EPSS) for CVE observables - #3802
Merged
mlodic merged 1 commit intoJun 23, 2026
Conversation
Add a free, key-less ObservableAnalyzer that enriches a CVE observable with real-world exploitation signals instead of CVSS severity alone: - CISA Known Exploited Vulnerabilities (KEV) catalog membership, date added, and known ransomware campaign use. - FIRST.org EPSS score and percentile (probability of exploitation in the wild over the next 30 days). Registers the AnalyzerConfig via a data migration mirroring NVD_CVE, adds it to the FREE_TO_USE_ANALYZERS playbook, and includes a unit test with all external calls mocked. No new dependencies (uses requests) and no API key. Signed-off-by: Devam Shah <devamshah91@gmail.com>
mlodic
approved these changes
Jun 23, 2026
Member
|
the PR seems fine, I'll merge it. Next time please open an issue before opening a PR |
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.
Description
This PR adds a new free, key-less observable analyzer, CVE_Exploitability, that enriches a CVE observable with real-world exploitation signals rather than CVSS severity alone. For a given CVE it returns CISA KEV catalog membership and FIRST.org EPSS scoring, so analysts and playbooks can triage on likelihood of exploitation instead of theoretical severity.
It pairs cleanly with the existing
NVD_CVEandVulnersanalyzers (samegeneric/CVE-regex observable shape) and is added to theFREE_TO_USE_ANALYZERSplaybook since it needs no API key.Summary
A new
ObservableAnalyzerthat, for a CVE observable, queries the CISA Known Exploited Vulnerabilities (KEV) catalog and the FIRST.org EPSS API and returns{in_kev, kev_date, ransomware_use, epss_score, epss_percentile}(plus KEV context fields), enabling exploitation-aware CVE prioritization with no API key.Problem / motivation
IntelOwl can already resolve CVE metadata (
NVD_CVE) and search vendor advisories (Vulners), but it exposes no signal for whether a CVE is actually being exploited in the wild. CVSS base score is a poor prioritization signal on its own: the large majority of published CVEs are never exploited, while a small subset under active, often ransomware-linked, exploitation is what actually drives incidents. Two authoritative, free data sources fill this gap and are widely used by detection and response teams:Change
api_app/analyzers_manager/observable_analyzers/cve_exploitability.py(CVEExploitability), modeled on the existingnvd_cve.py:^CVE-\d{4}-\d{4,7}$, case-insensitive) before any network call._query_kev()fetches the free CISA KEV JSON catalog and returns membership,dateAdded,knownRansomwareCampaignUse, and KEV context (vendor/product/name/required action/due date)._query_epss()fetches the FIRST EPSS API for the CVE and returnsepss_scoreandepss_percentileas floats (withepss_date).url(the EPSS endpoint) for IntelOwl HEAD health checks, uses request timeouts, and wraps network failures inAnalyzerRunException.analyzers_manager/0193_analyzer_config_cve_exploitability.pyregisters theAnalyzerConfig(typeobservable,observable_supported: ["generic"],maximum_tlp: AMBER), mirroring theNVD_CVEregistration migration. No parameters/secrets are required.playbooks_manager/0067_add_cve_exploitability_to_free_to_use.pyadds the analyzer to theFREE_TO_USE_ANALYZERSplaybook (it requires no API key).tests/.../observable_analyzers/test_cve_exploitability.pywith all external calls mocked: a KEV+EPSS positive case (Log4Shell,CVE-2021-44228), a not-in-KEV / no-EPSS negative case, and an invalid-format case that must raise before any network call.Security rationale
This is exploitation-intelligence enrichment framed for prioritization and response:
knownRansomwareCampaignUsemaps directly to ransomware-driven risk.Testing / validation
Validated against a live IntelOwl stack (Postgres + the project's
developcode) — not just static checks:python manage.py makemigrations --check --dry-runreports no missing migrations foranalyzers_manager/playbooks_manager.python manage.py migrateapplies cleanly end-to-end, includinganalyzers_manager.0193_analyzer_config_cve_exploitabilityandplaybooks_manager.0067_add_cve_exploitability_to_free_to_use(theAnalyzerConfigis registered and linked toFREE_TO_USE_ANALYZERS).python manage.py test tests.api_app.analyzers_manager.unit_tests.observable_analyzers.test_cve_exploitability→ all tests pass (including the inheritedtest_analyzer_on_supported_observables, which resolves the newAnalyzerConfigat class load):in_kev=True,kev_date,ransomware_use="Known",epss_score≈0.94426,epss_percentile≈0.99999;AnalyzerRunExceptionwithout issuing any network request.ruff checkandruff format --check(ruff 0.14.10, the repo's pinned version) pass on the analyzer and test — 0 errors.Type of change
Checklist
develop.docsrepo (usage.md) update will be submitted as a linked follow-up PR.NVD_CVE, produced to match thedumppluginoutput format.FREE_TO_USE_ANALYZERSplaybook.urlattribute (EPSS endpoint) for Health Checks.DataModelmapping was added, consistent with the existingNVD_CVE/Vulnersanalyzers; happy to add one if maintainers prefer.requestsdependency only).Rufflint and format give 0 errors on the touched files.