scanners

package
v0.46.2 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Overview

Package scanners holds Draugr's built-in scanners, which wrap individual security tools and normalize their output to SARIF.

See docs/ARCHITECTURE.md.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGitleaks added in v0.2.0

func NewGitleaks() plugin.Scanner

NewGitleaks returns a Scanner that runs Gitleaks over a checked-out repository to detect leaked secrets (credentials, tokens, keys). It serves the "secrets" control.

func NewGosec added in v0.14.0

func NewGosec() plugin.Scanner

NewGosec returns a Scanner that runs gosec, a Go-specialized static analyzer, over a checked-out repository. It is an optional second scanner for the "sast" control (alongside Semgrep); it only makes sense on Go components, so it is opt-in via controllers.sast.scanners.

func NewHTTPHeaders added in v0.9.0

func NewHTTPHeaders() plugin.Scanner

NewHTTPHeaders returns the native HTTP security-header scanner.

func NewKubeBench added in v0.45.0

func NewKubeBench() plugin.Scanner

NewKubeBench returns a Scanner for the "infrastructure" control.

func NewKubeBenchJob added in v0.46.0

func NewKubeBenchJob() plugin.Scanner

NewKubeBenchJob returns a Scanner that runs the CIS benchmark inside the cluster.

func NewNuclei added in v0.28.0

func NewNuclei() plugin.Scanner

NewNuclei returns a Scanner that runs Nuclei for the "dast" control. Nuclei is a single Go binary that probes a live endpoint with a large community template library; Draugr parses its JSONL output rather than its SARIF export, so severity, the matched URL, and CWEs map cleanly onto Draugr's model.

func NewSemgrep added in v0.3.0

func NewSemgrep() plugin.Scanner

NewSemgrep returns a Scanner that runs Semgrep over a checked-out repository for static application security testing (SAST). It serves the "sast" control.

func NewTLSProbe added in v0.31.0

func NewTLSProbe() plugin.Scanner

NewTLSProbe returns the native TLS configuration scanner.

func NewTrivy

func NewTrivy() plugin.Scanner

NewTrivy returns a Scanner that runs Aqua Trivy against container images and returns its native SARIF output. It serves the "images" control.

func NewTrivyConfig added in v0.4.0

func NewTrivyConfig() plugin.Scanner

NewTrivyConfig returns a Scanner that runs Trivy's misconfiguration scanner over a checked-out repository to find insecure Infrastructure-as-Code (Terraform, Kubernetes manifests, Dockerfiles, Helm, …). It serves the "iac" control.

func NewTrivyFS

func NewTrivyFS() plugin.Scanner

NewTrivyFS returns a Scanner that runs Trivy in filesystem mode over a checked-out repository to find dependency vulnerabilities (SCA). It serves the "sca" control. (License findings are not included in Trivy's SARIF output and are tracked separately.)

func NewTrivyLicense added in v0.43.0

func NewTrivyLicense() plugin.Scanner

NewTrivyLicense returns a Scanner that reports dependency licences carrying an obligation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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