Snort tip: Quick suppression technique

| No Comments

If you manage a snort box, you know how much time you spend tuning the thresholds and tweaking the rules. Here's a quick way to search your rules files for sid to suppress in your threshold.conf. This works on BSD, but Linux should be fairly close.

1. Search the all the rules files for a pattern:

for i in `ls /path/to/rules` ; do grep -i "Pattern to search" "$i" ; done

This should return the line in the rules file with the sid you need to suppress

 

2. Issue this command to add the suppression to your threshold.conf:

echo suppress gen_id 1, sid_id <SID> >> path/to/threshold.conf

 

Step 1 will grep through all the rules files in the folder for a match on the pattern. Step 2 will add the "suppress" line at the end of your threshold.conf. Remember to cycle snort initialize the changes.

Leave a comment

About this Entry

This page contains a single entry by Jeff published on January 13, 2010 7:33 AM.

I've got nothing to hide - and other myths about privacy was the previous entry in this blog.

Saints Song Collection is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.