lead

package
v0.4.8 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyLead

func CopyLead(id string) error

func IgnoreLead

func IgnoreLead(id string) error

func UncopyLead

func UncopyLead(id string) error

func UnignoreLead

func UnignoreLead(id string) error

Types

type AffectedAsset

type AffectedAsset struct {
	Name         string `json:"name"`
	Port         int    `xml:"port,attr" json:"port,omitempty"`
	SvcName      string `xml:"svc_name,attr" json:"svc_name,omitempty"`
	Protocol     string `xml:"protocol,attr" json:"protocol,omitempty"`
	PluginOutput string `json:"plugin_output"`

	AffectedHost *nessus.ReportHost `json:"-"`
}

func (*AffectedAsset) ToAssetString

func (a *AffectedAsset) ToAssetString() string

type CVSS

type CVSS struct {
	Severity string  `json:"severity"`
	Score    float64 `json:"score"`
	Vector   string  `json:"vector"`
}

type ExploitationRatings

type ExploitationRatings struct {
	Likelihood string `json:"likelihood"`
	Impact     string `json:"impact"`
	RiskRating string `json:"riskRating"`
}

type HugoLeadData

type HugoLeadData struct {
	Ignored []string `json:"ignored"`
	Copied  []string `json:"copied"`
}

type Lead

type Lead struct {
	Dir          string              `json:"-"`
	Title        string              `json:"title"`
	Description  string              `json:"description"`
	CweRefs      []string            `json:"cweRefs"`
	ExternalUUID string              `json:"external_uuid"`
	Cvss         CVSS                `json:"cvss"`
	Exploitation ExploitationRatings `json:"exploitation"`
	ExternalData struct {
		Nessus NessusFinding `json:"nessus"`
	} `json:"externalData"`
}

func FromNessusFinding

func FromNessusFinding(finding *NessusFinding) *Lead

func LeadFromID

func LeadFromID(id string) (*Lead, error)

func (*Lead) Save

func (l *Lead) Save() error

type NessusFinding

type NessusFinding struct {
	ReportItem     *nessus.ReportItem `json:"report_item,omitempty"`
	AffectedAssets []AffectedAsset    `json:"affected_assets,omitempty"`
}

Jump to

Keyboard shortcuts

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