Snort mailing list archives

Re: Can someone show an example how to force snort block ssh bruteforce?


From: Joel Esler <jesler () sourcefire com>
Date: Fri, 20 Apr 2012 12:16:43 -0400

You'd probably want to run Snort in inline mode and looking into rate_filter:

http://manual.snort.org/node19.html


On Apr 20, 2012, at 4:11 AM, kay <kay.diam () gmail com> wrote:

Hi everyone

The only I have reached is alerting about SSH bruteforce:
04/20-11:57:27.155161 [**] [1:19559:2] BAD-TRAFFIC SSH brute force login attempt [**] [Classification: Misc activity] 
[Priority: 3] {TCP} 172.16.1.1:50585 -> 172.16.1.2:22

Here are the rules I used:
alert tcp $EXTERNAL_NET any -> $HOME_NET 22 (msg:"BAD-TRAFFIC SSH brute force login attempt"; 
flow:to_server,established; content:"SSH-"; depth:4; detection_filter:track by_src, count 5, seconds 60; 
classtype:misc-activity; sid:19559; rev:2;)
drop tcp $EXTERNAL_NET any -> $HOME_NET 22 (msg:"BAD-TRAFFIC SSH brute force login attempt"; 
flow:to_server,established; content:"SSH-"; depth:4; detection_filter:track by_src, count 5, seconds 60; 
classtype:misc-activity; sid:19559; rev:2;)
------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2_______________________________________________
Snort-users mailing list
Snort-users () lists sourceforge net
Go to this URL to change user options or unsubscribe:
https://lists.sourceforge.net/lists/listinfo/snort-users
Snort-users list archive:
http://www.geocrawler.com/redir-sf.php3?list=snort-users

Please visit http://blog.snort.org to stay current on all the latest Snort news!

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Snort-users mailing list
Snort-users () lists sourceforge net
Go to this URL to change user options or unsubscribe:
https://lists.sourceforge.net/lists/listinfo/snort-users
Snort-users list archive:
http://www.geocrawler.com/redir-sf.php3?list=snort-users

Please visit http://blog.snort.org to stay current on all the latest Snort news!

Current thread: