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-1.0.0.tar.gz
(21.2 kB
view details)
Built Distribution
nvdutils-1.0.0-py3-none-any.whl
(26.2 kB
view details)
File details
Details for the file nvdutils-1.0.0.tar.gz
.
File metadata
- Download URL: nvdutils-1.0.0.tar.gz
- Upload date:
- Size: 21.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 342250e95f0c57458ef4424bb6e4f3fe0acda10cb98433776b9da2f8d1d72e83 |
|
MD5 | e0a6f23387154c83d6ea711ecee27dc6 |
|
BLAKE2b-256 | 6ae59a6045f16b894c098309f06318e78396c4709f3f29e0d92fd6e6035b4448 |
File details
Details for the file nvdutils-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: nvdutils-1.0.0-py3-none-any.whl
- Upload date:
- Size: 26.2 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 | 0fe40d14111b3ca2c4f23f0893f2a1646a9a1c2a6df5469eb07ce59251869759 |
|
MD5 | a12023dd505e48b5fdcef13a5093bc53 |
|
BLAKE2b-256 | 289e02719d4d8d9614aa58afde9b64074feaa257793f154a2bf30151ffa246b8 |