analyzer

package
v1.0.10 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckHistories added in v1.0.9

func CheckHistories(images []*_image.ImageInfo) (bool, []*threat)

func RBACVulnTypeJudge added in v1.0.3

func RBACVulnTypeJudge(rules, resources []string) (string, string)

Types

type AnType added in v1.0.5

type AnType struct {
	Values []string
	// contains filtered or unexported fields
}

type KScanner

type KScanner struct {
	KClient     *kubernetes.Clientset
	KConfig     *rest.Config
	Version     string
	MasterNodes map[string]*nodeInfo

	VulnConfigures []*threat
	VulnContainers []*container
}

func (*KScanner) Kanalyze

func (ks *KScanner) Kanalyze(ctx context.Context) error

type MalLevel added in v1.0.6

type MalLevel int8
const (
	// Unknown item represents the content is normal.
	Unknown MalLevel = 0
	// Confusion item represents the content matches many safe rules.
	Confusion MalLevel = 1
	// Executable item represents the content is an executable binary.
	Executable MalLevel = 2
)

type MalReporter added in v1.0.6

type MalReporter struct {
	Types MalLevel
	Score float64
	Plain string
}

type RBACVuln added in v1.0.3

type RBACVuln struct {
	Severity           string
	ClusterRoleBinding string
	RoleBinding        string
}

type Scanner

type Scanner struct {
	DApi           inspector.DockerApi
	VulnContainers []*container

	EngineVersion string
	ServerVersion string
}

func (*Scanner) Analyze

func (s *Scanner) Analyze(ctx context.Context) error

Jump to

Keyboard shortcuts

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