Skip to content

Commit

Permalink
Allow to whitelist config modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
claudio-vellage authored Mar 13, 2022
1 parent a5d3663 commit 4f9bebe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rules/falco_rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,9 @@
- list: shell_config_directories
items: [/etc/zsh]

- macro: user_known_shell_config_modifiers
condition: (never_true)

- rule: Modify Shell Configuration File
desc: Detect attempt to modify shell configuration files
condition: >
Expand All @@ -452,6 +455,7 @@
fd.directory in (shell_config_directories))
and not proc.name in (shell_binaries)
and not exe_running_docker_save
and not user_known_shell_config_modifiers
output: >
a shell configuration file has been modified (user=%user.name user_loginuid=%user.loginuid command=%proc.cmdline pcmdline=%proc.pcmdline file=%fd.name container_id=%container.id image=%container.image.repository)
priority:
Expand Down

0 comments on commit 4f9bebe

Please sign in to comment.