Skip to main content

A package for parsing, representing, and filtering NVD data.

Project description

nvdutils

A package for parsing, representing, and filtering NVD data.

Setup

$ mkdir ~/.nvdutils
$ cd ~/.nvdutils
# Data for the JSONFeedsLoader
$ git clone https://github.com/fkie-cad/nvd-json-data-feeds.git
# CNA list for the base CVEDataLoader
$ git clone https://github.com/epicosy/cna-list.git

Usage

    from nvdutils.core.loaders.json_loader import JSONFeedsLoader
    from nvdutils.types.options import CVEOptions

    cve_options = CVEOptions()
    cve_options.cwe_options.cwe_id = 'CWE-79'
    cve_options.cwe_options.has_cwe = True
    cve_options.cwe_options.in_secondary = False
    cve_options.cwe_options.is_single = True
    cve_options.cvss_options.has_v3 = True
    cve_options.config_options.is_single_vuln_product = True
    cve_options.desc_options.is_single_component = True
    cve_options.desc_options.is_single_vuln = True

    # https://github.com/fkie-cad/nvd-json-data-feeds
    loader = JSONFeedsLoader(data_path='/path/to/nvd-json-data-feeds', options=cve_options,
                             verbose=True)
    loader.load()
    print(len(loader))

    cve = JSONFeedsLoader.load_cve('/path/to/CVE-2019-0001.json')
    print(cve)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nvdutils-2.1.0.tar.gz (20.2 kB view details)

Uploaded Source

Built Distribution

nvdutils-2.1.0-py3-none-any.whl (25.5 kB view details)

Uploaded Python 3

File details

Details for the file nvdutils-2.1.0.tar.gz.

File metadata

  • Download URL: nvdutils-2.1.0.tar.gz
  • Upload date:
  • Size: 20.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.7

File hashes

Hashes for nvdutils-2.1.0.tar.gz
Algorithm Hash digest
SHA256 f5dd84de86a94d18ae44664e95e1fe4671ccd7dbe43697e4b07410dff83b20bb
MD5 17fdb901618941748efa78ee6f9a0d35
BLAKE2b-256 bfdebe70278913c138f578834c9d624dfcf5d75767e9b9637967e5245744e362

See more details on using hashes here.

File details

Details for the file nvdutils-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: nvdutils-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 25.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.7

File hashes

Hashes for nvdutils-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e7463f4e5ffdaef8f16c12df58d26b6561e9dabfefe633ed9db7299dbd355f16
MD5 5aa21713a7800e9925fb5401c1172193
BLAKE2b-256 d4149c312850941d32d99562049b53ba10dd8bec5e88e9edf5175adca66681b8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page