Files
Homelabv4/infrastructure/tetragon/tracing-policies/sensitive-file-access.yaml
T
2026-03-09 20:21:35 -05:00

27 lines
615 B
YAML

apiVersion: cilium.io/v1alpha1
kind: TracingPolicy
metadata:
name: sensitive-file-access
spec:
kprobes:
- call: fd_install
syscall: false
args:
- index: 0
type: int
- index: 1
type: file
selectors:
- matchArgs:
- index: 1
operator: Prefix
values:
- /etc/shadow
- /etc/passwd
- /etc/gshadow
- /root/.ssh
- /etc/kubernetes/pki
- /var/run/secrets/kubernetes.io
matchActions:
- action: Post