Git Product home page Git Product logo

cve-offline's Introduction

cve-offline

An easy to grep dump of the NVD database showing only; CVE-ID, CVSS Risk Score, and Summary.

Installation

Given size limits of GitHub I have had to drop the raw content from NIST which has multiple files that are over 100MBs in size. Therefore you can clone the entire repo using the command below:

git clone https://github.com/cornerpirate/cve-offline.git

Realistically you should just download the file 'cve-summary.csv'.

Either using your web browser or wget as shown:

wget https://raw.githubusercontent.com/cornerpirate/cve-offline/master/cve-summary.csv

The above will get you the only file you need.

If you want to download the source data from nist run the getfiles.sh command. This downloads the zip files, extracts them, and removes the .zip leaving only the .xml files.

If you then want to recreate the current cve-summary.csv file run the updatecsv.sh command.

Dependencies

If your python script gives this error:

ImportError: No module named lxml

Then you will want to install "lxml" which on Ubutnu at least is as simple as:

sudo apt-get install python-lxml

Format of CSV File

The data is comma seperated with the summary being encapsulated in double quotes. There is no header row in the file but the following table shows roughly how the data is formatted:

CVE-ID CVSS Risk Score Summary
CVE-XXXX-XXXX 0.0-10.0 "The risk score is CVSS v2.0, and ranges from 0 to 10"

Usage

If you are on Linux you can use "grep" to find information you need. For example if you want to look up one CVE ("CVE-2015-0599"):

grep -i "cve-2015-0599" cve-summary.csv
CVE-2015-0599,4.3,"The web interface in Cisco Integrated Management Controller in Cisco Unified Computing System (UCS) on C-Series Rack Servers does not properly restrict use of IFRAME elements, which makes it easier for remote attackers to conduct clickjacking attacks and unspecified other attacks via a crafted web site, related to a ""cross-frame scripting (XFS)"" issue, aka Bug ID CSCuf50138."

That will do you then.

On Windows you can use "findstr" for the same result using the command:

type cve-summary.csv | findstr /I "cve-2015-0599"

Note; I haven't tried the above but it should work.

cve-offline's People

Contributors

cornerpirate avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.