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

Uploaded Source

Built Distribution

nvdutils-2.1.2-py3-none-any.whl (25.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nvdutils-2.1.2.tar.gz
  • Upload date:
  • Size: 20.4 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.2.tar.gz
Algorithm Hash digest
SHA256 edd6cff56358d7234b2b25ba99b5df262b039dd897fcbca18a8107b1b261d8c9
MD5 422d8da442615e811b9b4366621abf16
BLAKE2b-256 9b3386dc1e5cc422ba05f49a0f5449159379b0d1aed2f4c2fa0cef6367e18cf3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nvdutils-2.1.2-py3-none-any.whl
  • Upload date:
  • Size: 25.7 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1bf19dc506aa3f4350203e38489b6b494903dfc63413db17f10a9c1646019c97
MD5 a639d3bf8c8c245eedfa7dcb75a5691c
BLAKE2b-256 f6b865a99bd14261949233aec68e069a476780fe5061896e512ff094073508c9

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