trustivan-runtime Helm
chart installs Falco 0.45.2 with its modern eBPF probe
(no kernel module), TRUSTIVAN’s rule library, and a small relay that sends each
detection to TRUSTIVAN with your API key. The optional responder carries out
approved response actions.
Before you install
- A Kubernetes cluster connected to TRUSTIVAN.
You need its id (the
idreturned byPOST /api/v1/kubernetes/clusters, also in the cluster page’s address). - Nodes on Linux 5.8 or later with BTF (
/sys/kernel/btf/vmlinux), which the modern eBPF probe needs. Most current distributions have it. - A TRUSTIVAN API key holding
scans:createonly (Settings, API keys). It can post events to the clusters of its organization and nothing else.
Install
infra/helm/trustivan-runtime; it
is not published to a Helm repository. For a self-hosted TRUSTIVAN, add
--set trustivan.url=https://<your host> (https only).
Within a minute every node runs one trustivan-runtime pod. To see it work,
open a shell in any container (kubectl exec -it <pod> -- sh): a Shell in
container event appears on the Runtime page.
What the chart installs
Values
Tetragon is not shipped. TRUSTIVAN reads Falco’s event format only; there is
no Tetragon values file and no Tetragon parser.
The rule library
33 rules in 12 categories, each mapped to a MITRE ATT&CK tactic and technique (the rule’s Falco tags carry them, for examplemitre_privilege_escalation,
T1611). Each rule is in the check catalogue
under area runtime, with what it detects, why it matters and how to fix it.
Rule matching is
first (one event, one rule), so a specific rule comes before
a broader one in the file: a renamed miner in /tmp is reported as a miner, not
as drift.
The egress allowlist rule is silent until you name images:
falco.extraRules:
infra/helm/trustivan-runtime/rules/trustivan_rules.yaml) and post JSON
output to POST /api/v1/kubernetes/clusters/{id}/events.
What TRUSTIVAN does with an event
- Reads the rule, priority, time, node, container id, image, image digest, pod and namespace. Unknown fields are ignored; at most 64 output fields are kept; a request body may be at most 1 MiB and 500 events.
- Collapses repeats. An event with the same rule, pod, container, image and
detail (process, file, destination) as one stored in the last 10 minutes is
counted on that event instead of stored. The list shows it as
+N. - Bounds each cluster to 600 stored events a minute. Events over that are counted as dropped; the Runtime page shows the last 24 hours’ drops.
- Joins the event to the workload it ran in and the image that workload runs, and, by image digest, to the scanned image even when the pod is not inventoried.
- Files a finding per rule and workload on the cluster. A new critical or high one is sent to the notification destinations subscribed to scan alerts.
- Adds context to the image. The image’s page shows the last seven days’ detections, and the risk explanation of each of its findings says “Observed suspicious runtime behaviour” when there were critical or high ones. This adds no points to the score.
What is verified, and what is not
- Verified: all 33 rules, and the
extraRulesexamples above, load withfalco -Von Falco 0.45.2. Every one of them fired against a live Falco 0.45.2 running under Docker (modern eBPF, the chart’s configuration) on a development host, driven byscripts/runtime/record-falco-events.sh(two victim containers doing what the rules describe), and those recorded events are the test fixtures the ingest is tested on (backend/internal/runtime/testdata/falco/). That run is also how the mount rule was found to fire on runc’s own init at every container start; runc and crun are excluded. - Verified: the chart passes
helm lintandhelm templatewith its defaults and with overrides, refuses six invalid values, and its rendered output passeskubeconformand checks of the properties above (pinned digests, the four capabilities, no RBAC without the responder, the responder’s four verbs exactly, loopback-only relay) (scripts/ci/check-runtime-chart.sh, run in CI). - Verified on a throwaway cluster: the chart installed on a single-node k3d cluster (k3s v1.30.6, containerd) on a development host. Falco started with the modern eBPF probe under the four capabilities and a read-only root, the container plugin named the namespace, pod, image and digest through the k3s containerd socket, and Write below /etc, Sensitive file read and Package manager run fired in a pod; those three events are a test fixture too. Falco’s HTTP output reached the relay. That install surfaced, and the chart now fixes, a relay that would not start when TRUSTIVAN’s host name did not resolve at start.
- Not verified: a relay posting to a live TRUSTIVAN from inside a cluster (the k3d test pointed it at a name that does not resolve), a multi-node or managed cluster (EKS, GKE, AKS), CRI-O, and the AppArmor setting on a host that enforces AppArmor. On k3d Falco logged that its TOCTOU mitigation probes and BPF iterators were unavailable (no tracefs mount, not the host PID namespace); detection still worked, and processes already running when Falco starts are learned as they act rather than up front.
- Not measured: CPU and memory overhead on a busy node. The limits are ceilings, not measurements.
Response actions
A response policy names detections (rule categories, or curated rule ids, at or above a severity), an action and whether it runs on its own or after a person approves it. When an ingested event matches, TRUSTIVAN creates an action; the responder in your cluster claims it, carries it out with its own service account and reports the result. Nothing connects into the cluster: the responder polls TRUSTIVAN over HTTPS with the sensor’s key.- Dry run (the default for a new policy) sends the change with the API
server’s
dryRun=All: RBAC, admission and validation run, nothing is kept, and the result says whether the real action would have worked. - Approval: actions of an approval policy wait on the Runtime page under
Actions for Approve or Reject. A person can also act on a pod
directly (
POST /api/v1/runtime/response/actions); holding the approval permission, their request is its own approval and names them. - Never acted on:
kube-system,kube-public,kube-node-lease, any namespace a policy excludes, events without a pod, and rules that are not curated (yourextraRules). - Expiry: an action not carried out within an hour expires; one claimed but never reported is marked failed. A pod is short-lived, and an old approval should not act on its replacement.
- Audit: every policy change, request, decision and result is in the
organization’s audit trail (
runtime_response.*). - Who may: policies and approvals need
credentials:manageand a person (not an API key); reading needsfindings:read; the responder uses the cluster’sscans:createkey and sees only its own cluster’s actions.
trustivan-backend image of your TRUSTIVAN
release (it runs /app/trustivan respond):
delete and patch on pods, patch on
deployments/scale and statefulsets/scale, and create on networkpolicies:
nothing that reads a Secret.
Drift prevention
Detection tells you a binary that is not in the image ran. Drift prevention stops it being written in the first place: turn it on withdrift_prevention: true on the cluster’s admission settings
(PUT /api/v1/kubernetes/clusters/{id}/admission), and in deny mode
admission refuses any container whose securityContext.readOnlyRootFilesystem
is not true, so nothing can be added to the image’s filesystem after start.
Writable volumes (an emptyDir) remain; the drift, fileless execution and
executable run from a temporary directory rules cover them, and a response
policy on the drift category can stop the pod when one fires. That is
detect-and-respond, not an in-kernel block: the dropped program runs until the
responder acts.
What is verified for response
- Verified in tests: the policy matcher (category, rule, severity floor,
protected and excluded namespaces), the full loop on a real database
(ingest creates the action, approval, exclusive claim, report, expiry,
re-delivered batches create nothing twice), tenant isolation of the new
tables, and the responder’s exact Kubernetes requests against a recorded fake
API server (delete, merge-patch label, NetworkPolicy,
/scale,dryRun=All, a 403 reported as a failure). - Verified on a throwaway cluster: the chart’s responder Deployment,
ServiceAccount and ClusterRole, applied as rendered to a single-node k3d
cluster (k3s, its built-in NetworkPolicy controller), with a stand-in for
TRUSTIVAN’s claim and report endpoints. Under exactly the four verbs it:
deleted a pod as a dry run (the pod stayed) and for real (its Deployment
replaced it), labelled a pod, created the isolating NetworkPolicy (the
isolated pod could no longer open a connection to the API server’s service
address while its sibling could), scaled a Deployment to zero as a dry run
and for real, and refused a
kube-systemaction on its own. - Not verified: the responder against a live TRUSTIVAN deployment, and on a managed cluster (EKS, GKE, AKS) or with a CNI other than k3s’s.
Troubleshooting
- No events at all: check
kubectl -n trustivan-runtime logs ds/trustivan-runtime -c falcofor a probe error (a kernel without BTF), and-c relayfor a refused key (401) or an unreachable TRUSTIVAN.last_runtime_event_aton the cluster says when the last event arrived. - Events without a pod: the container plugin could not read the runtime
socket. Add its directory to
falco.runtimeSocketDirs. - Dropped events: a rule is firing far more than the curated set normally
does. Find it on the Runtime page and tune it with
falco.extraRules.