Created
February 15, 2022 23:57
-
-
Save fredleger/cc1566424ce7cba0fc9947447b9004b6 to your computer and use it in GitHub Desktop.
falco custom rule exemple
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
customRules: | |
my-rules.yaml: |- | |
- macro: greetings | |
condition: > | |
proc.name = cowsay | |
- rule: Try to say use cowsay in Container | |
desc: Detect use of greetings command in container | |
condition: > | |
spawned_process and | |
container and | |
greetings | |
output: > | |
Cowsay command launched in container (user=%user.name user_loginuid=%user.loginuid command=%proc.cmdline parent_process=%proc.pname | |
container_id=%container.id container_name=%container.name image=%container.image.repository:%container.image.tag) | |
priority: NOTICE | |
tags: [dummy, process, demo] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment