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.2.1.tar.gz (20.8 kB view details)

Uploaded Source

Built Distribution

nvdutils-2.2.1-py3-none-any.whl (26.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for nvdutils-2.2.1.tar.gz
Algorithm Hash digest
SHA256 44c72b6cb3e446311730f54a5d42a03c752679a191e279bdcbfd3371033e8bd1
MD5 73ebfcf9ba5b0eed697a16e1c5439c71
BLAKE2b-256 27e81899ce191181082cc6f6a1ad0b2dfd7428905efdd38b5266e2930be79351

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nvdutils-2.2.1-py3-none-any.whl
  • Upload date:
  • Size: 26.1 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.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ec164ca82dea8cd8c6a3b4989ae1743280f024903da7534bacc92705d53d9c4c
MD5 5e1211f3200e5e6e4817430e18abad5a
BLAKE2b-256 de4a218f5bae9f93ac590f6f9aad610e2073db307322663d4e0a9a35f9aab64f

See more details on using hashes here.

Supported by

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