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

Uploaded Source

Built Distribution

nvdutils-2.1.1-py3-none-any.whl (25.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nvdutils-2.1.1.tar.gz
  • Upload date:
  • Size: 20.2 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.1.tar.gz
Algorithm Hash digest
SHA256 dd94a62993b0fab60000e938a145be6335e767ad579f1d5376aed96755818c0a
MD5 97a1181829a927727ca29716d0a9ec0e
BLAKE2b-256 1ac3343aa80a4f7c058be2d4c6ed69348bbfe146cc214d5004772819e1b6ad83

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nvdutils-2.1.1-py3-none-any.whl
  • Upload date:
  • Size: 25.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.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e42bb64bd1d05db8150dc6f6e80b507022c01b18eb929f6a33ec2b57c4688397
MD5 2f15c5fe297fc81a26870c267ee16769
BLAKE2b-256 8d15fa0060a35d657a453a84e29d47109ca8f9170970143556ea5e217a097753

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