cvedb
A local CVE db repository
- Clone the cvelistV5 github repo
- loop through all CVEs
- CVE instance will be created based on CVE json file
- If the CVE json file contains metrics entry, create Metrics for the CVE
- Otherwise, if
--create-metricsargument is given, fetch metrics from NVD and create Metrics for the CVE
- CVE instance will be created based on CVE json file
- store in local database (python pickle)
Installation
Use pip command to install:
pip install py-cvedb
Usage
Command Line
- Use
cvedb --cloneto clone the cvelistV5 repo and init the local data- This action will first check if cvelistV5 repo is cloned.
- If not cloned yet, clone the repo first
- Then, loop through all CVE JSON file and create CVE instance
- The local database will be dumped to a compressed pickle file located in
$HOME/.config/cvedb/cvedb.pickle
- This action will first check if cvelistV5 repo is cloned.
- Use
cvedb --updateto check if there contains update from cvelistV5 repo- If contains detected
- Firstly, get all updated file
- Re-create CVE instance and do update or insert to local database
- If contains detected
- The cvelistV5 repo take several minutes to clone, actual time taken is affected by Internet connection
Search
Use cvedb -s or cvedb --search to search from database
- using
-yor--yearto get CVEs in a specific year- Adding
-por--patternto filter out CVE records. Give a string start will-for negative match.- If given
injection -databasewill get all records containsinjectionbut notdatabase.
- If given
- Adding
- using
-ior--idto get CVE with a specific CVE id
Use it in python project
>>> from cvedb import cvedb
>>>
>>> cvedb = cvedb.init_db()
>>> type(cvedb) # <class 'cvedb.cvedb.CVEdb'>
Metadata
Release files for py-cvedb 0.0.5.post2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| py-cvedb-0.0.5.post2.tar.gz | 10.7 kB | Without provenance | Details for py-cvedb-0.0.5.post2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| py_cvedb-0.0.5.post2-py3-none-any.whl | Python 3 | none | any | Details for py_cvedb-0.0.5.post2-py3-none-any.whl |
Total release size: 23.1 kB
Release files / py-cvedb-0.0.5.post2.tar.gz
| Download URL | py-cvedb-0.0.5.post2.tar.gz |
|---|---|
| Size | 10.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fa5a248d02e629e1a9730b6920eca6912b517703a98b16a126e2e6b3d4416e75
|
|
BLAKE2b-256 checksum How to use checksums |
601f36139bb1d9552c37e4256a607ff3954030e3a0ce9dfc82004ad8dad60041
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Release files / py_cvedb-0.0.5.post2-py3-none-any.whl
| Download URL | py_cvedb-0.0.5.post2-py3-none-any.whl |
|---|---|
| Size | 12.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f6fbfea74ac733b819fce004e4fb32b914e36dd5ea978f54ddcac7f9fe91011e
|
|
BLAKE2b-256 checksum How to use checksums |
9708abaca6b45ac9a9fe12c0936ae4e1bb07e52ad4359e0cc8bd1c8a669c2ef9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Security for py-cvedb 0.0.5.post2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.