homelab-gitops/platform/tetragon/policies/tracingpolicy-sensitive-file-access.yaml
gwg313 2671abc98c
add tetragon policies
Signed-off-by: gwg313 <gwg313@pm.me>
2026-05-28 21:51:44 -04:00

25 lines
522 B
YAML

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