Skip to main content

National Vulnerability Database CPE/CVE API Library

Project description

NVDLib

A simple Nist NVD API wrapper library

Nvdlib allows you to interface with the NIST National Vulnerability Database and pull vulnerabilities (CVEs) and Common Platform Enumeration (CPEs) into easily accessible objects.

Features

  • Search the NVD for CVEs using all parameters allowed by the NVD API. Including search criteria such as CVE publish and modification date, keywords, severity, score, or CPE name.
  • Search CPE names by keywords, CPE match strings, or modification dates. Then pull the CVE ID's that are relevant to those CPEs.
  • Retrieve details on individual CVEs, their relevant CPE names, and more.

Install

$ pip install nvdlib

Demo - Get the first 5 vulnerabilities for a specific CPE, display their score and the version used.

from nvdlib import nvdlib

# Perform the search with the known cpeName
cves = nvdlib.searchCVE(cpeName='cpe:2.3:a:apache:tomcat:7.0.67:*:*:*:*:*:*:*', limit = 5)

# Pull data from the CVE object.
for eachCVE in cves:
    print(eachCVE.id + ' - ' + eachCVE.score[0] + ' - ' + eachCVE.score[1])

Documentation

Coming Soon TM

More information

This is my first attempt at creating a library while utilizing all my Python experience from classes to functions.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nvdlib-0.4.0.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nvdlib-0.4.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file nvdlib-0.4.0.tar.gz.

File metadata

  • Download URL: nvdlib-0.4.0.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.0

File hashes

Hashes for nvdlib-0.4.0.tar.gz
Algorithm Hash digest
SHA256 ddef00534d677038155ef33f08eb9557cb357f253e22a870808bb246a9fe9045
MD5 64c8af8ca0445949ed968e8c47c6f643
BLAKE2b-256 a258f456b22824a9b012e4b1e402ee680f3a6dda10053f147a37a8510205f890

See more details on using hashes here.

File details

Details for the file nvdlib-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: nvdlib-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.0

File hashes

Hashes for nvdlib-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f0595af37b5bbd44d099a4fdb3bbde91f04b3d5e050f55c15d9ed6cdb4cca680
MD5 4df5bc9a6750982806501c9897efc894
BLAKE2b-256 70ce4da44105c40537a0efc841ef69e94c86130968160b6c08d9cab946d6983b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page