report

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 16 Imported by: 2

Documentation

Index

Constants

View Source
const (
	HARMLESS int = iota
	LOW
	MEDIUM
	HIGH
	CRITICAL
)
View Source
const NAME string = "malcontent"

Variables

View Source
var Levels = map[string]int{
	"harmless":   0,
	"low":        1,
	"notable":    2,
	"medium":     2,
	"suspicious": 3,
	"weird":      3,
	"high":       3,
	"crit":       4,
	"critical":   4,
}

Map to handle RiskLevel -> RiskScore conversions.

View Source
var RiskLevels = map[int]string{
	0: "NONE",
	1: "LOW",
	2: "MEDIUM",
	3: "HIGH",
	4: "CRITICAL",
}

Map to handle RiskScore -> RiskLevel conversions.

Functions

func Generate

func Generate(ctx context.Context, path string, mrs yara.MatchRules, c malcontent.Config, expath string) (malcontent.FileReport, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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