Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaizhe committed Apr 11, 2019
1 parent 79d6943 commit cb51e01
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions rules/falco_rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1907,10 +1907,9 @@
- rule: Create hidden files or directories
desc: Detect hidden files or directories created
condition: >
(container and
((open_write and evt.arg.flags contains "O_CREAT" and
(((open_write and evt.arg.flags contains "O_CREAT" and
fd.name contains "/." and not fd.name pmatch (exclude_hidden_directories)) or
(mkdir and evt.arg.path contains "/.")))
(mkdir and evt.arg.path contains "/.")) and container)
output: >
Hidden file or directory created (user=%user.name command=%proc.cmdline
file=%fd.name container_id=%container.id container_name=%container.name image=%container.image.repository:%container.image.tag)
Expand Down

0 comments on commit cb51e01

Please sign in to comment.