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
Release history Release notifications | RSS feed
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.3.2.tar.gz
(22.0 kB
view details)
Built Distribution
nvdutils-2.3.2-py3-none-any.whl
(27.6 kB
view details)
File details
Details for the file nvdutils-2.3.2.tar.gz
.
File metadata
- Download URL: nvdutils-2.3.2.tar.gz
- Upload date:
- Size: 22.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f36a5ef134cb0be3b1efd58d4564f78a4b602c0469d01be92e8b5a448499b2d |
|
MD5 | 8997696b999ebeff0dc0b599d464116c |
|
BLAKE2b-256 | 25a358f4f6ba0c10f10d866a90f167e61800d3cf835222d5610d07dba7e6f377 |
File details
Details for the file nvdutils-2.3.2-py3-none-any.whl
.
File metadata
- Download URL: nvdutils-2.3.2-py3-none-any.whl
- Upload date:
- Size: 27.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbe4bdf60ebe97addae78c1a26ea3ebd5559d60f19388efdc1d7091830a4112b |
|
MD5 | f8e7638b0b783da9b2a22e5db7b993c2 |
|
BLAKE2b-256 | 26bd834c3d388cee068659d153d241633e114f5947c0ad560824245debadbf9d |