mirror of
https://github.com/falcosecurity/falco.git
synced 2026-05-14 10:42:50 +00:00
rule(Delete....shell history): Skip docker progs
Also ignore docker programs which would prevent cases where the path is expressed within the container filesystem (/.bash_history) vs host filesystem (/var/lib/docker/overlay/.../.bash_history). Signed-off-by: Mark Stemm <mark.stemm@gmail.com>
This commit is contained in:
@@ -2645,7 +2645,9 @@
|
||||
- rule: Delete or rename shell history
|
||||
desc: Detect shell history deletion
|
||||
condition: >
|
||||
(modify_shell_history or truncate_shell_history) and not var_lib_docker_filepath
|
||||
(modify_shell_history or truncate_shell_history) and
|
||||
not var_lib_docker_filepath and
|
||||
not proc.name in (docker_binaries)
|
||||
output: >
|
||||
Shell history had been deleted or renamed (user=%user.name user_loginuid=%user.loginuid type=%evt.type command=%proc.cmdline fd.name=%fd.name name=%evt.arg.name path=%evt.arg.path oldpath=%evt.arg.oldpath %container.info)
|
||||
priority:
|
||||
|
||||
Reference in New Issue
Block a user