epss-api


Nameepss-api JSON
Version 1.3.4 PyPI version JSON
download
home_pagehttps://github.com/kannkyo/epss-api
SummaryEPSS API Python Client
upload_time2024-12-11 11:58:59
maintainerNone
docs_urlNone
authorkannkyo
requires_python<4.0,>=3.8
licenseMIT
keywords epss security vulnerability
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            =================
EPSS API Client
=================

.. image:: https://badge.fury.io/py/epss-api.svg
    :target: https://badge.fury.io/py/epss-api

.. image:: https://img.shields.io/pypi/dw/epss-api?style=flat
    :target: https://pypistats.org/packages/epss-api

.. image:: https://github.com/kannkyo/epss-api/actions/workflows/python-ci.yml/badge.svg
    :target: https://github.com/kannkyo/epss-api/actions/workflows/python-ci.yml

.. image:: https://codecov.io/gh/kannkyo/epss-api/branch/main/graph/badge.svg?token=R40FT0KITO 
    :target: https://codecov.io/gh/kannkyo/epss-api

.. image:: https://github.com/kannkyo/epss-api/actions/workflows/scorecards.yml/badge.svg
    :target: https://github.com/kannkyo/epss-api/actions/workflows/scorecards.yml

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.

.. code-block:: python

    from epss_api import EPSS

    client = EPSS()

    value = client.scores()
    # value = [
    #   {'cve': 'CVE-2022-39952', 'epss': '0.09029', 'percentile': '0.94031'},
    #   {'cve': 'CVE-2023-0669', 'epss': '0.78437', 'percentile': '0.99452'},
    #  ...
    # ]

    value = client.epss_lt(0.5)
    # value = [
    #   {'cve': 'CVE-2022-39952', 'epss': '0.09029', 'percentile': '0.24031'},
    #   {'cve': 'CVE-2023-0669', 'epss': '0.18437', 'percentile': '0.19452'},
    #  ...
    # ]

    value = client.percentile_lt(0.5)
    # value = [
    #   {'cve': 'CVE-2022-39952', 'epss': '0.09029', 'percentile': '0.24031'},
    #   {'cve': 'CVE-2023-0669', 'epss': '0.78437', 'percentile': '0.19452'},
    #  ...
    # ]

    value = client.epss_gt(0.5)
    # value = [
    #   {'cve': 'CVE-2022-39952', 'epss': '0.59029', 'percentile': '0.94031'},
    #   {'cve': 'CVE-2023-0669', 'epss': '0.78437', 'percentile': '0.99452'},
    #  ...
    # ]

    value = client.percentile_gt(0.5)
    # value = [
    #   {'cve': 'CVE-2022-39952', 'epss': '0.59029', 'percentile': '0.94031'},
    #   {'cve': 'CVE-2023-0669', 'epss': '0.78437', 'percentile': '0.99452'},
    #  ...
    # ]

    value = client.score(cve_id='CVE-2022-0669')
    # value = {'cve': 'CVE-2022-39952', 'epss': 0.0095, 'percentile': 0.32069}

    value = client.epss(cve_id='CVE-2022-0669')
    # value == 0.0095

    value = client.percentile(cve_id='CVE-2022-0669')
    # value == 0.32069

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


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/kannkyo/epss-api",
    "name": "epss-api",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.8",
    "maintainer_email": null,
    "keywords": "EPSS, security, vulnerability",
    "author": "kannkyo",
    "author_email": "15080890+kannkyo@users.noreply.github.com",
    "download_url": "https://files.pythonhosted.org/packages/7e/a2/b5be5b3e8e9c41a034234c231e786f22abcb99b7821fb23c201367a5cce6/epss_api-1.3.4.tar.gz",
    "platform": null,
    "description": "=================\nEPSS API Client\n=================\n\n.. image:: https://badge.fury.io/py/epss-api.svg\n    :target: https://badge.fury.io/py/epss-api\n\n.. image:: https://img.shields.io/pypi/dw/epss-api?style=flat\n    :target: https://pypistats.org/packages/epss-api\n\n.. image:: https://github.com/kannkyo/epss-api/actions/workflows/python-ci.yml/badge.svg\n    :target: https://github.com/kannkyo/epss-api/actions/workflows/python-ci.yml\n\n.. image:: https://codecov.io/gh/kannkyo/epss-api/branch/main/graph/badge.svg?token=R40FT0KITO \n    :target: https://codecov.io/gh/kannkyo/epss-api\n\n.. image:: https://github.com/kannkyo/epss-api/actions/workflows/scorecards.yml/badge.svg\n    :target: https://github.com/kannkyo/epss-api/actions/workflows/scorecards.yml\n\nEPSS(Exploit Prediction Scoring System) API client.\n\nEPSS is the one of famous vulnerability score developed by FIRST (the Forum of Incident Response and Security Teams).\n\nEPSS's definition:\n\n    The Exploit Prediction Scoring System (EPSS) is an open, \n    data-driven effort for estimating the likelihood (probability) that a software vulnerability will be exploited in the wild. \n    Our goal is to assist network defenders to better prioritize vulnerability remediation efforts. \n    While other industry standards have been useful for capturing innate characteristics of a vulnerability and provide measures of severity, \n    they are limited in their ability to assess threat. \n    EPSS fills that gap because it uses current threat information from CVE and real-world exploit data. \n    The EPSS model produces a probability score between 0 and 1 (0 and 100%). \n    The higher the score, the greater the probability that a vulnerability will be exploited.\n\n    https://www.first.org/epss/\n\nThis package is most easiest and efficient EPSS api client.\n\nUsage\n=============\n\nEPSS has some methods.\n\n.. code-block:: python\n\n    from epss_api import EPSS\n\n    client = EPSS()\n\n    value = client.scores()\n    # value = [\n    #   {'cve': 'CVE-2022-39952', 'epss': '0.09029', 'percentile': '0.94031'},\n    #   {'cve': 'CVE-2023-0669', 'epss': '0.78437', 'percentile': '0.99452'},\n    #  ...\n    # ]\n\n    value = client.epss_lt(0.5)\n    # value = [\n    #   {'cve': 'CVE-2022-39952', 'epss': '0.09029', 'percentile': '0.24031'},\n    #   {'cve': 'CVE-2023-0669', 'epss': '0.18437', 'percentile': '0.19452'},\n    #  ...\n    # ]\n\n    value = client.percentile_lt(0.5)\n    # value = [\n    #   {'cve': 'CVE-2022-39952', 'epss': '0.09029', 'percentile': '0.24031'},\n    #   {'cve': 'CVE-2023-0669', 'epss': '0.78437', 'percentile': '0.19452'},\n    #  ...\n    # ]\n\n    value = client.epss_gt(0.5)\n    # value = [\n    #   {'cve': 'CVE-2022-39952', 'epss': '0.59029', 'percentile': '0.94031'},\n    #   {'cve': 'CVE-2023-0669', 'epss': '0.78437', 'percentile': '0.99452'},\n    #  ...\n    # ]\n\n    value = client.percentile_gt(0.5)\n    # value = [\n    #   {'cve': 'CVE-2022-39952', 'epss': '0.59029', 'percentile': '0.94031'},\n    #   {'cve': 'CVE-2023-0669', 'epss': '0.78437', 'percentile': '0.99452'},\n    #  ...\n    # ]\n\n    value = client.score(cve_id='CVE-2022-0669')\n    # value = {'cve': 'CVE-2022-39952', 'epss': 0.0095, 'percentile': 0.32069}\n\n    value = client.epss(cve_id='CVE-2022-0669')\n    # value == 0.0095\n\n    value = client.percentile(cve_id='CVE-2022-0669')\n    # value == 0.32069\n\nIf you call either one method, EPSS client cache all CVE's score in memory.\nAfter caching, you can get all data very fast.\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "EPSS API Python Client",
    "version": "1.3.4",
    "project_urls": {
        "Documentation": "https://github.com/kannkyo/epss-api",
        "Homepage": "https://github.com/kannkyo/epss-api",
        "Repository": "https://github.com/kannkyo/epss-api"
    },
    "split_keywords": [
        "epss",
        " security",
        " vulnerability"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7ca014449b581f6cf77b8c03d947d6cbeda16a7ffa1e1e9118430bc7ff8dffa6",
                "md5": "381cbd5d49b40e423c225d9b0a6d7fa3",
                "sha256": "474ab0f36c7c10a41eeb4abe25450f7b4148de85e11812057ce0691ab86626e3"
            },
            "downloads": -1,
            "filename": "epss_api-1.3.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "381cbd5d49b40e423c225d9b0a6d7fa3",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.8",
            "size": 8581,
            "upload_time": "2024-12-11T11:58:56",
            "upload_time_iso_8601": "2024-12-11T11:58:56.721941Z",
            "url": "https://files.pythonhosted.org/packages/7c/a0/14449b581f6cf77b8c03d947d6cbeda16a7ffa1e1e9118430bc7ff8dffa6/epss_api-1.3.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7ea2b5be5b3e8e9c41a034234c231e786f22abcb99b7821fb23c201367a5cce6",
                "md5": "7e6cb6ee043a66a4cecaa326fa47f70a",
                "sha256": "d00a09cf7650250f12936083fc5cd006522d653deb00f6dc0810efef1bbc058e"
            },
            "downloads": -1,
            "filename": "epss_api-1.3.4.tar.gz",
            "has_sig": false,
            "md5_digest": "7e6cb6ee043a66a4cecaa326fa47f70a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.8",
            "size": 8980,
            "upload_time": "2024-12-11T11:58:59",
            "upload_time_iso_8601": "2024-12-11T11:58:59.007592Z",
            "url": "https://files.pythonhosted.org/packages/7e/a2/b5be5b3e8e9c41a034234c231e786f22abcb99b7821fb23c201367a5cce6/epss_api-1.3.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-11 11:58:59",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "kannkyo",
    "github_project": "epss-api",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "epss-api"
}
        
Elapsed time: 0.60811s