Skip to content

Instantly share code, notes, and snippets.

@fredleger
Created February 15, 2022 23:57
Show Gist options
  • Save fredleger/cc1566424ce7cba0fc9947447b9004b6 to your computer and use it in GitHub Desktop.
Save fredleger/cc1566424ce7cba0fc9947447b9004b6 to your computer and use it in GitHub Desktop.
falco custom rule exemple
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