add tetragon policies
Signed-off-by: gwg313 <gwg313@pm.me>
This commit is contained in:
parent
baa0216960
commit
2671abc98c
8 changed files with 103 additions and 39 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue