GitHub
ESC

epss.cr

A Crystal library for the Exploit Prediction Scoring System (EPSS) published by FIRST.

epss.cr covers the two surfaces EPSS is consumed through in practice:

Surface Source Module
REST API https://api.first.org/data/v1/epss EPSS::Client
Daily CSV feed https://epss.cyentia.com/epss_scores-YYYY-MM-DD.csv.gz EPSS::CSV

Highlights

Installation

Add the dependency to your shard.yml:

dependencies:
  epss:
    github: hahwul/epss.cr

Then run:

shards install

Quick Example

require "epss"

if score = EPSS.score("CVE-2022-27225")
  puts "EPSS=#{score.epss}"
  puts "Percentile=#{score.percentile}"
  puts "Band=#{score.band}"
end