Snort Exercise
++++++++++++++
Q1. Detect a XMAS scan
alert tcp $EXTERNAL_NET any -> $HOME_NET any (msg:"XMAS Scan Detected"; flow:stateless; flags:FPU; sid:1000002; rev:1;)

Q2. Detect attempts to access your Webserver's /admin page
alert tcp $EXTERNAL_NET any -> $HOME_NET 80 (msg:"Warning!!, A host is trying to access /admin"; content:"/admin"; sid:1000003; rev:1; classtype:web-application-activity;)

Q3. SSH Brute Force (more than 3 attempts in 60 secs)
alert tcp any any -> $HOME_NET 22 (msg:"Potential SSH Brute Force Attack"; \
 flow:to_server; \
 content:"SSH-"; \
 detection_filter:track by_src, count 3, seconds 60; \
 classtype:attempted-dos; \
 sid:1000004; \
 rev:1; resp:rst_all; \
 )
