RULE WRITING

when creating snort rules, keep the snort operating mode (ids/ips) in mind as it will determine the rule's purpose. user created rules are stored in /etc/snort/rules/local.rules

  • identify where the rule action is for IDS / IPS

  • identify the 5-tuple requirements: protocol, source/destination ip, source/destionation port

  • determine the rule options combination to use "general, payload, and/or non-payload option"

  • apply format syntax

  • test rule

RULE WRITING GUIDELINES

BASIC SYNTAX

DEFINITIONS

Last updated