fix(rules): correct root_dir macro to avoid unwanted matching

Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
This commit is contained in:
Leonardo Grasso 2020-06-24 15:38:30 +02:00 committed by poiana
parent 298ba29c88
commit 1859552834

View File

@ -110,7 +110,7 @@
# This detects writes immediately below / or any write anywhere below /root
- macro: root_dir
condition: ((fd.directory=/ or fd.name startswith /root) and fd.name contains "/")
condition: ((fd.directory=/ or fd.name startswith /root/) and fd.name contains "/")
- list: shell_binaries
items: [ash, bash, csh, ksh, sh, tcsh, zsh, dash]