add tetragon policies

Signed-off-by: gwg313 <gwg313@pm.me>
This commit is contained in:
gwg313 2026-05-28 21:41:46 -04:00
parent baa0216960
commit 2671abc98c
Signed by: gwg313
GPG key ID: 60FF63B4826B7400
8 changed files with 103 additions and 39 deletions

View file

@ -0,0 +1,24 @@
apiVersion: cilium.io/v1alpha1
kind: TracingPolicy
metadata:
name: detect-shell-spawn
spec:
kprobes:
- call: "security_bprm_check"
syscall: false
selectors:
- matchBinaries:
- operator: In
values:
- /bin/sh
- /bin/bash
- /bin/dash
- /bin/ash
- /busybox/sh
args:
- index: 0
type: string
return: true