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,29 @@
|
|||
apiVersion: cilium.io/v1alpha1
|
||||
kind: TracingPolicy
|
||||
metadata:
|
||||
name: detect-sensitive-binary-execution
|
||||
spec:
|
||||
kprobes:
|
||||
- call: "security_bprm_check"
|
||||
syscall: false
|
||||
|
||||
selectors:
|
||||
- matchBinaries:
|
||||
- operator: In
|
||||
values:
|
||||
- /usr/bin/curl
|
||||
- /usr/bin/wget
|
||||
- /usr/bin/nc
|
||||
- /usr/bin/netcat
|
||||
- /usr/bin/nmap
|
||||
- /usr/bin/socat
|
||||
- /usr/bin/ssh
|
||||
- /usr/sbin/iptables
|
||||
- /usr/bin/apt
|
||||
- /usr/bin/apt-get
|
||||
|
||||
args:
|
||||
- index: 0
|
||||
type: string
|
||||
|
||||
return: true
|
||||
Loading…
Add table
Add a link
Reference in a new issue