LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 02-03-2005, 03:26 AM   #1
jarien
LQ Newbie
 
Registered: Nov 2004
Location: Malaysia
Distribution: redhat 9
Posts: 18

Rep: Reputation: 0
Exclamation honeysuckle


does anyone knows about honeysuckle ... and how to use it ???
it seems like there have been posts on honeysuckle but no reply from anyone ..


below is the honeysuckle perl file

================================================================
#!/usr/bin/perl
# honeysuckle - Vulnerability Correlation with snort & nessus
#
# Copyright (C) 2002 Brian Caswell <bmc@snort.org>
#
# "Any sufficiently advanced technology is indistinguishable from a simple perl
# script"
#
# honeysuckle is an implementation of IDS alert & vulnerabity correlation based
# on snort alerts & nessus scan. We modify our priority in attempt to get our
# monitor jockies to focus on the really important stuff.
#
# I don't know about you, but when someone is shooting bullets at me, I
# would like to know they are shooting at me, even if they miss.
#
# (If you want to be dumb, err... ignore attacks that "you are not vulnerable
# to" move the print line to be inside of the last if statement)
#
# This code uses Nessus reports and snort's sig-msg.map to handle mappings
# via CVE maps. We take CSV input of the following format:
# srcip,dstip,priority,event
#

use strict;

if (@ARGV ne 2) {print "Usage : $0 output.nsr sid-msg.map < log.csv\n"; exit;}

open(NSR, $ARGV[0]) || die "Ack, your NSR isn't there!\n";
open(SIDMAP, $ARGV[1]) || die "Ack, your sig-msg.map isn't there!\n";

my (%vulnerabilities, %sigs);

foreach my $line (<NSR>) {
if ($line =~
/^(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}).*\;CVE : (\w{3}-\d{4}-\d+)\;/)
{
$vulnerabilities{$1}{$2} = 1;
}
}

foreach my $line (<SIDMAP>) {
next if ($line =~ /^\s*\#/);
my ($sid, $msg, @refs) = split (/ \|\| /, $line);
foreach my $ref (@refs) {
if ($ref =~ /^cve,(.*)$/) {
$sigs{$msg}{$1} = 1;
# $sids{$sid}{$1} = 1; # Got sids? try using these...
}
}
}

foreach my $line (<STDIN>) {
chomp($line);
my ($srcip, $dstip, $priority, $event) = split (/,/, $line);
if ($sigs{$event}) {
foreach my $cve (%{$sigs{$event}}) {
if ($vulnerabilities{$srcip}{$cve} || $vulnerabilities{$dstip}{$cve}) {
$priority++;
}
}
}
print "$srcip,$dstip,$priority,$event\n";
}

Last edited by jarien; 02-03-2005 at 12:49 PM.
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 06:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration