Re: [Snort-users] Rules to block FT

This is a discussion on Re: [Snort-users] Rules to block FT within the Snort forums, part of the System Security and Security Related category; This is a multi-part message in MIME format. --===============0121369884== Content-class: urn:content-classes:message Content-Type: multipart/alternative; ...


Go Back   Usenet Forums > System Security and Security Related > Snort

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-28-2007
Joel Ebrahimi
 
Posts: n/a
Default Re: [Snort-users] Rules to block FT

This is a multi-part message in MIME format.

--===============0121369884==
Content-class: urn:content-classes:message
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01C7B99A.C7028322"

This is a multi-part message in MIME format.

------_=_NextPart_001_01C7B99A.C7028322
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi Dwane,

There is a problem with this rule. The content detection portion of the =
rule looks good, it looks for the 530 response from FTP for an incorrect =
login.=20
The problem lies within the rule header though (alert tcp $HOME_NET any =
-> $EXTERNAL_NET 21), this content that is being looked for is from the =
client to the server, where it is really the server that sends the 530 =
error code so by switching the direction your monitoring this pattern =
for you should be good to go (alert tcp $EXTERNAL_NET 21 -> $HOME_NET =
any).

//Joel=20

StillSecure
Joel Ebrahimi
Senior Software Engineer


http://www.stillsecure.com/
The information transmitted is intended only for the person
to whom it is addressed and may contain confidential material.
Review or other use of this information by persons other than
the intended recipient is prohibited. If you've received
this in error, please contact the sender and delete
from any computer.=20



-----Original Message-----
From: snort-users-bounces@lists.sourceforge.net on behalf of Atkins, =
Dwane P
Sent: Wed 6/27/2007 9:18 AM
To: Snort-users@lists.sourceforge.net
Subject: [Snort-users] Rules to block FT
=20
I have a testbed set up and have already alerted and blocked via
snortsam for SSH. I am now working on FTP.

=20

My rule:

=20

alert tcp $HOME_NET any -> $EXTERNAL_NET 21 ( msg:"BLOCKED Potential
FTP Brute-Force attempt";flow:from_server,established; content:"530 ";
pcre:"/^530\s+(Login|User|Failed)/smi";classtype:unsuccessful-user;
threshold: type threshold, track by_dst, count 10, seconds 60;
sid:1000002; rev:1; fwsam: src, 5 minutes;)

=20

Does this look like it will work? I am not that adept about building
rules and am learning. This was from bleeding edge, I think.

=20

Dwane

=20



------_=_NextPart_001_01C7B99A.C7028322
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.5.7652.24">
<TITLE>RE: [Snort-users] Rules to block FT</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=3D2>Hi Dwane,<BR>
<BR>
There is a problem with this rule. The content detection portion of the =
rule looks good, it looks for the 530 response from FTP for an incorrect =
login.<BR>
The problem lies within the rule header though (alert tcp $HOME_NET any =
-&gt; $EXTERNAL_NET 21), this content that is being looked for is from =
the client to the server, where it is really the server that sends the =
530 error code so by switching the direction your monitoring this =
pattern for you should be good to go (alert tcp $EXTERNAL_NET 21 =
-&gt;&nbsp; $HOME_NET any).<BR>
<BR>
//Joel<BR>
<BR>
StillSecure<BR>
Joel Ebrahimi<BR>
Senior Software Engineer<BR>
<BR>
<BR>
<A =
HREF=3D"http://www.stillsecure.com/">http://www.stillsecure.com/</A><BR>
The information transmitted is intended only for the person<BR>
to whom it is addressed and may contain confidential material.<BR>
Review or other use of this information by persons other than<BR>
the intended recipient is prohibited. If you've received<BR>
this in error, please contact the sender and delete<BR>
from any computer.<BR>
<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: snort-users-bounces@lists.sourceforge.net on behalf of Atkins, =
Dwane P<BR>
Sent: Wed 6/27/2007 9:18 AM<BR>
To: Snort-users@lists.sourceforge.net<BR>
Subject: [Snort-users] Rules to block FT<BR>
<BR>
I have a testbed set up and have already alerted and blocked via<BR>
snortsam for SSH.&nbsp; I am now working on FTP.<BR>
<BR>
<BR>
<BR>
My rule:<BR>
<BR>
<BR>
<BR>
alert tcp $HOME_NET any -&gt; $EXTERNAL_NET 21 (&nbsp;&nbsp; =
msg:&quot;BLOCKED Potential<BR>
FTP Brute-Force attempt&quot;;flow:from_server,established; =
content:&quot;530 &quot;;<BR>
pcre:&quot;/^530\s+(Login|User|Failed)/smi&quot;;classtype:unsuccessful-u=
ser;<BR>
threshold: type threshold, track by_dst, count 10, seconds 60;<BR>
sid:1000002; rev:1; fwsam: src, 5 minutes;)<BR>
<BR>
<BR>
<BR>
Does this look like it will work? I am not that adept about building<BR>
rules and am learning.&nbsp; This was from bleeding edge, I think.<BR>
<BR>
<BR>
<BR>
Dwane<BR>
<BR>
<BR>
<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C7B99A.C7028322--


--===============0121369884==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
--===============0121369884==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Snort-users mailing list
Snort-users@lists.sourceforge.net
Go to this URL to change user options or unsubscribe:
https://lists.sourceforge.net/lists/...fo/snort-users
Snort-users list archive:
http://www.geocrawler.com/redir-sf.p...st=snort-users
--===============0121369884==--

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:06 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0