Building Collector Plugins 1.1 - AlienVault
Building Collector Plugins 1.1 - AlienVault
Building Collector Plugins 1.1 - AlienVault
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>Building</strong> <strong>Collector</strong> <strong>Plugins</strong> - Admin Guide<br />
2.5.3 Application Specific Translations<br />
snort_id(id):<br />
intrushield_sid(sid,name):<br />
netscreen_idp_sid(msg):<br />
iss_siteprotector_sid(msg):<br />
resolv_iface(iface):<br />
adds 1000 to the Snort ID<br />
all McAfee Intrushield IDs are divisible by 256, and this length<br />
doesn't fit in the OSSIM table ( mcafee_sid =<br />
hextoint(mcafee_sid)/256)<br />
translates the Netscreen messages based on the<br />
NETSCREEN_IDP_SID_TRANSLATION_TABLE translation table<br />
(defined in ParserUtil.py)<br />
translates the ISS_SiteProtector messages based on the<br />
ISS_SITEPROTECTOR_SID_TRANSLATION_MAP translation table<br />
(defined in ParserUtil.py)<br />
normalize interface name to either “ext” or “int”<br />
2.5.4 User Defined Translations<br />
translate(string):<br />
Example (from the iptables plugin):<br />
# The translation section in the plugin configuration file<br />
[translation]<br />
ACCEPT=1<br />
REJECT=2<br />
DROP=3<br />
DENY=3<br />
Inbound=4<br />
Outbound=5<br />
# Rule ID<br />
[0 - iptables]<br />
translates strings based on the entries defined in the [translation]<br />
section of the plugin.<br />
# Log sample<br />
# Oct 31 08:59:25 M2600001 kernel: RULE 0 -- ACCEPT IN= OUT=lo SRC=127.0.0.1<br />
DST=127.0.0.1 LEN=60<br />
# TOS=0x00 PREC=0x00 TTL=64 ID=8437 DF PROTO=TCP SPT=57275 DPT=836<br />
SEQ=2806649400<br />
# ACK=0 WINDOW=32767 RES=0x00 SYN URGP=0<br />
# Log Parsing<br />
regexp=(\S+\s+\d+\s+\d\d:\d\d:\d\d)\s+(\S*) (\S*):.*?(\S+)\s+IN=(\S*) OUT=(\S*) SRC=(\S+)<br />
DST=(\S+) LEN=(\d+) \S+ \S+ TTL=(\d+) .*? PROTO=(\S*) SPT=(\d*) DPT=(\d*)<br />
………<br />
# plugin_sid is set to 1, the translated value for ACCEPT<br />
plugin_sid={translate($4)}<br />
Page 17 Copyright © Alienvault 2010