binary

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2025 License: Apache-2.0, BSD-3-Clause Imports: 18 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

New returns a detector.

Types

type Detector

type Detector struct {
	// contains filtered or unexported fields
}

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

func (Detector) DetectedFinding added in v0.3.1

func (d Detector) DetectedFinding() inventory.Finding

DetectedFinding returns generic vulnerability information about what is detected. TODO: b/428851334 - For now, we do not return any advisories. But we want to be able to propagate detection capabilities here.

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