threat

package
v0.63.6 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Overview

Package threat holds the threat detection vocabulary shared across the fleet: the worktrace rule categories. It is a leaf package, so both authz (the detect obligation) and models (the API schema) can depend on it.

Index

Constants

This section is empty.

Variables

Categories lists every category, in display order. It is the single source of the category list: the detect obligation validates against it, the API schema enumerates it, and the worktrace controller rejects rule files with a category not in it. Adding a category means adding it here, releasing this module and bumping it in its consumers.

Functions

func Known

func Known(c Category) bool

Known reports whether c is in Categories.

func Strings

func Strings() []string

Strings returns Categories as strings, in the same order.

Types

type Category

type Category string

Category is a worktrace rule category: every detection rule and attack path belongs to exactly one, set by the category key of its rule file.

const (
	ContainerEscape              Category = "container-escape"
	PrivilegeEscalationAndKernel Category = "privilege-escalation-and-kernel"
	ContainerRuntimeAndK8sAPI    Category = "container-runtime-and-k8s-api"
	CredentialAccess             Category = "credential-access"
	ReverseShellsAndExecution    Category = "reverse-shells-and-execution"
	Persistence                  Category = "persistence"
	DefenseEvasion               Category = "defense-evasion"
	Discovery                    Category = "discovery"
	LateralMovementAndNetwork    Category = "lateral-movement-and-network"
	Cryptomining                 Category = "cryptomining"
)

Jump to

Keyboard shortcuts

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