Skip to content

Instantly share code, notes, and snippets.

@leogr
Created October 25, 2020 10:33
Show Gist options
  • Save leogr/153220d08c1089bd72bbb47552bb130f to your computer and use it in GitHub Desktop.
Save leogr/153220d08c1089bd72bbb47552bb130f to your computer and use it in GitHub Desktop.
A Falco rule skeleton
# A Falco rules file is a YAML file containing three types of elements:
#
# - rule: Conditions under which an alert should be generated.
# A rule is accompanied by a descriptive output string that is sent with the alert.
#
# - macro: Rule condition snippets that can be re-used inside rules and even other macros.
# Macros provide a way to name common patterns and factor out redundancies in rules.
#
# - list: Collections of items that can be included in rules, macros, or other lists.
# Unlike rules and macros, lists cannot be parsed as filtering expressions.
- rule: # A short, unique name for the rule
desc: # A longer description of what the rule detects
condition: # A filtering expression that is applied against events
output: # Specifies the message that should be output if a matching event occurs
priority: # EMERGENCY, ALERT, CRITICAL, ERROR, WARNING, NOTICE, etc...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment