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.4.tar.gz
(22.0 kB
view details)
Built Distribution
nvdutils-2.3.4-py3-none-any.whl
(27.6 kB
view details)
File details
Details for the file nvdutils-2.3.4.tar.gz
.
File metadata
- Download URL: nvdutils-2.3.4.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 | c44e0a28964da4b23b0edc6d01be06593aee247f2ad2903dbbba694a59880946 |
|
MD5 | 8b8ae917e0e4b54ca5763616730b827e |
|
BLAKE2b-256 | 11bdcf3e5e4ae1abc05ae2fd2986ffd53645b4944ea9d68a6646bbf5868d4bc4 |
File details
Details for the file nvdutils-2.3.4-py3-none-any.whl
.
File metadata
- Download URL: nvdutils-2.3.4-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 | 7d7598b1f1ade855dbd9ae51ac43daf8c3f2cac906250497f5d40faa8c871e97 |
|
MD5 | ffe98c770641f3cf62132bf1aa59bc50 |
|
BLAKE2b-256 | 373258d2d4109478f87040e731dc690ed65ccbdcc2cc2f92a954946626e94bed |