Snort Analyser
First select your Wireshark trace:
Trace name: /log/with_pdf.zip
Snort Output
Click here for the Pcap file. The Snort output is:
alert.ids: [**] [1:10009:0] GZip [**] [Priority: 0] 01/05-19:16:41.637650 173.194.34.88:80 -> 192.168.47.171:2574 TCP TTL:128 TOS:0x0 ID:56984 IpLen:20 DgmLen:305 ***AP*** Seq: 0x7756221B Ack: 0x96EC4B61 Win: 0xFAF0 TcpLen: 20 [**] [1:10001:0] PDF [**] [Priority: 0] 01/05-19:16:42.194095 98.139.134.174:80 -> 192.168.47.171:2575 TCP TTL:128 TOS:0x0 ID:56989 IpLen:20 DgmLen:1500 ***AP*** Seq: 0x71B91DD6 Ack: 0xB4068CF7 Win: 0xFAF0 TcpLen: 20 [**] [1:10000:0] GIF [**] [Priority: 0] 01/05-19:16:42.645899 98.139.134.174:80 -> 192.168.47.171:2577 TCP TTL:128 TOS:0x0 ID:56999 IpLen:20 DgmLen:301 ***AP*** Seq: 0x305B3584 Ack: 0xFBDCF123 Win: 0xFAF0 TcpLen: 20 [**] [1:10001:0] PDF [**] [Priority: 0] 01/05-19:16:42.769082 98.139.134.174:80 -> 192.168.47.171:2576 TCP TTL:128 TOS:0x0 ID:57001 IpLen:20 DgmLen:999 ***AP*** Seq: 0x76890908 Ack: 0xB40C3237 Win: 0xFAF0 TcpLen: 20 [**] [1:10004:0] JPEG [**] [Priority: 0] 01/05-19:16:46.086765 98.139.134.174:80 -> 192.168.47.171:2576 TCP TTL:128 TOS:0x0 ID:57120 IpLen:20 DgmLen:1500 ***AP*** Seq: 0x768B408F Ack: 0xB40C3686 Win: 0xFAF0 TcpLen: 20 [**] [1:10004:0] JPEG [**] [Priority: 0] 01/05-19:16:48.192790 98.139.134.174:80 -> 192.168.47.171:2576 TCP TTL:128 TOS:0x0 ID:57221 IpLen:20 DgmLen:1500 ***AP*** Seq: 0x768C62DD Ack: 0xB40C38D1 Win: 0xFAF0 TcpLen: 20 |
Rules file
# Signature Detection alert tcp any any -> any any (content:"GIF89a"; msg:"GIF";sid:10000) alert tcp any any -> any any (content:"%PDF"; msg:"PDF";sid:10001) alert tcp any any -> any any (content:"|89 50 4E 47|"; msg:"PNG";sid:10002) alert tcp any any -> any any (content:"|50 4B 03 04|"; msg:"ZIP";sid:10003) alert tcp any any -> any any (content:"|FF D8|"; msg:"JPEG";sid:10004) alert tcp any any -> any any (content:"|49 44 33|"; msg:"MP3";sid:10005) alert tcp any any -> any any (content:"|52 49 46 46|"; msg:"AVI";sid:10006) alert tcp any any -> any any (content:"|46 57 53|"; msg:"Flash SWF";sid:10007) alert tcp any any -> any any (content:"|46 4C 56|"; msg:"Flash Video";sid:10008) alert tcp any any -> any any (content:"|1F 8B 08|"; msg:"GZip";sid:10009) alert tcp any any -> any any (content:"|52 61 72 21 1A 07 00|"; msg:"RAR";sid:10010) alert tcp any any -> any any (content:"|D0 CF 11 E0 A1 B1 1A E1|"; msg:"Office 2010";sid:10011)
Examples
You can use Snort as a stand-alone analyser using the "-r" option. The following are the traces that can be used in Snort:
- Trace with Hydra FTP crack/Bad Login: here Test.
- Trace with Hydra Telnet crack: here Test.
- Trace with Port Scan: here Test.
- Trace with SYN Flood (DoS): here Test.
- Trace with FIN Flood (DoS): here Test.
- Trace with PDF file: here Test.
- Trace with GIF file: here Test.
- Trace with PNG file: here Test.
- Trace with email attachments (MIME): here Test.
- Trace with email addresses: here Test.
- Trace with credit card details: here Test.
- Trace with DNS: here Test.
- Trace with Ping sweep: here Test.
- Trace with SNMP: here Test.
- Trace with ARP Spoof: here Test.
- Trace with Heartbleed: here Test.
- Teardrop DoS: here Test.
- Bittorrent: here Test.