~/ learn/ comp-400/ cards/ Anomaly detection, signature detection, sensors, and Snort
1 of 10

A Snort rule: seven header fields, then payload options

A Snort rule: seven header fields, then payload options

Answer

alert tcp any any -> 10.1.0.0/16 80 ( \ msg:"SQL keyword in an inbound web request"; \ content:"union select"; nocase; \ classtype:web-application-attack; sid:1000017; rev:1;)

Header, in order: action (alert = alert then log), protocol (tcp), source address (any), source port (any), direction (->), destination address (10.1.0.0/16), destination port (80). Then options: msg and classtype are meta-data and do not affect detection; content is a payload option; nocase modifies the content keyword immediately before it, not the rule.

Stallings & Brown, Computer Security 5e, ch8 §8.3–§8.9

space flip · ← → navigate · esc to exit
NORMAL ~/memra/library/636906fb-c043-4209-80f0-e03d58306692/flashcard utf-8 LF