Lab 13
Lab 13
alert tcp any 21 -> any any (msg:"FTP Bad login"; content:"530 User "; nocase;
flow:from_server,established; sid:491; rev:5;)
Detect Telnet login
proto { all } \
scan_type { all } \
sense_level { high } \
logfile { portscan.log }
alert tcp any any -> any 80 (msg:"DOS flood denial of service attempt";flow:to_server; \
sid:25101; rev:1;)
alert tcp any any -> any 110 (flags:S;msg:"Pop-3 connection detection";sid:9000000;rev:1;)
alert tcp any any -> any 143 (flags:S;msg:"IMAP connection detection";sid:9000001;rev:1;)
alert icmp any any -> any any (msg:"ICMP Packet found";sid:9000000;)
alert icmp any any -> any any (itype: 0; msg: "ICMP Echo Reply";sid:9000001;)
alert icmp any any -> any any (itype: 3; msg: "ICMP Destination Unreachable";sid:9000002;)
alert icmp any any -> any any (itype: 4; msg: "ICMP Source Quench Message received";sid:9000003;)
alert icmp any any -> any any (itype: 5; msg: "ICMP Redirect message";sid:9000004;)
alert icmp any any -> any any (itype: 8; msg: "ICMP Echo Request";sid:9000005;)
alert icmp any any -> any any (itype: 11; msg: "ICMP Time Exceeded";sid:9000006;)
Detect PDF files.
alert tcp any any -> any any (content:"|49 44 33|"; msg:"MP3";sid:10005)
Sound file:
Graphics file:
Detect and extract RAR files
Rules used to detect:
alert tcp any any -> any any (content:"|52 61 72 21 1A 07 00|"; msg:"RAR";sid:10010)
Detect BitTorrent
Rules used to detect:
alert tcp any any -> any any (msg: "P2P .torrent metafile request"; content:"HTTP/"; content:".torrent";
flow:established,to_server; classtype:policy-violation; sid:1100010; rev:1;)
alert tcp any any -> any any (msg: "P2P torrent metafile download"; content:"|64 38 3a|announce";
flow:established; classtype:policy-violation; sid:1100011; rev:1;)
alert tcp any any -> any any (msg:"P2P BitTorrent handshake"; flow:to_server,established;
content:"BitTorrent protocol|0000 0000|"; classtype:policy-violation; sid:1100012; rev:1;)