Skip to main content
https://badge.fury.io/py/epss-api.svg https://img.shields.io/pypi/dw/epss-api?style=flat https://github.com/kannkyo/epss-api/actions/workflows/python-ci.yml/badge.svg https://codecov.io/gh/kannkyo/epss-api/branch/main/graph/badge.svg?token=R40FT0KITO https://github.com/kannkyo/epss-api/actions/workflows/scorecards.yml/badge.svg

EPSS(Exploit Prediction Scoring System) API client.

EPSS is the one of famous vulnerability score developed by FIRST (the Forum of Incident Response and Security Teams).

EPSS’s definition:

The Exploit Prediction Scoring System (EPSS) is an open, data-driven effort for estimating the likelihood (probability) that a software vulnerability will be exploited in the wild. Our goal is to assist network defenders to better prioritize vulnerability remediation efforts. While other industry standards have been useful for capturing innate characteristics of a vulnerability and provide measures of severity, they are limited in their ability to assess threat. EPSS fills that gap because it uses current threat information from CVE and real-world exploit data. The EPSS model produces a probability score between 0 and 1 (0 and 100%). The higher the score, the greater the probability that a vulnerability will be exploited.

https://www.first.org/epss/

This package is most easiest and efficient EPSS api client.

Usage

EPSS has some methods.

>>> from epss_api import EPSS
>>>
>>> client = EPSS()

>>> print(client.scores()[0])
{'cve': 'CVE-1999-0013', 'epss': 0.00042, 'percentile': 0.05071}

>>> print(client.score('CVE-2024-0001'))
{'cve': 'CVE-2024-0001', 'epss': 0.00091, 'percentile': 0.4063}

>>> print(client.csv()[1])
cve,epss,percentile

>>> print(client.epss('CVE-2024-0001'))
0.00091

>>> print(client.epss_ge(0.50003)[0])
{'cve': 'CVE-2022-0651', 'epss': 0.50003, 'percentile': 0.97652}

>>> print(client.epss_gt(0.50003)[0])
{'cve': 'CVE-2018-0851', 'epss': 0.50036, 'percentile': 0.97653}

>>> print(client.epss_le(0.49982)[-1])
{'cve': 'CVE-2014-8074', 'epss': 0.49982, 'percentile': 0.97651}

>>> print(client.epss_lt(0.49982)[-1])
{'cve': 'CVE-2018-8011', 'epss': 0.49981, 'percentile': 0.97651}

>>> print(client.percentile('CVE-2024-0001'))
0.4063

>>> print(client.percentile_ge(0.5)[0])
{'cve': 'CVE-2019-5426', 'epss': 0.00137, 'percentile': 0.5}

>>> print(client.percentile_gt(0.5)[0])
{'cve': 'CVE-2021-43464', 'epss': 0.00137, 'percentile': 0.50004}

>>> print(client.percentile_le(0.5)[-1])
{'cve': 'CVE-2022-27777', 'epss': 0.00137, 'percentile': 0.5}

>>> print(client.percentile_lt(0.5)[-1])
{'cve': 'CVE-2021-1625', 'epss': 0.00137, 'percentile': 0.49999}

If you call either one method, EPSS client cache all CVE’s score in memory. After caching, you can get all data very fast.

Metadata

Release files for epss-api 1.3.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for epss-api 1.3.9
File Size Uploaded Provenance Actions
epss_api-1.3.9.tar.gz 9.1 kB Without provenance Details for epss_api-1.3.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for epss-api 1.3.9
File Interpreter ABI Platform Actions
epss_api-1.3.9-py3-none-any.whl Python 3 none any Details for epss_api-1.3.9-py3-none-any.whl

Total release size: 13.9 kB

Release files / epss_api-1.3.9.tar.gz

Download URL epss_api-1.3.9.tar.gz
Size 9.1 kB
Tags Source
SHA-256 checksum
How to use checksums
439f2d146617890e6a4d1c3f4d5f254013a007a14fa9a5a30c3fc307ed21cf60
BLAKE2b-256 checksum
How to use checksums
35dddd20595c98ef9f7a67767ad09e0df1ece01d1538b6eb2343b43020532894
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / epss_api-1.3.9-py3-none-any.whl

Download URL epss_api-1.3.9-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
be6ba6ea467b82b9226567b3da9fabddb10dc570da7e8a8f2782c28f4283cb39
BLAKE2b-256 checksum
How to use checksums
4ffbd58333f94b50d013a3d8333612799fbef090d42870ed0c06715a31f668c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Security for epss-api 1.3.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page