kev

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KEVURL         = "https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json"
	DefaultTimeout = 15 * time.Second
	CacheTTL       = 24 * time.Hour
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient() *Client

func (*Client) Count

func (c *Client) Count() int

func (*Client) IsKEV

func (c *Client) IsKEV(ctx context.Context, cveID string) (bool, Entry, error)

type Enricher

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

func NewEnricher

func NewEnricher(client *Client) *Enricher

func (*Enricher) Enrich

func (e *Enricher) Enrich(ctx context.Context, vulns []models.Vulnerability) (int, error)

Enrich updates vulnerabilities in-place using pointer access

func (*Enricher) EnrichConsensusResult

func (e *Enricher) EnrichConsensusResult(ctx context.Context, result *models.ConsensusResult) error

type Entry

type Entry struct {
	CVEID             string `json:"cveID"`
	VendorProject     string `json:"vendorProject"`
	Product           string `json:"product"`
	VulnerabilityName string `json:"vulnerabilityName"`
	DateAdded         string `json:"dateAdded"`
	ShortDescription  string `json:"shortDescription"`
	RequiredAction    string `json:"requiredAction"`
	DueDate           string `json:"dueDate"`
	Notes             string `json:"notes"`
}

Jump to

Keyboard shortcuts

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