You could easily manually process the pcaps by reading them into Bro and Snort. This would give you their resulting logs, but wouldn't put any alerts in the Squil, Snorby, or ELSA databases.
I don't know that their is a way to actually replay packets on the wire and not get current timestamps. Could you instead send your traffic to a full-time running SO box instead of your NAS?
Matt
Progress so far:
Managed to get ELSA updated (created /etc/elsa_vars.sh to point to where things are installed in SO, ran sh install.sh node update and web update), but it wasn't very pretty. added the following lines to /etc/syslog-ng/syslog-ng.conf manually to try and get the import to work
template t_db_parsed_import { template("$S_UNIXTIME\t$HOST\t$PROGRAM\t${.classifier.class}\t$MSGONLY\t${i0}\t${i1}\t${i2}\t${i3}\t${i4}\t${i5}\t${s0}\t${s1}\t${s2}\t${s3}\t${s4}\t${s5}\n"); };
destination d_elsa_import { program("perl /opt/elsa/node/elsa.pl -c /etc/elsa_node.conf -f __IMPORT__" template(t_db_parsed_import)); };
log {
source(s_import);
rewrite(r_cisco_program);
rewrite(r_snare);
rewrite(r_pipes);
parser(p_db);
rewrite(r_extracted_host);
destination(d_elsa_import);
};
Also had to modify import.pl to point to the right pipe.
However, this didn't seem to work out. import.pl claimed to have inserted the records, syslog-ng read them from the pipe, the data is in syslog_data.syslogs_import_1, but it won't show up in any web queries. Maybe it's an SO specific config somewhere? I'll try a clean install of ELSA on a non-SO install and see if it works there...
I'm curious if you succeeded with your project? I am looking at a similar project and want to use SO.
cheers
Hi Rene,
I got as far as my earlier post, haven't played too much with this since then.
Good luck!
e.g. /opt/elsa/node/import.pl -f bro -d "DAILY_IMPORT" http.bro
I don't like to run Bro live as on a lively connection it sometimes isn't fast enough, so I have a job that regularly runs to fire off offline Bro jobs. I find this ok as often it's only peak times that Bro can't keep up (especially on segments with *lots* of HTTP traffic) but at night there's no traffic.
Also I don't actually need to have Bro running live :)
Mike