Documentation
¶
Overview ¶
Package execwatch reads process starts from Tetragon and checks each new executable against the feeds' file-hash indicators.
Tetragon (Cilium) does the kernel side with eBPF and writes one JSON object per event to its export file (--export-filename, by default /var/run/cilium/tetragon/tetragon.log). Reading that file instead of its gRPC API keeps the sensor free of the gRPC stack, and works the same on a node where Tetragon runs as a DaemonSet or a systemd unit.
This is detection only. A match is reported; the process is not stopped, because stopping it cannot be undone and the sensor does not yet have a kernel hook that refuses the exec before it runs. The sensor reports the capability accordingly, and the console says so.
Index ¶
Constants ¶
const DefaultExport = "/var/run/cilium/tetragon/tetragon.log"
DefaultExport is Tetragon's default export file.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Exec ¶
type Exec struct {
PID int
Binary string
Arguments string
Pod string
Namespace string
Time time.Time
}
Exec is one process start.
type Watcher ¶
type Watcher struct {
// Root is the filesystem binaries are read from: "/" on the host, or the
// host root mounted into the sensor's container.
Root string
Rules func() *engine.Set
Verdicts *decide.Engine
Report func(uplink.Event)
// contains filtered or unexported fields
}
Watcher checks execs against the current rule set.