Open GoogleCodeExporter opened 8 years ago
You are surrounding double quotes with double quotes. Not gonna work. Try
replacing the outer doubles surrounding the whole message with single quotes:
$ /usr/local/syslog-ng/bin/pdbtool match -p patterndb.xml -P sfims -M '[Primary
Detection Engine
(f3fe03e8-8a2f-11e3-97cb-abab35940b61)][PASSIVE_CATCH_ALL][1:2667:14]
"SERVER-IIS ping.asp access" [Classification: Access to a Potentially
Vulnerable Web Application] User: Unknown, Application: Unknown, Client:
Unknown, App Protocol: UnknownInterface Ingress: s1p2, Interface Egress: s1p1,
Security Zone Ingress: Passive, Security Zone Egress: Passive, [Priority: 2]
{TCP} 172.17.1.13:54486 -> 172.17.5.6:8080'
MESSAGE=[Primary Detection Engine
(f3fe03e8-8a2f-11e3-97cb-abab35940b61)][PASSIVE_CATCH_ALL][1:2667:14]
"SERVER-IIS ping.asp access" [Classification: Access to a Potentially
Vulnerable Web Application] User: Unknown, Application: Unknown, Client:
Unknown, App Protocol: UnknownInterface Ingress: s1p2, Interface Egress: s1p1,
Security Zone Ingress: Passive, Security Zone Egress: Passive, [Priority: 2]
{TCP} 172.17.1.13:54486 -> 172.17.5.6:8080
PROGRAM=sfims
.classifier.class=10000
.classifier.rule_id=10000
i0=2
s0=TCP
i1=172.17.1.13
i2=54486
i3=172.17.5.6
i4=8080
TAGS=.classifier.10000
Original comment by kebut...@gmail.com
on 29 Mar 2014 at 3:46
Thank you - encapsulating the message in single quotes makes the match work
when using pdbtool but ELSA still doesn't appear to be actually parsing any
SFIMS messages at all (GUI search for CLASS=SFIMS returns nothing and there are
no entries in the DB).
Have I got something wrong elsewhere? I've checked the field/classes mappings
several times and we know that the pattern match is correct since it works with
the pbdtool match so I'm still pretty stumped!
Thanks,
Matt
Original comment by matt.jo...@e2e-agile.com
on 31 Mar 2014 at 7:29
Given your installation path, It would need to be in
/opt/elsa/node/conf/merged.xml
During an install or upgrade, /opt/elsa/node/conf/patterndb.xml is copied to
/etc/elsa/patterns.d/patterndb.xml and then merged with
/etc/elsa/patterns.d/local_patterndb.xml via the command:
$BASE_DIR/syslog-ng/bin/pdbtool merge -p $BASE_DIR/elsa/node/conf/merged.xml -r
-D /etc/elsa/patterns.d
You can test your pattern by putting it in merged.xml directly, but to maintain
you customization across upgrades, place it in local_patterndb.xml before
performing an install.sh based upgrade.
Original comment by kebut...@gmail.com
on 31 Mar 2014 at 11:54
Thanks again. We don't have a merged.xml in /opt/elsa/node/conf, nor do we have
a patterndb.xml or local_patterndb.xml under /etc/elsa/patterns.d/
Are you saying that the patterns defined in /opt/elsa/node/conf/patterndb.xml
don't take effect until either an upgrade takes place or the merge command is
run with pdbtool and they are subsequently copied into merged.xml?
If so, I could copy my patterndb.xml file into /etc/elsa/patterns.d then run
$BASE_DIR/syslog-ng/bin/pdbtool merge -p $BASE_DIR/elsa/node/conf/merged.xml -r
-D /etc/elsa/patterns.d should I? Or do I also need to create a
local_patterndb.xml with which to merge it first? This server is currently
being used within an operational environment - could service be unaffected by
doing any of this?
Thanks,
Matt
Original comment by matt.jo...@e2e-agile.com
on 31 Mar 2014 at 12:59
Are you using Security Onion? Your setup differs from a default install, so I
wouldn't do any of that yet.
Original comment by kebut...@gmail.com
on 31 Mar 2014 at 1:48
We are, yes - apologies for that omission!
Original comment by matt.jo...@e2e-agile.com
on 31 Mar 2014 at 1:54
it looks like you have the right file. I fired up my onion and it looks like
the patterndb file you are modifying is the correct file. Perhaps you need to
give a hint as to the program where the logs are originating from. For
example, my bro_conn log is read via syslog-ng, and I specify a
program_override so elsa knows to use the bro_conn pattern to match the log
lines.
source s_bro_conn { file("/data/bro/logs/current/conn.log" flags(no-parse)
program_override("bro_conn")); };
Original comment by kebut...@gmail.com
on 31 Mar 2014 at 3:36
Thank you, I haven't been able to do anything further on it over the last few
weeks but I will give that a try when I can get back to it! Thanks for your help
Original comment by matt.jo...@e2e-agile.com
on 13 May 2014 at 10:47
Original issue reported on code.google.com by
matt.jo...@e2e-agile.com
on 28 Mar 2014 at 1:03