mirror of
https://github.com/falcosecurity/falco.git
synced 2025-08-11 02:52:54 +00:00
fix(rules): correct root_dir
macro to avoid unwanted matching
Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
This commit is contained in:
parent
298ba29c88
commit
1859552834
@ -110,7 +110,7 @@
|
|||||||
|
|
||||||
# This detects writes immediately below / or any write anywhere below /root
|
# This detects writes immediately below / or any write anywhere below /root
|
||||||
- macro: root_dir
|
- 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
|
- list: shell_binaries
|
||||||
items: [ash, bash, csh, ksh, sh, tcsh, zsh, dash]
|
items: [ash, bash, csh, ksh, sh, tcsh, zsh, dash]
|
||||||
|
Loading…
Reference in New Issue
Block a user