Skip to content

Add CVE_Exploitability analyzer (CISA KEV + FIRST EPSS) for CVE observables - #3802

Merged
mlodic merged 1 commit into
intelowlproject:developfrom
DevamShah:analyzer/cve-exploitability-kev-epss
Jun 23, 2026
Merged

mlodic merged 1 commit into
intelowlproject:developfrom
DevamShah:analyzer/cve-exploitability-kev-epss

Conversation

@DevamShah

Copy link
Copy Markdown
Contributor

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_CVE and Vulners analyzers (same generic/CVE-regex observable shape) and is added to the FREE_TO_USE_ANALYZERS playbook since it needs no API key.

Summary

A new ObservableAnalyzer that, 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:

  • CISA KEV — the U.S. authoritative list of vulnerabilities with confirmed in-the-wild exploitation, including whether the CVE is tied to known ransomware campaigns and the federal remediation due date.
  • FIRST EPSS — a daily-updated probability (0–1) that a CVE will be exploited in the next 30 days, plus its percentile rank across all scored CVEs.

Change

  • New analyzer api_app/analyzers_manager/observable_analyzers/cve_exploitability.py (CVEExploitability), modeled on the existing nvd_cve.py:
    • Validates the observable against the same CVE regex (^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 returns epss_score and epss_percentile as floats (with epss_date).
    • Exposes url (the EPSS endpoint) for IntelOwl HEAD health checks, uses request timeouts, and wraps network failures in AnalyzerRunException.
  • Data migration analyzers_manager/0193_analyzer_config_cve_exploitability.py registers the AnalyzerConfig (type observable, observable_supported: ["generic"], maximum_tlp: AMBER), mirroring the NVD_CVE registration migration. No parameters/secrets are required.
  • Data migration playbooks_manager/0067_add_cve_exploitability_to_free_to_use.py adds the analyzer to the FREE_TO_USE_ANALYZERS playbook (it requires no API key).
  • Unit test tests/.../observable_analyzers/test_cve_exploitability.py with 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:

  • CISA KEV is the authoritative catalog of CVEs with confirmed active exploitation and underpins CISA BOD 22-01 remediation timelines; surfacing knownRansomwareCampaignUse maps directly to ransomware-driven risk.
  • FIRST EPSS provides a calibrated, empirically-derived exploitation probability, the recommended complement to CVSS (severity) for risk-based vulnerability management.
  • Combining KEV membership (binary, authoritative) with EPSS (probabilistic, continuous) lets responders separate the exploited / likely-to-be-exploited tail from the long list of low-probability CVEs — reducing alert fatigue and focusing remediation where in-the-wild exploitation is real.
  • Input is strictly validated against the CVE regex before egress, and both endpoints are key-less GETs over TLS with explicit timeouts, so the analyzer adds no credential handling or new dependency surface.

Testing / validation

Validated against a live IntelOwl stack (Postgres + the project's develop code) — not just static checks:

  • python manage.py makemigrations --check --dry-run reports no missing migrations for analyzers_manager / playbooks_manager.
  • python manage.py migrate applies cleanly end-to-end, including analyzers_manager.0193_analyzer_config_cve_exploitability and playbooks_manager.0067_add_cve_exploitability_to_free_to_use (the AnalyzerConfig is registered and linked to FREE_TO_USE_ANALYZERS).
  • python manage.py test tests.api_app.analyzers_manager.unit_tests.observable_analyzers.test_cve_exploitability → all tests pass (including the inherited test_analyzer_on_supported_observables, which resolves the new AnalyzerConfig at class load):
    • positive: in_kev=True, kev_date, ransomware_use="Known", epss_score≈0.94426, epss_percentile≈0.99999;
    • negative: all signals null when the CVE is absent from KEV and EPSS;
    • invalid format raises AnalyzerRunException without issuing any network request.
  • ruff check and ruff format --check (ruff 0.14.10, the repo's pinned version) pass on the analyzer and test — 0 errors.

Type of change

  • New feature (non-breaking change which adds functionality).

Checklist

  • I have read and understood the rules about how to Contribute to this project.
  • The pull request is for the branch develop.
  • A new plugin (analyzer) was added:
    • I followed the "How to create a Plugin" documentation.
    • The docs repo (usage.md) update will be submitted as a linked follow-up PR.
    • The plugin requires no additional optional configuration (no parameters/secrets).
    • The analyzer configuration is added as a data migration mirroring NVD_CVE, produced to match the dumpplugin output format.
    • The analyzer is free (no API key) and has been added to the FREE_TO_USE_ANALYZERS playbook.
    • If the plugin interacts with an external service, I created a url attribute (EPSS endpoint) for Health Checks.
    • I created a unittest for it and mocked all external calls — no real calls are made while testing.
    • I added a representative raw JSON sample (KEV + EPSS) to the unittest mock responses.
    • No DataModel mapping was added, consistent with the existing NVD_CVE/Vulners analyzers; happy to add one if maintainers prefer.
  • I inserted the copyright banner at the start of the new files.
  • No new libraries were added (uses the existing requests dependency only).
  • Ruff lint and format give 0 errors on the touched files.
  • I have added tests for the feature. They mock all external calls.
  • I have reviewed and verified the LLM-assisted portions of this PR. Disclosure: an LLM was used to draft boilerplate and tests; all code was reviewed, validated, and lint/format-checked by me, and the full migrate + targeted test run was executed against a live Postgres-backed IntelOwl stack.

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

mlodic commented Jun 23, 2026

Copy link
Copy Markdown
Member

the PR seems fine, I'll merge it. Next time please open an issue before opening a PR

@mlodic
mlodic merged commit bf49541 into intelowlproject:develop Jun 23, 2026
7 checks passed
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.

2 participants