eBPF-based Security Observability and Runtime Enforcement
open sourceApache-2.0 AND (GPL-2.0-only OR BSD-2-Clause)self-hostablefree
Tetragon is a runtime security tool from the Cilium project that uses eBPF to watch security-relevant events in the Linux kernel and act on them: process execution and exit, system calls, file access, network connections and privilege changes, enriched with Kubernetes metadata (namespace, pod, labels) so rules can target individual workloads. TracingPolicy resources hook any kernel function, tracepoint or uprobe and filter on its arguments in the kernel, and can enforce as well as observe: an Override action makes a system call or security check return an error, and a Signal action kills the process synchronously. It runs on Kubernetes with a Helm chart or on plain Linux as a container or a package, with the tetra CLI to read events. Isovalent, part of Cisco, created it; Apache-2.0, with its BPF code under GPL-2.0 or BSD-2-Clause.
Ways to install
On Kubernetes
Package managers
Problems it solves
- know every process that runs inside our Kubernetes pods, with its full command line and parent
- alert when a container reads /etc/shadow or another sensitive file
- kill a process the moment it tries to escalate privileges, before the syscall completes
- block a system call for one workload without changing the application
- see which process in which pod opened an outbound network connection
- runtime threat detection for Kubernetes with low overhead, filtering in the kernel
- audit setuid, capability changes and other credential changes in containers
- security observability on plain Linux servers without Kubernetes
- send process and syscall security events to our SIEM as JSON
- an open source alternative to commercial container runtime security agents
Features
- process_exec and process_exit events for full process lifecycle observability, on by default
- kprobe, tracepoint and uprobe hooks configured with TracingPolicy resources
- filtering on function arguments and return values in the kernel
- Override action that returns an error from system calls and security checks instead of running them
- Signal action that kills a matching process synchronously
- Kubernetes-aware events with namespace, pod and label metadata
- use cases: network observability, file access, credential changes, privileged execution
- Helm chart from helm.cilium.io; container and package installs for plain Linux
- tetra CLI to read and filter events
- gRPC API and Prometheus metrics
Limitations
- Doesn't run on Linux kernels older than 4.19, and not every feature works on older kernels3
- Doesn't run natively on macOS or Windows: it needs a Linux kernel with BTF, so on a Mac it runs in a Linux virtual machine3
Capabilities
| Has an API | plan not known |
|---|---|
| Has a command line tool | plan not known |
Alternatives
The same job
These do what Tetragon does.
