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.2.2.tar.gz
(20.9 kB
view details)
Built Distribution
nvdutils-2.2.2-py3-none-any.whl
(26.1 kB
view details)
File details
Details for the file nvdutils-2.2.2.tar.gz
.
File metadata
- Download URL: nvdutils-2.2.2.tar.gz
- Upload date:
- Size: 20.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bb3c6988ff6d6d4a3b741c48d150310bbd87283693de63b681d13bf4e5eb6db |
|
MD5 | b43ffd40c68cd39481f4e7c4b538dc3b |
|
BLAKE2b-256 | 52d5380ad945c1e040e3e5f4085825aa4aaa09a6de32c555bd45770456fb66bf |
File details
Details for the file nvdutils-2.2.2-py3-none-any.whl
.
File metadata
- Download URL: nvdutils-2.2.2-py3-none-any.whl
- Upload date:
- Size: 26.1 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 | 8306774da90c0f20b53690eeff063cb43c156b2bccee0e23b7e4f47f7b329d96 |
|
MD5 | 748d2ad65963806b870b26bc69815c5e |
|
BLAKE2b-256 | e23e966655c85d0cea5f3f465a92649025ea3d820f0d80235c1a9bc5928e4ff0 |