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.1.tar.gz
(22.0 kB
view details)
Built Distribution
nvdutils-2.3.1-py3-none-any.whl
(27.6 kB
view details)
File details
Details for the file nvdutils-2.3.1.tar.gz
.
File metadata
- Download URL: nvdutils-2.3.1.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 | 77869d493f5cde7b367ffe973058966111276df30717b0af7c5ceb53158678db |
|
MD5 | 4a8a5e2e2fae1e5286767d40931507f6 |
|
BLAKE2b-256 | 5cd2f2ebde5167f3ae6b34433a807437ebbc693963448501310a0b9d6aef0d8f |
File details
Details for the file nvdutils-2.3.1-py3-none-any.whl
.
File metadata
- Download URL: nvdutils-2.3.1-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 | 5f4cbe1616b79832ec52bae97b9d19c4b74bf811d3d9fe47819098ecabd5b6b3 |
|
MD5 | c794d5ef13a1128630e494fd2cbf57ed |
|
BLAKE2b-256 | 69125d260b02906d5439c972c197bc1399e45ed1c30c032cbcbe78101b9b1031 |