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

Uploaded Source

Built Distribution

nvdutils-2.1.3-py3-none-any.whl (25.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nvdutils-2.1.3.tar.gz
  • Upload date:
  • Size: 20.6 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.3.tar.gz
Algorithm Hash digest
SHA256 721300df4599283bb5b765b4046088d1e12b7bbce21fa2920a37366353610705
MD5 8d4c2d64673eaa01f5b57d9d4ddb7a9a
BLAKE2b-256 4076adf02f8c75ade48cea190a767e678f9f41efd8fa4e35def6022d282e3277

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nvdutils-2.1.3-py3-none-any.whl
  • Upload date:
  • Size: 25.8 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a4905e5f9909ec1a4e8953a7afd01438186b90997ef244c74d6e2c9cd2969c81
MD5 c15a40ca85a6ceb08f5f19df295d0f13
BLAKE2b-256 7792e5f8112126c703be288a680b421d1df319f203253d1e07812eddb4ba0b1c

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