list

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package list provides a public list of SCALIBR-internal detection plugins.

Index

Constants

This section is empty.

Variables

View Source
var All = concat(
	CIS,
	Govulncheck,
	Weakcreds,
	Untested,
)

All detectors internal to SCALIBR.

CIS scanning related detectors.

View Source
var Default = InitMap{}

Default detectors that are recommended to be enabled.

View Source
var Govulncheck = InitMap{binary.Name: {binary.New}}

Govulncheck detectors.

Untested CVE scanning related detectors - since they don't have proper testing they might not work as expected in the future. TODO(b/405223999): Add tests.

Weakcreds detectors for weak credentials.

Functions

func DetectorsFromNames

func DetectorsFromNames(names []string) ([]detector.Detector, error)

DetectorsFromNames returns a deduplicated list of detectors from a list of names.

func FilterByCapabilities added in v0.1.4

func FilterByCapabilities(dets []detector.Detector, capabs *plugin.Capabilities) []detector.Detector

FilterByCapabilities returns all detectors from the given list that can run under the specified capabilities (OS, direct filesystem access, network access, etc.) of the scanning environment.

func FromCapabilities added in v0.1.3

func FromCapabilities(capabs *plugin.Capabilities) []detector.Detector

FromCapabilities returns all detectors that can run under the specified capabilities (OS, direct filesystem access, network access, etc.) of the scanning environment.

Types

type InitFn added in v0.1.7

type InitFn func() detector.Detector

InitFn is the detector initializer function.

type InitMap added in v0.1.7

type InitMap map[string][]InitFn

InitMap is a map of detector names to their initers.

Jump to

Keyboard shortcuts

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