EnterpriseTetragon

Tetragon reference

Look up DefenseClaw's Tetragon integration on managed Linux: enterprise.tetragon keys and modes, kernel controls, burn-in, overrides, host cost, privacy.

This page holds the detail behind Tetragon on a Linux fleet. Start there for the rollout steps.

Modes

config.yaml (excerpt)
enterprise:
  profile: standalone
  tetragon:
    mode: observe      # off | consume (default) | observe | enforce
    burn_in: 168h      # covered agent-hours per user before enforcement. 0, or 24h to 2160h
    enforce_ack: ""    # with mode enforce: the kernel_policy digest you approved, or a list of up to 4
    customer_events: agent   # agent (default) | off
ai_discovery:
  runtime:
    enabled: true
    enable_host_plane: true
KeyValuesDefault
modeoff, consume, observe, enforceconsume
burn_in0, or whole hours from 24h to 2160h168h
enforce_ackOne digest (sha256: and 12 hex digits), or a list of up to 4None
customer_eventsagent, offagent
ModeProcess eventsFile eventsDefenseClaw policies in TetragonEnforcement
offcn_procfanotifyNoneNone
consumeTetragonfanotifyNoneNone
observe (Preview)TetragonTetragon's defenseclaw-observe policy, with fanotify alongside until the policy has run healthy for ten minutesdefenseclaw-observe, defenseclaw-connect and defenseclaw-controls (monitor mode)None. What the controls would have denied is counted
enforce (Preview)As observeAs observeAs observe. controls is in enforce mode for ready users, and controls-burnin holds the others in monitor modeEPERM for ready users, when enforce_ack matches and every cap below passes

fanotify watches the homes of the users in targets.yaml. Users enrolled only through vendor machine policy have no row there. On such a computer, in observe and enforce the observe policy is the file source from the start; in consume and off the coverage reports file events as missing ("fanotify has no enrolled home to watch").

What the helper asks of Tetragon

ModeCalls to Tetragon
off, consumeRead-only: version, info, events and the policy list. At start, one pass that deletes names its own state file recorded
observe, enforceThe read-only calls, plus add, configure and delete for defenseclaw-* policies

No mode makes a call that names one of your policies.

Policy names

DefenseClaw's policy names end in eight hex digits of the rendered policy's hash, for example defenseclaw-controls-3f9c2a7d. DefenseClaw adds, changes and deletes only names it recorded itself.

  • A policy of yours is never touched, even one with a defenseclaw- name, and is listed under your policies.
  • When its name has DefenseClaw's own form (defenseclaw-, then observe, connect, controls or controls-burnin, then eight hex digits), status also warns tetragon_foreign_defenseclaw_name.
  • Another defenseclaw- name, such as defenseclaw-foo, raises no warning.

How a config change reaches the helper

ensure renders enterprise.tetragon into a drop-in for the helper (defenseclaw-sensor-helper.service.d/30-defenseclaw-tetragon.conf), and the helper restarts into it. The helper never reads config.yaml itself; it acts only on what ensure accepted. An absent block and mode: consume with the default burn_in and customer_events produce the same policy digest. With Plane C on, these defaults need no drop-in.

Caps

Every semantic condition is a cap, never a rejection, because a rejected config blocks unrelated changes on a managed computer:

ConditionEffectStatus reason
Plane C not selectedEffective mode offtetragon_plane_c_off
enforce without enforce_ack, or an ack that does not include the current control setMonitor modekernel_enforce_ack_missing, kernel_enforce_ack_stale
A connector's guardrail mode is not actionThat connector is not anchored for enforcementkernel_enforce_guardrail_observe:<connector>
Tetragon's keep-sensors-on-exit is on, or its config cannot be readMonitor modetetragon_persistent_sensors
Tetragon 1.6.xobserve and enforce refusedtetragon_unsupported_version

The kernel controls

Three controls exist. There are no per-control settings.

