Next:
3.1 The Basics
Up:
SNORTUsers Manual 2.8.6
Previous:
2.10 Multiple Configurations
Contents
3. Writing Snort Rules
Subsections
3.1 The Basics
3.2 Rules Headers
3.2.1 Rule Actions
3.2.2 Protocols
3.2.3 IP Addresses
3.2.4 Port Numbers
3.2.5 The Direction Operator
3.2.6 Activate/Dynamic Rules
3.3 Rule Options
3.4 General Rule Options
3.4.1 msg
3.4.2 reference
3.4.3 gid
3.4.4 sid
3.4.5 rev
3.4.6 classtype
3.4.7 priority
3.4.8 metadata
3.4.9 General Rule Quick Reference
3.5 Payload Detection Rule Options
3.5.1 content
3.5.2 nocase
3.5.3 rawbytes
3.5.4 depth
3.5.5 offset
3.5.6 distance
3.5.7 within
3.5.8 http_client_body
3.5.9 http_cookie
3.5.10 http_raw_cookie
3.5.11 http_header
3.5.12 http_raw_header
3.5.13 http_method
3.5.14 http_uri
3.5.15 http_raw_uri
3.5.16 http_stat_code
3.5.17 http_stat_msg
3.5.18 http_encode
3.5.19 fast_pattern
3.5.20 uricontent
3.5.21 urilen
3.5.22 isdataat
3.5.23 pcre
3.5.24 file_data
3.5.25 byte_test
3.5.26 byte_jump
3.5.27 ftpbounce
3.5.28 asn1
3.5.29 cvs
3.5.30 dce_iface
3.5.31 dce_opnum
3.5.32 dce_stub_data
3.5.33 ssl_version
3.5.34 ssl_state
3.5.35 Payload Detection Quick Reference
3.6 Non-Payload Detection Rule Options
3.6.1 fragoffset
3.6.2 ttl
3.6.3 tos
3.6.4 id
3.6.5 ipopts
3.6.6 fragbits
3.6.7 dsize
3.6.8 flags
3.6.9 flow
3.6.10 flowbits
3.6.11 seq
3.6.12 ack
3.6.13 window
3.6.14 itype
3.6.15 icode
3.6.16 icmp_id
3.6.17 icmp_seq
3.6.18 rpc
3.6.19 ip_proto
3.6.20 sameip
3.6.21 stream_size
3.6.22 Non-Payload Detection Quick Reference
3.7 Post-Detection Rule Options
3.7.1 logto
3.7.2 session
3.7.3 resp
3.7.4 react
3.7.5 tag
3.7.6 activates
3.7.7 activated_by
3.7.8 count
3.7.9 replace
3.7.10 detection_filter
3.7.11 Post-Detection Quick Reference
3.8 Rule Thresholds
3.9 Writing Good Rules
3.9.1 Content Matching
3.9.2 Catch the Vulnerability, Not the Exploit
3.9.3 Catch the Oddities of the Protocol in the Rule
3.9.4 Optimizing Rules
3.9.5 Testing Numerical Values