Giter VIP home page Giter VIP logo

epss_api_demo's Introduction

Proof of Concept for FIRST.org EPSS Score API

Description

FIRST (Forum of Internet Response and Security Teams) provides a predictive scoring system for CVEs called the Exploit Prediction Scoring System. This threat intelligence value allows users to prioritize CVE remediation with an evidence-based observation model predicting the likelihood of CVE exploit within the next 30 days.

Probabilities and Percentiles

The EPSS consists of two components:

  • probability score - the likelihood that this CVE is exploited within the next 30 days; global raw score
  • percentile - in what percentile among all known CVEs does this probability reside; local relative score

See EPSS - Probability, Percentile, and Binning for more information.

Usage

The tool is run as $ python epss.py and provides a prompt:

Enter a CVE identifier (CVE-YYYY-XXXXX) or press ENTER to get today's CVEs:

Specific CVE

If the user provides a CVE identifier (e.g. CVE-2020-9491), the script invokes the FIRST EPSS API (https://api.first.org/data/v1/epss) via GET HTTP request and displays the

Retrieving EPSS score for CVE-2020-9491: https://api.first.org/data/v1/epss?cve=CVE-2020-9491
Response: {'status': 'OK', 'status-code': 200, 'version': '1.0', 'access': 'public', 'total': 1, 'offset': 0, 'limit': 100, 'data': [{'cve': 'CVE-2020-9491', 'epss': '0.009540000', 'percentile': '0.356180000', 'date': '2023-01-12'}]}
EPSS score for CVE-2020-9491: 0.954%

Today's CVEs

If the user does not provide any input, the script invokes the FIRST EPSS API (https://api.first.org/data/v1/epss) via GET HTTP request and displays the 100 most recently published CVEs as of today with the accompanying EPSS probability and percentile scores.

Retrieving CVES for 2023-01-12: https://api.first.org/data/v1/epss?date=2023-01-12
Response: {'status': 'OK', 'status-code': 200, 'version': '1.0', 'access': 'public', 'total': 192993, 'offset': 0, 'limit': 100, 'data': [{'cve': 'CVE-2023-23455', 'epss': '0.008900000', 'percentile': '0.296850000', 'date': '2023-01-12'}, {'cve': 'CVE-2023-23454', 'epss': '0.008900000', 'percentile': '0.296850000', 'date': '2023-01-12'}, ...]}
Retrieved 100 CVEs for 2023-01-12
...
CVE: CVE-2023-22622 | EPSS: 2.76% | Percentile:  82%
CVE: CVE-2023-22551 | EPSS: 1.05% | Percentile:  51%
CVE: CVE-2023-22492 | EPSS: 0.89% | Percentile:  30%
CVE: CVE-2023-22487 | EPSS: 9.03% | Percentile:  94%
CVE: CVE-2023-22479 | EPSS: 0.89% | Percentile:  27%
CVE: CVE-2023-22477 | EPSS: 0.95% | Percentile:  36%
...

Future Enhancements

  • There is also code which retrieves the 100 "most dangerous" CVES (i.e. EPSS percentile > 95%, ordered descending) but it is not invocable from the current prompt
  • Adding additional context from the NIST NVD database
  • Searching for CVEs by CPE or CVSS v3.1 metrics vector

epss_api_demo's People

Contributors

alopresto6m avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.