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

Uploaded Source

Built Distribution

nvdutils-0.4.0-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nvdutils-0.4.0.tar.gz
  • Upload date:
  • Size: 16.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.4.0.tar.gz
Algorithm Hash digest
SHA256 ecd41cb2884ceaf38b05656a35a10fc725bbe8d7d1ba6d6b1cfd21e25ee582f7
MD5 3b870f90550b7726b270e6abba6121bd
BLAKE2b-256 dc4e92c39999e5b4ffaff027961a38d9ffe302cdfc1f795f352c54a627cbcc6b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nvdutils-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 20.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-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b456cd370d19bdf581eb0347dd38e6a08c019bbf19f071bec21b2d99a289b842
MD5 9035404f4b13851c77a4573f877954cd
BLAKE2b-256 2086ce81b4c801ea41a0bd2dff86a0a06d3bd02f39c8c51f48a7b9d3c6c6f87e

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