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
24
platform/tetragon/policies/tracingpolicy-shell-spawn.yaml
Normal file
24
platform/tetragon/policies/tracingpolicy-shell-spawn.yaml
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue