mirror of
https://github.com/falcosecurity/falco.git
synced 2025-09-20 09:27:47 +00:00
rule(macro multipath_writing_conf): create and use the macro
`multipath`, which is run by `systemd-udevd`, writes to `/etc/multipath/wwids`, `/etc/multipath/bindings` and a few other paths under `/etc/multipath` as part of its normal operation. Signed-off-by: Nicolas Marier <nmarier@coveo.com>
This commit is contained in:
@@ -1213,6 +1213,9 @@
|
|||||||
fd.name startswith /etc/ssh/ssh_monitor_config_ or
|
fd.name startswith /etc/ssh/ssh_monitor_config_ or
|
||||||
fd.name startswith /etc/ssh/ssh_config_))
|
fd.name startswith /etc/ssh/ssh_config_))
|
||||||
|
|
||||||
|
- macro: multipath_writing_conf
|
||||||
|
condition: (proc.name = multipath and fd.name startswith /etc/multipath/)
|
||||||
|
|
||||||
# Add conditions to this macro (probably in a separate file,
|
# Add conditions to this macro (probably in a separate file,
|
||||||
# overwriting this macro) to allow for specific combinations of
|
# overwriting this macro) to allow for specific combinations of
|
||||||
# programs writing below specific directories below
|
# programs writing below specific directories below
|
||||||
@@ -1333,6 +1336,7 @@
|
|||||||
and not automount_using_mtab
|
and not automount_using_mtab
|
||||||
and not mcafee_writing_cma_d
|
and not mcafee_writing_cma_d
|
||||||
and not avinetworks_supervisor_writing_ssh
|
and not avinetworks_supervisor_writing_ssh
|
||||||
|
and not multipath_writing_conf
|
||||||
|
|
||||||
- rule: Write below etc
|
- rule: Write below etc
|
||||||
desc: an attempt to write to any file below /etc
|
desc: an attempt to write to any file below /etc
|
||||||
|
Reference in New Issue
Block a user