Tetragon 1.8: Stateful Security Policies at the Linux Kernel Level
Tetragon 1.8 adds stateful tracing policies and richer selectors. The practical test is whether context improves detection without unmanageable noise or overhead.
Tetragon 1.8.0 was released October 30, 2026. Tetragon observes Linux processes and applies tracing policies using eBPF. The release adds stateful tracing policies, filtering on command-line arguments, more uprobe capabilities and expanded CEL expression support. These features move policy design beyond matching one isolated event: an observation can update state that a later event uses as context. The release does not establish a measured detection improvement or a universal overhead figure for arbitrary production workloads.
The change matters because a single action can be ordinary or suspicious depending on what preceded it. A process reading a configuration file is common. A process changing identity, opening a sensitive file and then starting an unexpected network connection may deserve a different investigation. The difficulty is turning that intuition into a precise policy whose meaning does not drift as processes fork, containers restart or events arrive under load.
State has an identity and a lifetime
The Tetragon selector documentation describes matchStates and state updates. That supplies a building block for correlating observations. It does not make every arbitrary event sequence automatically detectable. A policy author must specify which event creates a state, what entity the state belongs to, how long it remains relevant and which later event consults it. A state tied too broadly to a host could connect unrelated processes; one tied too narrowly to a short-lived process might miss a child that performs the next action.
Consider a container service that occasionally invokes a diagnostic tool. A policy could flag a later sensitive action only after an unexpected execution event. But the design needs an answer for parallel requests in the same container. If one worker sets state and another unrelated worker matches it, the rule may be noisy. Conversely, if a malicious sequence crosses process boundaries and the state is scoped only to a PID, it may be invisible. Correlation semantics, cleanup and test fixtures are therefore part of the detection, not implementation trivia.
Command-line argument filtering adds useful specificity. A process name alone may describe many legitimate invocations; argument values can indicate which target or mode was used. Yet command lines may contain secrets or personal data, and applications can pass important values through environment variables, files or IPC instead. An argument selector cannot be treated as complete observation of an application’s intent. Teams should define which captured fields can be logged, how they are protected and when a match can safely trigger enforcement.
Uprobes attach observation to user-space functions. The release’s additions broaden what policies can inspect, including caller-function filtering and shared-library symbol handling. Such probes can be powerful when a library function corresponds to a meaningful operation. They also depend on binaries, symbols, versions and call paths. A library update or compiler optimization can change what a probe sees. Policy deployment should record the exact target artifacts and verify behavior after upgrades.
From event to action
Our engineering assessment: start with observation, not immediate blocking. Write one bounded hypothesis such as “an unexpected process in this workload performs this sensitive action after that preceding event.” Collect representative normal traffic and controlled test cases. Inspect the events the policy emits, the state transitions it makes and the alerts it misses. Only then decide whether the rule is suitable for prevention, analyst triage or retrospective investigation.
The choice between observing and enforcing matters. Blocking an operation at the wrong moment can interrupt a production service, while merely logging a high-confidence attack may be too slow to contain it. Define the acceptable false-positive rate and recovery procedure for each action. If enforcement is enabled, test that the team can disable or roll back the policy without relying on the affected workload itself.
CEL expressions can combine richer conditions, but expressive rules are harder to review. Complexity can hide surprising matches and increase resource cost. Give each policy an owner, a short statement of intended behavior, positive and negative examples and a version history. A reviewer should be able to explain why a particular event matched using the captured inputs and state at that moment. If the answer requires a long chain of undocumented assumptions, the rule is difficult to operate safely.
Kernel and distribution compatibility require direct validation. eBPF features, verifier behavior, privileges and container deployment patterns vary across Linux environments. Use the supported kernel matrix and test on the actual fleet variants, including nodes with older libraries or different application builds. Measure event loss and CPU and memory effects under realistic load, rather than assuming that a small test policy’s cost predicts a complex production rule.
There is also an incident-response boundary. A kernel-level event can confirm that a process made an observed call under specified conditions. It does not always explain why the application made it or whether the business action was authorized. Join the low-level record with deployment changes, identity context and application logs when making a consequential decision. Conversely, application logs can be missing or manipulated; the kernel observation can provide valuable independent evidence.
A useful acceptance test
Build a test with normal operations, a controlled suspicious sequence, concurrent workers, process restarts and a changed target binary. For each case, record the expected state transitions, emitted events and enforcement outcome. Repeat under the traffic level the workload actually sees. Compare the policy’s results with an equivalent stateless rule to determine whether state adds signal or simply creates more opportunities for noise.
Tetragon 1.8 offers a more expressive vocabulary for behavior at the operating-system boundary. Its value is conditional on correct state scoping, reviewable policy logic and evidence from the intended kernel and workload. The next question is not how many selectors a rule supports, but whether the team can explain its decisions and keep doing so after the system changes.