ControlDeniesDoes not deny
kernel.ssh_private_key_readOpening ~/.ssh/id_rsa, id_ed25519, id_ecdsa or id_dsa.pub files and certificates. ssh, ssh-keygen and ssh-add are exempt, so SSH commit signing and ssh-add keep working
kernel.persistence_writeOpening for write ~/.bashrc, ~/.bash_profile, ~/.profile, ~/.zshrc, and files under ~/.config/systemd/user/ and ~/.config/autostart/, including truncation, which is denied before it happensReading. Replacing or removing a file by rename or unlink
kernel.ssh_authorized_keys_write (rule persistence.ssh_authorized_keys_write)Opening ~/.ssh/authorized_keys or authorized_keys2 for write, including creating them; a new hard link to them or at their names; a symlink at their names; a rename onto them, away from them, or of ~/.ssh itselfReading. Removing the file (anything put at the name afterwards is denied)
  • The control sees the file, not the command. It also covers a write by a script, xargs, find -exec, make or a git option the hook could not read.
  • Each user's own ssh-copy-id, outside an agent, is never in scope.
  • Paths are the exact names in each enrolled home. The controls do not cover agent configuration files, repository files such as AGENTS.md or .mcp.json, provider credentials, the hook runtime, root-owned system paths or program execution.
  • A hard link to authorized_keys made before the policy loaded is another name for the file, and no path selector can match it. tetragon status reports it as protected_file_extra_links:<path>; remove the other name.
  • The link and rename selectors need the home on the root mount. A home on another mount keeps the open control and reports kernel_link_rename_not_covered:<path>.

Who a control covers

