exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

snort-lib

snort-lib
Posted Aug 17, 1999
Authored by Martin Roesch

snort-lib is a set of example Snort rules. It's a short one, about 43 rules total, but it gives a good overview of the basic rule types and how to use the pattern matcher properly.

tags | tool, sniffer
SHA-256 | f477f9a7c0cb5a2946c5cb42f3147c4a560236eb5040540c1be234903e0662ee

snort-lib

Change Mirror Download
# This file posits that you're trying to defend the 192.168.1.0 class C network

# we're trying to log data to "sensitive" ports, plus alert on truly suspicious activity

# some of these things may not be suspicious in your network environment, but we run a
# fairly tight network (access wise) where I work, so most every alert rule for specific
# network rules shown here applies in my case

# if you need help writing a specific rule, feel free to drop me a line!

# -Marty (roesch@clark.net)


##################################
# alert on interesting packets
##################################

# look for stealth port scans/sweeps
alert tcp any any -> 192.168.1.0/24 any <SYN FIN Scan> {SF}
alert tcp any any -> 192.168.1.0/24 any <FIN Scan> {F}
alert tcp any any -> 192.168.1.0/24 any <NULL Scan> {}
alert tcp any any -> 192.168.1.0/24 any <XMAS Scan> {FPU}

# find backdoor attempts
alert udp any any -> 192.168.1.0/24 31337 <Back Orifice>
alert tcp any any -> 192.168.1.0/24 12345 <Netbus>
alert tcp any any -> 192.168.1.0/24 12346 <Netbus>
alert tcp any any -> 192.168.1.0/24 10752 <Linux mountd backdoor>
alert udp any any -> 192.168.1.0/24 2140 <Deep Throat>

# NT SNMP user list
alert udp any any -> 192.168.1.0/24 161 <NT user list> [|2b 06 01 04 01 4d 01 02 19|]

# other interesting ports....
alert udp any any -> 192.168.1.0/24 161 <SNMP traffic>
alert tcp any any -> 192.168.1.0/24 143 <IMAP traffic>
alert tcp any any -> 192.168.1.0/24 512 <REXEC traffic>
alert tcp any any -> 192.168.1.0/24 513 <RSH traffic>
alert tcp any any -> 192.168.1.0/24 514 <RLOGIN traffic>
alert udp any any -> 192.168.1.0/24 194 <IRC traffic>
alert tcp any any -> 192.168.1.0/24 194 <IRC traffic>
alert tcp any any -> 192.168.1.0/24 111 <Portmap traffic>
alert udp any any -> 192.168.1.0/24 111 <Portmap traffic>
alert tcp any any -> 192.168.1.0/24 32771 <Sun portmap traffic>
alert udp any any -> 192.168.1.0/24 32771 <Sun portmap traffic>

# token DoS detector
alert udp 192.168.1.0/24 7 -> 192.168.1.0/24 19 <UDP bomb>
alert udp 192.168.1.0/24 19 -> 192.168.1.0/24 7 <UDP bomb>

# alert on incoming phf attacks
alert tcp any any -> 192.168.1.0/24 80 [/cgi-bin/phf] <Possible PHF Attack>

# x86 buffer overflows, put the specifics before the general case
alert tcp any any -> 192.168.1.0/24 143 <IMAP buffer overflow!> [|E8 C0FF FFFF|/bin/sh]
alert tcp any any -> 192.168.1.0/24 53 <DNS buffer overflow!> [|80E8 D7FF FFFF|/bin/sh]

# this one looks for the bunch of NOP's before the actual exploit string
alert tcp any any -> 192.168.1.0/24 any <Possible x86 buffer overflow> [|9090 9090 9090 9090 9090|]

# netbios crap
alert udp any any -> 192.168.1.0/24 137 <SMB Name Wildcard> [CKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA|00 00|]
alert tcp any any -> 192.168.1.0/24 139 <Samba client access> [|00|Unix|00|Samba]
alert tcp any any -> 192.168.1.0/24 139 <SMB CD...> [\...|00 00 00|]
alert tcp any any -> 192.168.1.0/24 139 <SMB CD..> [\..|2f 00 00 00|]
alert tcp any any -> 192.168.1.0/24 139 <SMB C$ access> [\C$|00 41 3a 00|]
alert tcp any any -> 192.168.1.0/24 139 <SMB D$ access> [\D$|00 41 3a 00|]
alert tcp any any -> 192.168.1.0/24 139 <SMB ADMIN$ access> [\ADMIN$|00 41 3a 00|]

# alert on stuff going where it probably shouldn't be
alert tcp any 53 -> 192.168.1.0/24 :1024 <Source Port traffic>
alert tcp any 25 -> 192.168.1.0/24 :1024 <Source Port traffic>
alert tcp any :1024 -> 192.168.1.0/24 :1024 <Source Port traffic>

#log all ICMP traffic
log icmp any any -> any any

#log all TCP/UDP traffic

# all tcp traffic below port 1024
log tcp any any -> 192.168.1.0/24 :1024

# grab xwindows traffic
log tcp any any -> 192.168.1.0/24 6000:6010

# high port RPC stuff too
log tcp any any -> 192.168.1.0/24 32000:33000

# do the same for UDP
log udp any any -> 192.168.1.0/24 :2000
log udp any any -> 192.168.1.0/24 32000:33000

Login or Register to add favorites

File Archive:

September 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Sep 1st
    261 Files
  • 2
    Sep 2nd
    17 Files
  • 3
    Sep 3rd
    38 Files
  • 4
    Sep 4th
    52 Files
  • 5
    Sep 5th
    23 Files
  • 6
    Sep 6th
    27 Files
  • 7
    Sep 7th
    0 Files
  • 8
    Sep 8th
    1 Files
  • 9
    Sep 9th
    16 Files
  • 10
    Sep 10th
    38 Files
  • 11
    Sep 11th
    21 Files
  • 12
    Sep 12th
    0 Files
  • 13
    Sep 13th
    0 Files
  • 14
    Sep 14th
    0 Files
  • 15
    Sep 15th
    0 Files
  • 16
    Sep 16th
    0 Files
  • 17
    Sep 17th
    0 Files
  • 18
    Sep 18th
    0 Files
  • 19
    Sep 19th
    0 Files
  • 20
    Sep 20th
    0 Files
  • 21
    Sep 21st
    0 Files
  • 22
    Sep 22nd
    0 Files
  • 23
    Sep 23rd
    0 Files
  • 24
    Sep 24th
    0 Files
  • 25
    Sep 25th
    0 Files
  • 26
    Sep 26th
    0 Files
  • 27
    Sep 27th
    0 Files
  • 28
    Sep 28th
    0 Files
  • 29
    Sep 29th
    0 Files
  • 30
    Sep 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close