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

Uploaded Source

Built Distribution

nvdutils-2.4.0-py3-none-any.whl (28.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nvdutils-2.4.0.tar.gz
  • Upload date:
  • Size: 22.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.4.0.tar.gz
Algorithm Hash digest
SHA256 a7e0e8cc63ba31757e962635b5cc0a210303cf6046b0d3e9c81920999f7ade0e
MD5 40f5d3e405a8db3d577f43e3618001b3
BLAKE2b-256 00df0e067ac6c4bb2b0a7d1065c694a915a14d6580d3badf8068733e87bb93ce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nvdutils-2.4.0-py3-none-any.whl
  • Upload date:
  • Size: 28.0 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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 efd895e2e8e1597aa8952d9314378a0c34d10c4ed1f903f279fbcb0e2686561b
MD5 d186dcf2a2b036ff77d4a49d376242d0
BLAKE2b-256 a1a59921ff8b2a24a8e6e9b17157e3f04f6fb351b3cfb36a03197cb50263718a

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