tetragon

package
v4.10.1 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: AGPL-3.0 Imports: 5 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 tetragon renders the feeds' block-mode process rules as a Tetragon TracingPolicy, so the kernel refuses a matching exec before it runs.

This is the in-kernel counterpart to the seccomp guard, for nodes that run Tetragon. It is off unless an operator renders the policy (vulnetix-sensor tetragon-policy) and applies it with kubectl. The sensor does not apply it.

Only what Tetragon can express is rendered: a Sigma process_creation rule whose one selection tests Image alone, with no modifier, startswith or endswith. Everything else is listed as skipped with the reason, and keeps running in the sensor as detection. The policy refuses with EPERM through Tetragon's Override action on security_bprm_creds_for_exec, which needs a kernel built with CONFIG_BPF_KPROBE_OVERRIDE. Not yet run against a live Tetragon; read the policy before applying it.

Index

Constants

View Source
const Hook = "security_bprm_creds_for_exec"

Hook is the kernel function the policy overrides.

View Source
const PolicyName = "vulnetix-exec-block"

PolicyName is the TracingPolicy's name, and how the sensor recognises the events it causes.

Variables

This section is empty.

Functions

func ExactImages

func ExactImages(rules []feed.Rule) map[string]feed.Rule

ExactImages returns the exact program paths the given Sigma rules name, for the BPF LSM guard, which matches a file by identity and so cannot express a prefix or suffix. The caller passes only rules it would block on. A path two rules name goes to the first.

Types

type Rendered

type Rendered struct {
	YAML    []byte
	Used    []string
	Skipped []Skipped
}

Rendered is a policy and what went into it.

func Render

func Render(feeds []feed.Loaded) (Rendered, error)

Render builds the policy from the rules of verified feeds. A rule must be a SIGMA rule in block mode and not disabled; an unverified feed's rules never block, here as in the sensor.

type Skipped

type Skipped struct {
	RuleUUID string
	Reason   string
}

Skipped is a rule that was not rendered, and why.

Jump to

Keyboard shortcuts

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