Each control covers only:

  • an enrolled user: a row in targets.yaml, or an eligible account of enterprise.enrollment for a connector on vendor machine policy (Claude Code, Codex, Cursor, Copilot CLI and OpenCode). A targets.yaml row for the same user and connector, enabled or not, decides for that pair, and status marks machine-policy enrollment with *;
  • whose enrolled connector is an installed command-line agent (Claude Code, Codex, Cursor's cursor-agent, GitHub Copilot CLI, OpenCode, Amp, Devin, Hermes or Kiro CLI);
  • and the processes that descend from that agent's own processes, in the host process namespace.

In monitor mode every such connector is counted. To deny, a connector must also be in action mode; a connector in observe mode stays monitor-only (kernel_enforce_guardrail_observe:<connector>).

The same user's normal shell, other users, IDE terminals, containers and programs that only look like an agent by name are observed, never denied. status lists them as "observed, not enforced" with the reason ide_hosted, heuristic_root, not_enrolled or guardrail_observe. A user with no agent installed has no control at all.

Enforcement limits

In enforce, a control denies only through an agent's native binary.

  • A process ID never denies. A session matched only by its process ID (a script-hosted agent, such as an npm install that node runs) is monitored, because a process ID can be reused between two passes. Its would-block hits still count, except for a script-hosted session of the user the controls deny: it is in no controls policy, so its opens are recorded only by the observe policy and your own policies. Status warns kernel_pid_anchor_monitor_only, and a user whose agents are all of this kind stays in monitor after burn-in.
  • One user per computer is denied. The controls policy carries the native binaries of one user. When several users who finished burn-in have a native agent, the lowest uid is enforced and the others stay in monitor, with their hits still counted (kernel_binary_anchor_scope_limited). verify --ready-for enforce names the holder.
  • Administrator prefixes. With an agent under an administrator prefix (enterprise.enrollment.agent_prefixes), every eligible account resolves the same native binary, so the lowest eligible uid holds the anchor even if it never runs an agent. Leave such accounts out with enterprise.enrollment.exclude_users (an excluded account gets no DefenseClaw hooks or discovery at all). The helper picks the change up at its next enrollment refresh.

Known limits

  • Four sessions per policy. At most four running agent sessions are anchored in one monitor controls policy. Further sessions are reported as kernel_roots_over_limit, and that user's burn-in pauses until every live session is measured. Each DefenseClaw policy uses one file_open hook, because Tetragon 1.7.0 runs only the last entry of a hook listed twice, and one hook holds five selectors.
  • Sessions Tetragon saw start. A session counts as anchored only when Tetragon reported its start on the event stream. A session that started while the stream was down is not denied (kernel_sessions_unconfirmed) until it restarts.
  • New sessions wait. A new session may wait a minute or two to reach an enabled controls policy (kernel_session_policy_pending). No covered time accrues for that user meanwhile; earlier time stays. If loading fails, the warning stays until the policy is repaired.
  • Sessions that predate the controls. A session already running when the controls loaded (enforce turned on or Tetragon restarted) is monitored until it restarts (kernel_sessions_predate_controls). A pause and a resume keep the same policy loaded. An agent's own update keeps the old controls policy enforcing for its running sessions until they exit.
  • Names, not files. A rule matches the name that is opened. A link created beforehand is outside the control.
  • Rename and remove. Replacing a shell profile by rename, or removing it, is not denied. Hook rules still see the command, and the observe policy records the open.
  • Library SSH tools. A library-based SSH tool (for example one built on libssh2 or paramiko) inside an agent's process tree is denied like any other reader. Burn-in shows these first.

Burn-in

Each user needs covered agent time that reaches burn_in (default 168 hours) with zero would-block hits. Covered time accrues only while all of these hold:

  • the Tetragon stream is connected, with no throttling or rate-limit drop that minute;
  • the user's policy is enabled;
  • at least one anchored agent process of that user is alive, and every live session of that user is in the enabled policy;
  • enforcement is not paused.

An idle computer accrues nothing. A hit sends the user back to the start of a fresh window. The burn-in also resets when the control set changes or the user gains a connector. A new agent session only pauses it until the session is in the policy, and gives back at most the last minute credited.

A burn_in of 0 skips the wait, and status warns kernel_burn_in_skipped for as long as it applies.

Operator overrides

If you change or delete a DefenseClaw policy with tetra (for example tetra tracingpolicy set-mode <name> monitor or delete <name>), the helper treats it as your decision.

  • It does not put the policy back after a helper or Tetragon restart, and warns kernel_policy_operator_override:<family>.
  • It notices the change at its next pass, within a minute; until then status shows the state before it.
  • From then on, the users the controls would deny show as monitor only ("an operator changed the controls policy in Tetragon"), and verify does not count them as enforced.
  • A new enforce_ack or mode in the config clears the override.

Your Tetragon policies

How DefenseClaw treats your own kprobe and LSM policies:

  • Ownership is by record. A policy is DefenseClaw's only when this helper recorded loading it. Everything else is yours, including a policy named defenseclaw-controls-deadbeef (which also raises tetragon_foreign_defenseclaw_name).
  • Only agent events become records. The gateway ties each event to the agent's process lineage, the user, and the hook decision for that tool call when there is one (hook_join is exact or temporal). Events from the user's shell, other processes and containers are counted per policy, never exported one by one.
  • Not scored. Your events are not part of DefenseClaw's risk scores or findings.

What is forwarded per event:

FieldDetail
PolicyName, hook type (kprobe or lsm), function, tags and message
Action and modeTetragon's action (post, override, sigkill, signal, ...) and the policy's mode. Mode is refreshed every 15 seconds, so an event within 15 seconds of a mode change may carry the old one
Outcomeobserved, would_block (an enforcing action in a monitor-mode policy) or blocked (an enforcing action in an enforce-mode policy)
TargetThe first file or binary path, or the peer of a socket. It is a content field: each destination's redaction profile decides whether it leaves the host
ProcessPid, exec id, executable, user, start time and the command line, redacted as for every other event
CountRepeats of the same policy, process, function, action and target within 60 seconds fold into one record with a count

Never forwarded: string and byte arguments, integers, capabilities and credentials, kernel and user stack traces, return values, ancestors and the raw event.

Limit or recordValue
Rate per policy20 events a second, a burst of 100
Rate per host200 events a second. The overflow is counted, and status warns tetragon_customer_events_capped for that hour
Policies trackedAt most 64, written as customer_policies to the helper's state file every 30 seconds in every mode: name, mode, state, sensors, error, Tetragon's action counters, and events seen, forwarded, dropped and blocked
/health and the runtime APICounts and a summary of the same list. The runtime API also lists the last 100 attributed events (customer_kernel_events)
status --jsonThe same section. status counts as blocked the events whose outcome is blocked

Cost on the host

The observe, controls and controls-burnin policies hook file_open, so every open on the computer, by any process, runs their path filters in the kernel. Each file open pays a few microseconds; measure on a pilot ring.

A controls policy holds at most four agent sessions, which keeps it to two file_open hooks. Every extra hook runs for every open on the host, including opens outside agent sessions.

Workloads that open many files, such as builds, indexers and package installs, feel it most. Run the pilot ring in observe before you widen it.

Failure behavior

EventBehavior
Tetragon stopsNo kernel enforcement (fail open). Plane C falls back to cn_proc and fanotify in the same stream; status warns tetragon_unavailable. enterprise linux verify still passes; tetragon verify fails its Tetragon checks, so a ring gate on it stops until Tetragon is back
Tetragon restartsThe policies it held are gone. The helper loads them again within a pass (about a minute), honoring a pause and any operator override. Running agent sessions are monitored until they restart (kernel_sessions_predate_controls)
An agent updates itselfThe new version is a new native binary, so the helper loads a new controls policy for it. The old one stays loaded and enforcing for sessions that started under it, and is removed when the last one exits. A pause, a mode change or a failed reconcile removes it
The computer rebootsTetragon and the helper start by themselves, the helper after Tetragon, and the helper loads the policies at its first pass (about a minute). A pause set with --for holds; an --until-reboot pause ends. Burn-in progress is kept (saved every 30 seconds). A session that starts before the policies load is monitored until it restarts
The helper stopsLoaded policies keep running with the scope they had. Start the helper again, or run the cleanup. When it is back, the gateway re-attaches within seconds
Events are lostEnforcement is unaffected. Coverage is reported as partial, and burn-in time stops
A policy does not loadIt stays in or returns to monitor mode, and status reports kernel_reconcile_failed. verify fails with kernel_policy_load_error:<name> when Tetragon reports a DefenseClaw policy in its load-error or error state. A policy missing after a pass is only the warning kernel_policy_not_applied

A Tetragon outage is your computer's state, not DefenseClaw's. It is a warning and never fails enterprise linux verify or security_complete. tetragon verify is the readiness check for a mode, and a mode that uses Tetragon is not ready while Tetragon is down.

Privacy

  • The helper redacts every command line it reads from Tetragon (secret flags, key-shaped tokens, URL passwords) before it reaches the gateway.
  • The arguments of Codex's notify program are withheld entirely, because they carry the turn's content.
  • The helper asks Tetragon for no environment variables, capabilities, namespaces or pod metadata.
  • Raw Tetragon events are never sent to the gateway or to an exporter.
  • Events of your own policies cross to the gateway only as the typed fields in Your Tetragon policies.
  • The DefenseClaw hook's own short-lived helper processes are summarized as one count per hook. Any other child of a hook, and any process that does not match the exact rendered hook command, is reported in full.

Units and files

ItemPathOwner and mode
Helper drop-in, written for non-default settings or the Plane C off cap/etc/systemd/system/defenseclaw-sensor-helper.service.d/30-defenseclaw-tetragon.confroot, 0644
Helper state/var/lib/defenseclaw-sensor/: tetragon-loaded (the policy names DefenseClaw loaded), tetragon-state.json, burnin.json, tetragon-pauseroot, 0700
Until-reboot pause and rendered policy copies/run/defenseclaw-sensor-tetragon/: tetragon-pause, tetragon/root
Helper unitdefenseclaw-sensor-helper.service, started after tetragon.serviceroot

verify tracks the drop-in and reports drift. Do not edit the helper's state files.

macOS and Windows

A standalone computer on macOS or Windows accepts enterprise.tetragon and ignores it: Tetragon has no agent for either. macOS status reports tetragon_not_applicable. On macOS, Plane C reads Endpoint Security instead (macOS).