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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: nvdutils-2.3.0.tar.gz
  • Upload date:
  • Size: 21.9 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.0.tar.gz
Algorithm Hash digest
SHA256 047cc25f58d6c9850609b4be89492ec0755df825e4900005a03549a6a5379a88
MD5 37a3638ca5c5f14e1509b61d39b3d1f8
BLAKE2b-256 4fe6ff9e68075aa1152ccbdcc012f3e79c377cd6e1826e18a028836a31fcb30f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nvdutils-2.3.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f275ca9d4b90e3b04fd7d9fc9b5a6fa74d3e6c99416d8d14436ad1e27fc1cf00
MD5 02ccd35fc1ea2c0ebe174471d0ad89d8
BLAKE2b-256 15f82854f1e27e4dfe3352eca3bc0302bd189288ec469cbe8bbb0e0c1890b19f

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