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,25 @@
apiVersion: cilium.io/v1alpha1
kind: TracingPolicy
metadata:
name: detect-sensitive-file-access
spec:
kprobes:
- call: "security_file_open"
syscall: false
selectors:
- matchArgs:
- index: 0
operator: Prefix
values:
- /etc/shadow
- /etc/passwd
- /root
- /proc/kcore
- /var/run/secrets/kubernetes.io
args:
- index: 0
type: string
return: true