vulnerabilityrisk

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const ModelVersion = "risk-v1"

Variables

This section is empty.

Functions

func DeterministicID

func DeterministicID(tenantID, occurrenceID shared.ID, modelVersion, inputHash string) shared.ID

Types

type Assessment

type Assessment struct {
	TenantID             shared.ID
	ID                   shared.ID
	EngagementID         shared.ID
	OccurrenceID         shared.ID
	AdvisoryID           string
	ComponentFingerprint string
	AdvisoryRevision     int64
	Severity             shared.Severity
	CVSSVector           string
	CVSSScore            float64
	KEV                  bool
	EPSS                 float64
	Scope                string
	Reachability         string
	Impact               string
	FixedVersion         string
	OccurrenceState      string
	RiskScore            float64
	Priority             int
	ReasonCodes          []string
	ModelVersion         string
	InputHash            string
	PreviousAssessmentID shared.ID
	AssessedAt           time.Time
	CreatedAt            time.Time
}

func Evaluate

func Evaluate(input Input, now time.Time) (Assessment, error)

func (Assessment) Validate

func (a Assessment) Validate() error

type Input

type Input struct {
	TenantID             shared.ID
	EngagementID         shared.ID
	OccurrenceID         shared.ID
	AdvisoryID           string
	AdvisoryRevision     int64
	ComponentFingerprint string
	Severity             shared.Severity
	CVSSVector           string
	CVSSScore            float64
	KEV                  bool
	EPSS                 float64
	Scope                string
	Reachability         string
	ClassUnreferenced    bool
	FixedVersion         string
	OccurrenceState      string
	ModelVersion         string
	ReasonCodes          []string
}

type Result

type Result struct {
	Assessment Assessment
	Created    bool
}

Jump to

Keyboard shortcuts

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