### prelude logging details:
I have been digging into the analysisd code to fill out the prelude idmef
details more completely, and I noticed that for rootcheck,syscheck, and
hostinfo the code branches before it ever gets to OS_PreludeLog. Due to
this their is very little way for OS_PreludeLog to get access to the
details without re-parsing the eventinfo->log.
I have been thinking about if prelude support is compiled in. Then passing
around a pointer to an IDEMF event in the eventinfo struct so that each one
of the branches could added the data themselves. But this would litter the
code with `#ifdef PRELUDE`. So I look for another suggestion or idea for
this before I finishing coding up the change.
### Prelude vendor-specific details for OSSEC:
I have created a patch (attached &
http://j.mp/1WL6QG) that adds
vendor-specific details from the ossec event before being forwarded to the
prelude server. This patch splits up the `lf->generated_rule->group` using
, as the delimiter and for each section adds a URL pointing to the OSSEC
wiki. Example is that all syscheck events would have a url pointing to
http://www.ossec.net/wiki/Group:syscheck. Rules ID's are also handled so
they would get a link to
http://www.ossec.net/wiki/Rule:5201.
While this method works for rules that come with OSSEC it is does not help
for rules that are created in house or shared between outside groups. So I
would like to propose a new field for rules `reference_url`. Any number of
urls could be included in the rules definition and then be made available
to for reporting.
<rule id="5701" level="8">
<if_sid>5700</if_sid>
<match>Bad protocol version identification</match>
<description>Possible attack on the ssh server </description>
<description>(or version gathering).</description>
<reference_url>
http://www.ossec.net/wiki/Rule:5201</reference_url>
<reference_url>
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-4924</reference_url>
</rule>
-Jeremy Rossi
http://praetorianprefect.com/archives/tag/ossec/