epss

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package epss implements the Exploit Prediction Scoring System provider.

Index

Constants

View Source
const (
	ProviderName  = "epss"
	SchemaName    = "epss"
	SchemaVersion = "1.0.0"
	Version       = 1

	DefaultTimeout = 2 * time.Minute
	URLTemplate    = "https://epss.cyentia.com/epss_scores-%s.csv.gz"
	DefaultDataset = "current"
)

Variables

This section is empty.

Functions

func Register

func Register()

Register adds the EPSS provider to the default registry.

Types

type EPSSRecord

type EPSSRecord struct {
	CVE        string  `json:"cve"`
	EPSS       float64 `json:"epss"`
	Percentile float64 `json:"percentile"`
	Date       string  `json:"date,omitempty"` // Added during processing
}

EPSSRecord represents a single EPSS score entry.

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

Provider implements the EPSS provider.

func NewProvider

func NewProvider(cfg provider.Config) (*Provider, error)

NewProvider creates a new EPSS provider.

func (*Provider) FetchAll

func (p *Provider) FetchAll(ctx context.Context) error

FetchAll downloads and processes the EPSS CSV.

func (*Provider) FetchIncremental

func (p *Provider) FetchIncremental(ctx context.Context, lastUpdated time.Time) error

FetchIncremental is not applicable for EPSS (always fetches full dataset). EPSS is a daily snapshot - there's no incremental API.

func (*Provider) MetadataPath

func (p *Provider) MetadataPath() string

MetadataPath returns the path to metadata.json.

func (*Provider) Name

func (p *Provider) Name() string

Name returns the provider identifier.

func (*Provider) ResultsPath

func (p *Provider) ResultsPath() string

ResultsPath returns the path to the SQLite database.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL