[Snort-users] Overlapping rules
Roberto Suarez Soto
robe at ...3881...
Fri Jan 4 10:24:05 EST 2002
I don't know if this has already been answered in the FAQ or the
list archives; in that case, just point me somewhere to RTFM :-)
I would like to know the behaviour of snort when some rules
overlap. The example I'm thinking about is Nimda/CodeRed rules. There
are a few rules that can be applied to a request done by an infected
computer. For example, let's take this request:
GET /scripts/..\../winnt/system32/cmd.exe?/c+dir HTTP/1.0
The rules "cmd.exe access" and "..\.. access" can be both
applied to this request. Which of them would be applied? Both? The first
that appears in the rules file?
I'm asking because I've got this scenery: snort is running in
one computer, logging both to syslog and to libpcap files. I then get
these files and pipe them to a snort installed in another machine, that
puts the results in a database. I use that database to do some weekly
and monthly analyses of the data.
But the thing is that I also run a snort-stat script daily to
inform me of snort activity, and in some cases, the number of alerts
given by this script and the queries to the database differ. The cases
are mostly the Nimda/CodeRed related rules, and some shellcode ones.
That's why I thought that maybe the behaviour of snort in case of
overlapping rules was not very "deterministic". I hope to be wrong,
I'm not sure if this is required, but anyway, before you ask:
Linux 2.2.19, libc6 2.2.4
Snort 1.8.3, using Debian package templates for 1.8p1
Snort command line:
snort -D -c /etc/snort/snort.conf -l /var/log/snort \
-b -d -u snort -g snort -s -i eth0 -o
The snort.conf file used is attached. Note that this is the
snort.conf file of the machine that puts the results on the database.
But anyway, besides the "output" configuration, everything else is the
same in the logging machine. Rules are the last from a week ago, I
believe (anyway, the rules file of these overlapping rules has not
changed since months ago).
Roberto Suarez Soto Alfa21 Outsourcing
robe at ...3881... http://www.alfa21.com
More information about the Snort-users