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.5.1.tar.gz
(23.7 kB
view details)
Built Distribution
nvdutils-2.5.1-py3-none-any.whl
(29.9 kB
view details)
File details
Details for the file nvdutils-2.5.1.tar.gz
.
File metadata
- Download URL: nvdutils-2.5.1.tar.gz
- Upload date:
- Size: 23.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 | 02bd61656ba42cc724064ab9098bfe9d6967ce82240a81fc8ceb2235dc816aad |
|
MD5 | 87561644c3b31fa78ddfbba75c88059e |
|
BLAKE2b-256 | e59d9e9363b71f15f19dbacfd8df64003dfddb397c27d683546d2d151c0bde50 |
File details
Details for the file nvdutils-2.5.1-py3-none-any.whl
.
File metadata
- Download URL: nvdutils-2.5.1-py3-none-any.whl
- Upload date:
- Size: 29.9 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 | b0f4988a48f5d54079dc25c3fab35e4018fbc57dfc9200d8ac56c9f031281f91 |
|
MD5 | f88f3e94867bdbd1f5be70d6c13eec26 |
|
BLAKE2b-256 | 70a5f564421f94b8d6a94c5fcaf1720a89d9528c5d03cc4d44c75a3e70f2610b |