hostcheck

package
v4.24.21 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: AGPL-3.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package hostcheck reads a host's configuration and reports what fails the hardening guidance in the CIS Linux and Kubernetes benchmarks.

The ids are Vulnetix's own (VNX-HOST-...), not CIS section numbers: the section numbers differ between benchmark editions and distributions, and a number that is wrong for the reader's edition is worse than none. Each check names the setting, which is how the benchmarks index them too.

Only what a file on the host says is judged. A setting that cannot be read is not reported as failing, and a check that does not apply to the compute kind (IP forwarding on a Kubernetes node, which needs it) is skipped.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Finding

type Finding struct {
	ID       string
	Title    string
	Severity string
	// Path is the file the setting came from, on the host.
	Path   string
	Detail string
	Fix    string
}

Finding is one failed check.

func Run

func Run(root, computeKind string) []Finding

Run checks the host whose filesystem is at root. computeKind is the sensor's (eks-node skips checks Kubernetes needs to fail).

Jump to

Keyboard shortcuts

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