Snort
[Top] [All Lists]

Re: [Snort-users] How do you keep customized rules updated?

Subject: Re: [Snort-users] How do you keep customized rules updated?
From: Alex Butcher <alex.butcher@bristol.ac.uk>
Date: Thu, 22 Feb 2007 09:46:36 +0000
Cc: snort-users@lists.sourceforge.net
Delivered-to: sp-com-lists@consult.net
Delivered-to: snort-list@securepoint.com
In-reply-to: <20070221095213.O83384@soma.dmz.copacetic.net>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=snort-users>
List-help: <mailto:snort-users-request@lists.sourceforge.net?subject=help>
List-id: "Snort users talk about... Snort!" <snort-users.lists.sourceforge.net>
List-post: <mailto:snort-users@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/snort-users>, <mailto:snort-users-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/snort-users>, <mailto:snort-users-request@lists.sourceforge.net?subject=unsubscribe>
References: <78454.91719.qm@web57707.mail.re3.yahoo.com> <20070221095213.O83384@soma.dmz.copacetic.net>
Sender: snort-users-bounces@lists.sourceforge.net
User-agent: Thunderbird 1.5.0.9 (X11/20061222)
Steve Bernacki wrote:
> Actually, Oinkmaster works very well for keeping customized rulesets 
> updated as well.  The trick is that it requires a lot of up front work 
> initially to set up the appropriate disablesid/modifysid rules in 
> order to programmatically make your customizations.  However, Once this is 
> done, it makes keeping up with new signature releases a breeze.

Seconded.

Examples of some things I do:

Reclassification, using new, locally-defined classifications:

modifysid * "(MALWARE.*)classtype:([^;]*);(.*)" | "$1 
classtype:malware-activity;$3"

Enabling tagging of sessions:

modifysid * "classtype:[ ]*successful-user;" | 
"classtype:successful-user; tag:host,10,seconds;"

modifysid * "classtype:[ ]*successful-admin;" | 
"classtype:successful-admin; tag:host,10,seconds;"

Adding thresholding:

modifysid * "classtype:[ ]*chat-protocol;" | "classtype:chat-protocol; 
threshold: type limit, track by_src, count 1, seconds 86400;"

ICMP thresholding:

modifysid * "(msg:\"ICMP Destination Unreachable Port Unreachable.*)\)" 
| "$1 threshold: type both, track by_dst, count 800, seconds 600;\)"

modifysid * "(msg:\"ICMP.*PING.*)\)" | "$1 threshold: type both, track 
by_src, count 800, seconds 600;\)"

Regex wizards can probably improve on some of my gnarly regexes. :-)

> Steve

Best Regards,
Alex.
-- 
Alex Butcher: Security & Integrity, Personal Computer Systems Group
Information Systems and Computing             GPG Key ID: F9B27DC9
GPG Fingerprint: D62A DD83 A0B8 D174 49C4 2849 832D 6C72 F9B2 7DC9

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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

<Prev in Thread] Current Thread [Next in Thread>