diff -uNr snort-2.3.3/etc/snort.conf snort-2.3.3-spade/etc/snort.conf --- snort-2.3.3/etc/snort.conf 2005-04-23 21:48:52.000000000 +0200 +++ snort-2.3.3-spade/etc/snort.conf 2006-03-31 14:16:22.000000000 +0200 @@ -637,6 +637,7 @@ # Zeno # Ryan Russell +include spade.ossim.conf #========================================= diff -uNr snort-2.3.3/etc/spade.ossim.conf snort-2.3.3-spade/etc/spade.ossim.conf --- snort-2.3.3/etc/spade.ossim.conf 1970-01-01 01:00:00.000000000 +0100 +++ snort-2.3.3-spade/etc/spade.ossim.conf 2006-03-31 14:16:22.000000000 +0200 @@ -0,0 +1,117 @@ +# Example configuration file for Spade v021026.1 and later +# use this as your snort config file (-c option) to run Snort Spade-only +# include it in your snort config file or put lines of this form in it + +# set this to a directory Spade can read and write to store its files +var SPADEDIR /var/log/snort/ + +# see the Usage.Spade file for the full meaning of and all the options +# available for all these lines + +# This is the main Spade configuration line; it must appear first. +# Here are some options for this line: +# + dest: the Snort facility that the Spade output should go to +# (alert, log, or both) +# + statefile: where Spade's persistant data is stored +# + logfile: where Spade will store information about its run +# + Xdports,Xdips,Xsips,Xsports: like below but with global application +preprocessor spade: dest=alert logfile=$SPADEDIR/spade.log statefile=$SPADEDIR/spade.rcv + +# This line sets up your Spade homenet. Set this to the network that is +# connecting to the larger network at the point Spade is running. +# It is important to configure this line. +# Your networks should be like [10.0.0.0/8,192.168.0.0/16] or space separated +#preprocessor spade-homenet: 192.168.1.0/24 + +# Turn on some detectors with "spade-detect" lines. Each of these enables +# a cetain type of detector for a certain type of packet. If you start to +# feel overwhelmed, use Xdports, Xdips, Xsips, and/or Xsports on the lines +# below to suppress reports you don't care about, and/or disable some of +# your detectors these that you care least about. +# These detect packets going to seemingly closed dest ports +# You can add thresh=N to override the default reporting threshold. +# +# +# Closed Dest Ports +preprocessor spade-detect: type=closed-dport Xsports=80,443 tcpflags=synonly wait=2 +preprocessor spade-detect: type=closed-dport Xsports=53,137,138,139 proto=udp wait=2 +# Rare but Open Dst Used +preprocessor spade-detect: type=closed-dport Xsports=80,443 Xdports=80,443 tcpflags=synonly revwaitrpt wait=2 +preprocessor spade-detect: type=closed-dport Xsports=53,137,138,139 proto=udp revwaitrpt wait=2 +#preprocessor spade-detect: type=closed-dport tcpflags=weird thresh=0.5 +#preprocessor spade-detect: type=closed-dport tcpflags=synack +#preprocessor spade-detect: type=closed-dport tcpflags=established +#preprocessor spade-detect: type=closed-dport tcpflags=teardown +#preprocessor spade-detect: type=closed-dport to=nothome tcpflags=synonly wait=5 +#preprocessor spade-detect: type=closed-dport to=nothome tcpflags=weird +#preprocessor spade-detect: type=closed-dport to=nothome tcpflags=synack +#preprocessor spade-detect: type=closed-dport to=nothome tcpflags=established +#preprocessor spade-detect: type=closed-dport to=nothome tcpflags=teardown +#preprocessor spade-detect: type=closed-dport to=nothome proto=udp wait=7 + + +# These detect packets going to a seemingly non-live IP +# +# +preprocessor spade-detect: type=dead-dest Xdports=80,443 tcpflags=synack wait=2 +preprocessor spade-detect: type=dead-dest proto=udp Xsports=53 wait=2 +preprocessor spade-detect: type=dead-dest proto=icmp icmptype=noterr wait=2 +#preprocessor spade-detect: type=dead-dest tcpflags=weird wait=2 +#preprocessor spade-detect: type=dead-dest tcpflags=setup wait=2 +#preprocessor spade-detect: type=dead-dest tcpflags=synonly wait=2 +#preprocessor spade-detect: type=dead-dest tcpflags=established wait=5 +#preprocessor spade-detect: type=dead-dest tcpflags=teardown wait=2 +#preprocessor spade-detect: type=dead-dest proto=icmp icmptype=err wait=2 + + + +# These detect unusual use of a dest port by a source IP +# You can add thresh=N to override the default reporting threshold. +# +# Source used Odd Dest Port +preprocessor spade-detect: type=odd-dport proto=tcp wait=2 +preprocessor spade-detect: type=odd-dport proto=udp Xsports=53,137,138,139 wait=2 +#preprocessor spade-detect: type=odd-dport from=nothome proto=tcp +#preprocessor spade-detect: type=odd-dport from=nothome proto=udp + + +# These detect ICMP packets with an unusual type and code +# You can add thresh=N to override the default reporting threshold. +# +# +preprocessor spade-detect: type=odd-typecode +preprocessor spade-detect: type=odd-typecode to=nothome + + +# These detect unusual connections to a dest IP by a source IP when the +# dest port has predictable dest IPs +# You can add thresh=N to override the default reporting threshold. +# +# Source Used Odd Dest For Port +preprocessor spade-detect: type=odd-port-dest proto=tcp Xdports=80,443 +preprocessor spade-detect: type=odd-port-dest proto=udp Xsports=53,137,138,139 +#preprocessor spade-detect: type=odd-port-dest from=nothome proto=tcp Xdports=80 +#preprocessor spade-detect: type=odd-port-dest from=nothome proto=udp Xdports=80 + + +# This line causes Spade to adjust the reporting threshold for a given +# detector automatically; repeat it for each detector that you want to apply +# it to +# Target is the target rate of alerts for normal circumstances +# (0.01= 1% or you can give it an hourly rate) +# After the first hour (or however long the period is set to with "obsper"), +# the initially configured reporting threshold is ignored +# To use this, you will need to an option of the form id=