binary

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: 14 Imported by: 0

Documentation

Overview

Package binary implements a detector that uses govulncheck to scan for vulns on Go binaries found on the filesystem.

Index

Constants

View Source
const (
	// Name is the unique name of this detector.
	Name = "govulncheck/binary"
)

Variables

This section is empty.

Functions

func New added in v0.1.7

func New() detector.Detector

New returns a detector.

Types

type Detector

type Detector struct {
	OfflineVulnDBPath string
}

Detector is a SCALIBR Detector that uses govulncheck to scan for vulns on Go binaries found on the filesystem.

func (Detector) Name

func (Detector) Name() string

Name of the detector.

func (Detector) RequiredExtractors

func (Detector) RequiredExtractors() []string

RequiredExtractors returns the go binary extractor.

func (Detector) Requirements added in v0.1.3

func (d Detector) Requirements() *plugin.Capabilities

Requirements of the detector.

func (Detector) Scan

Scan takes the go binaries gathered in the extraction phase and runs govulncheck on them.

func (Detector) Version

func (Detector) Version() int

Version of the detector.

Jump to

Keyboard shortcuts

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