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

Uploaded Source

Built Distribution

nvdutils-2.0.0-py3-none-any.whl (25.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for nvdutils-2.0.0.tar.gz
Algorithm Hash digest
SHA256 20a4e348da9957236ccfaca1bf345dddfba3ece2560e5587bb55da32b051170f
MD5 61dd2e230bfe92ce94387b90b5d1e7f5
BLAKE2b-256 26c79308654bb0bb3049646f541c404bcdb95751d4b7d95f08901447c7acd49e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nvdutils-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 25.3 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.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7ad4f914264450d224dd0df0cf43b8ad2768e260405144db455b7b34b637297e
MD5 b3aa8550d734ed9e029617df3e15513e
BLAKE2b-256 9c3572c57c4f193272481d3bc9f5bbb7d18e384f12959bd3e1307c4d558c9ece

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