NOTE: This no longer works after MITRE deprecated the CVE dumps. Need to use NVD now which has a different set of feeds.
Shell script to generate some basics stats based on CVE nightly dump.
This uses the 'allitems.csv.gz' updated nightly by MITRE that contains a dump of CVE data. Using simple grep / wc, do yearly stats along with a few numbers for the overall dump. If you run this daily and track the data, you can start to see fun patterns and track CVE growth.
- The last line is commented out, but where you can mail the results out.
- Every year you will have to add new lines for the current year, or modify this to use a slick FOR loop based on
date
output etc.
Reference: http://cve.mitre.org/data/downloads/allitems.csv.gz