kev

package
v0.0.0-...-27c2cca Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fetch

func Fetch(apiToken string, opts ...Option) error

Types

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithBaseURL

func WithBaseURL(url string) Option

func WithDir

func WithDir(dir string) Option

func WithRetry

func WithRetry(retry int) Option

type ReportedExploit

type ReportedExploit struct {
	Url       string    `json:"url"`
	DateAdded time.Time `json:"date_added"`
}

type VulnCheckKEV

type VulnCheckKEV struct {
	VendorProject              string `json:"vendorProject"`
	Product                    string `json:"product"`
	Description                string `json:"shortDescription"`
	Name                       string `json:"vulnerabilityName"`
	RequiredAction             string `json:"required_action"`
	KnownRansomwareCampaignUse string `json:"knownRansomwareCampaignUse"`

	CVE []string `json:"cve"`

	VulnCheckXDB                  []XDB             `json:"vulncheck_xdb"`
	VulnCheckReportedExploitation []ReportedExploit `json:"vulncheck_reported_exploitation"`

	DueDate       *time.Time `json:"dueDate,omitempty"`
	CisaDateAdded *time.Time `json:"cisa_date_added,omitempty"`
	DateAdded     time.Time  `json:"date_added"`
}

https://docs.vulncheck.com/community/vulncheck-kev/schema

type XDB

type XDB struct {
	XDBID       string    `json:"xdb_id"`
	XDBURL      string    `json:"xdb_url"`
	DateAdded   time.Time `json:"date_added"`
	ExploitType string    `json:"exploit_type"`
	CloneSSHURL string    `json:"clone_ssh_url"`
}

Jump to

Keyboard shortcuts

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