Tuesday, March 4, 2008

Snort Rule for SQL Slammer

Snort rule for SQL slammer is as follows:

alert udp any any -> 192.168.1.0 1434 \
(msg:”SQL Slammer Infection”; threshold: type threshold, \
track by_dst, count 10, seconds 60; sid:16546854; rev:6; )


It alerts if over 10 packets are sent in 60 seconds.

Another method would be to detect some of the data contents of the SQL Slammer packet, which would be more accurate, and cause less false positives.

1 comment:

crthomas said...

snort -c sql_rule -i eth0 -L snort_out