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.0.tar.gz
(20.7 kB
view details)
Built Distribution
nvdutils-2.2.0-py3-none-any.whl
(26.0 kB
view details)
File details
Details for the file nvdutils-2.2.0.tar.gz
.
File metadata
- Download URL: nvdutils-2.2.0.tar.gz
- Upload date:
- Size: 20.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ae073f489dc06a86f84f606a1e30a396035a722a846072597b0fb0d7b55a156 |
|
MD5 | db617e88d68d64fba5ad511fb7a6e566 |
|
BLAKE2b-256 | 8aedb503272d17ca8f8863159f4d94e4cd764bfb88d9b3de729181638b3820f7 |
File details
Details for the file nvdutils-2.2.0-py3-none-any.whl
.
File metadata
- Download URL: nvdutils-2.2.0-py3-none-any.whl
- Upload date:
- Size: 26.0 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 | 9a0aad6cddf44f7d66722899b0033b57a8777bea6d64a28b93ebca2f5325b65f |
|
MD5 | 41ba1a8ad401fd969dbf72d8f7843ad4 |
|
BLAKE2b-256 | a177c4ae0bb250520a37fe9221987d9237ae306f31b6ffd0b8624643e11bd66b |