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

Uploaded Source

Built Distribution

nvdutils-2.3.3-py3-none-any.whl (27.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for nvdutils-2.3.3.tar.gz
Algorithm Hash digest
SHA256 cba92c326d9c6e15c0411417bde96a2c7507de659b179cc0bc3b2063992a3892
MD5 3f0c52f720209d7f604e1eaea113f755
BLAKE2b-256 364b9ef0867a3442e86e69bb9f2106473f47330c9ec082e533a58ab99364b40f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nvdutils-2.3.3-py3-none-any.whl
  • Upload date:
  • Size: 27.6 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.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 86369d9ee70e053b8074c4779a5aef05db9603e1b55a3fabff2168bbe6709113
MD5 ee4b878e95f1f4dc593ed5fc9bbf0c6c
BLAKE2b-256 6c82a40ef2b860d189bbd928f31cf7d21610d1914cc0d68078441fa5da7c7912

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