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

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

Uploaded Source

Built Distribution

nvdutils-0.3.0-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for nvdutils-0.3.0.tar.gz
Algorithm Hash digest
SHA256 903a12587fd45e16239d57d90f5b0c3bebf1780002b63f86925223f7ab362f1f
MD5 225cf466488f1d3a3454b40e699f39fd
BLAKE2b-256 e83c1b23ebd62ef64a72654876e92b3061bc96f974b877dd34e1d05ac473a2f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nvdutils-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 16.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-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ee19a1dfe720928580db604cbffd87fef7ef40b391dad0c10f22f24d81389f3d
MD5 1bb573a63651c320d9ed5928ae7f0f02
BLAKE2b-256 76aad4319f47cc34756cc6982c0e401df92624bde7964f9693a77330a25bbb1b

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