findingkey

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateExploitFindingUniqueKey

func GenerateExploitFindingUniqueKey(exploit models.ExploitFindingInfo) string

GenerateExploitFindingUniqueKey Unique key for an exploit today is SourceDB + CVE ID + the discovering URLs.

func GenerateFindingKey

func GenerateFindingKey(findingInfo *models.Finding_FindingInfo) (string, error)

Types

type MalwareKey

type MalwareKey struct {
	MalwareName string
	MalwareType string
	Path        string
}

func GenerateMalwareKey

func GenerateMalwareKey(info models.MalwareFindingInfo) MalwareKey

func (MalwareKey) String

func (k MalwareKey) String() string

type MisconfigurationKey

type MisconfigurationKey struct {
	ScannerName string
	TestID      string
	Message     string
}

MisconfigurationKey One test can report multiple misconfigurations so we need to include the message in the unique key.

func (MisconfigurationKey) String

func (k MisconfigurationKey) String() string

type PackageKey

type PackageKey struct {
	PackageName    string
	PackageVersion string
}

func GeneratePackageKey

func GeneratePackageKey(info models.PackageFindingInfo) PackageKey

func (PackageKey) String

func (k PackageKey) String() string

type RootkitKey

type RootkitKey struct {
	Name        string
	RootkitType string
	Message     string
}

func GenerateRootkitKey

func GenerateRootkitKey(info models.RootkitFindingInfo) RootkitKey

func (RootkitKey) String

func (k RootkitKey) String() string

type SecretKey

type SecretKey struct {
	Fingerprint string
	StartColumn int
	EndColumn   int
}

func GenerateSecretKey

func GenerateSecretKey(secret models.SecretFindingInfo) SecretKey

func (SecretKey) String

func (k SecretKey) String() string

type VulKey

type VulKey struct {
	VulName        string
	PackageName    string
	PackageVersion string
}

func GenerateVulnerabilityKey

func GenerateVulnerabilityKey(vuln models.VulnerabilityFindingInfo) VulKey

func (VulKey) String

func (k VulKey) String() string

Jump to

Keyboard shortcuts

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