Sunday, September 23. 2007Bro-Nids: Pads Signatures ConversionTrackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
Great article and great tip!
But if you going to use sed/awk anyway, maybe it would be easier to use Perl. (also easier to read) Here is an example #!/usr/bin/perl -w use strict; my ($srv, $ver, $sig); while () { next if ( /^(#|\s+$)/); ($srv, $ver, $sig) = split(/,/); chomp($sig); $ver =~ s/\$\d//g; $ver =~ s/^v\/(.*)\/\/(?:.*)?\//$1/; print "signature $srv\n{\n"; print "\tipproto == tcp\n"; print "\tsrc-ip != local_nets\n"; print "\tdst-ip == local_nets\n"; print "\tpayload /$sig/\n"; print "\ttcp-state established\n"; print "\tevent \"$ver\"\n}\n"; } Use the command as "perl pads-signature-list" Anyway good story, keep it coming!
Hmm, it removed some characters from my posting. Here is another go.
#!/usr/bin/perl -w use strict; my ($srv, $ver, $sig); while (<>) { next if ( /^(#|\s+$)/); ($srv, $ver, $sig) = split(/,/); chomp($sig); $ver =~ s/\$\d//g; $ver =~ s/^v\/(.*)\/\/(?:.*)?\//$1/; print "signature $srv\n{\n"; print "\tipproto == tcp\n"; print "\tsrc-ip != local_nets\n"; print "\tdst-ip == local_nets\n"; print "\tpayload /$sig/\n"; print "\ttcp-state established\n"; print "\tevent \"$ver\"\n}\n"; } As I said, use the command as: "perl <script> pads-signature-list". Hopefully in the (near) future bro will be included into Sguil.
Hi Robin.G,
Guess I'm too used to sed and awk Now we have another converter in Perl Cheers ;]
Well, I have posted an article on my site about your point of view, together with an updated (alpha) release of the Perl script.
The Perl script will create for each signature an unique id (e.g. ssh-001, ssh-002, www-001, etc)
Sorry if this has been addressed before. But I'm in search of a secondary IDS and had a few questions regarding Bro NIDS. I'm looking to deploy in a large environment, but wanted to learn some things before commencing to test.
1. How easy is it to deploy compared to Snort? 2. What would be the learning curve for someone to build/deploy/configure/tune BRO who has built/deployed/configured/tuned Snort? 3. Does it easily accept all of the existing Snort signatures? 4. What is the recommended hardware for a sensor sniffing 200 MB of traffic? 1-2 gig of traffic on a 1 gig switch uplink span port? 5. Is the proprietary Bro language difficult to master in order to create new scripts? 6. What would be a good compliment to the Bro IDS (a primary commercial IDS that works well with Bro)? Add Comment
Before you post a comment, please take note of the following guidelines:
Comment policy copied and modified from Spin Hunters. |
DISCLAIMERAll data and information provided on this site is for informational purposes and on an *as-is* basis.
This weblog does not represent the thoughts, intentions, plans or strategies of our employers. It is solely our opinion and views as security professionals. Feel free to challenge us, disagree with us, or even tell us that we are a complete mindless and brainless monkeys in the comment section of the blog entry. Report Defacements of Malaysian WebsiteTagswatchlist gcert worm exploit strong password harimau outbreak how to create password cybersecurity malaysia virus dubai myhack niser security analysis apple hitbsecconf2008 kuala lumpur pink rabbit vnsecurity leopard downadup password python edu.my conficker hitbsecconf2008 cimb phishing hackinthebox comment spam ctf mycert bank wireless lubuntu network analysis hacked hitbsecconf2008 dubai conference xss personal data privacy honeynet my-honeynet cyber terrorism scam general os x cuciotak scamming hex phishing site spam news information disclosure maybank2u hacking maybank phishing impact bro-ids sql injection malware events nsm alien_005 tools stupidity hackermalaysia joomla! hitbsecconf hitb web vulnerability defaced malaysia defacement
Recent EntriesDefaced - http://www.masjidannur.com.my
March 24 2010 Defaced - http://orogenic.com.my/ - http://orogenicgroup.com/ March 24 2010 Defaced - http://www.kedairakyat.com March 24 2010 Defaced - http://andamansetipengantin.com March 24 2010 Defaced - http://klse.info/.~x/ March 24 2010 Defaced - http://{www,ict,akademik}.kedah.edu.my/ March 24 2010 www.mampu.gov.my - hacked or misconfigured? March 12 2010 UMNO spends RM300 million hiring hackers to stop PKR for the next general election March 12 2010 Defaced - http://www.politeknik.edu.my March 4 2010 Defaced - http://ncer.com.my March 4 2010 ArchivesCreative Commons |