A sensor that stays on guard when someone tries to blind it.
Tephra watches every pod from the kernel, alerts on what attackers do, and can refuse it. Kill it, freeze it or flood it, and the kernel keeps refusing the moves that come next.
Detect. Refuse. Prove.
Click a card for the details.
What happens when an attacker kills the sensor
The first thing an attacker on a node does is blind the sensor. Step through it.
The kill is recorded
A signal to the agent goes to a ring buffer that nothing else writes to, so a flood cannot push it out. The next agent raises R030 with the sender and its pod.
# attacker, in a pod with the host's PIDs $ kill -9 $(pidof tephrad) # the next agent, seconds later R030 critical signal to the Tephra agent sender: /bin/busybox kill -9 3121 pod: shop/web-7c9d8-xk2lp
The kernel keeps recording
The detection programs and their buffer are pinned in the kernel. While no agent runs they keep recording, and the next agent reads what happened meanwhile. A stop by Kubernetes removes the pins: an upgrade leaves nothing behind.
# agent killed at 12:00:03, back at 12:00:14 replayed 4 records from while it was down alert R005 /etc/shadow read 12:00:06 dd
The next move is refused
Once the agent is gone, stopped or silent for 12 seconds, the kernel refuses a short list of moves in every pod: reading /etc/shadow, writing ld.so.preload or authorized_keys, loading a module, mounting, ptrace, running a deleted binary. Each refusal raises R038 when the agent is back.
$ dd if=/etc/shadow of=/dev/null dd: failed to open '/etc/shadow': Operation not permitted R038 critical refused while the sensor was blind file_read /etc/shadow by /bin/dd
A flood leaves counts, not gaps
Under pressure the kernel sends the first open of each file by each program in each pod, and counts the rest. A flood can no longer push the one record that matters out of the buffer.
file_summary /etc/shadow by /bin/cat in shop/web count 54,812 12:00:01 → 12:00:11
Results from the lab
Linux 5.15, the oldest kernel Tephra supports. Each number links to its run.
One Helm chart
Detection, blind mode and the dashboards. Enforcement stays off until you turn it on. From v0.2.0 the chart is also an OCI package on GHCR.
git clone https://github.com/tephrasec/tephra cd tephra helm install tephra deploy/helm/tephra \ -n tephra --create-namespace