]> git.ipfire.org Git - people/stevee/guardian.git/commit
Improve snort parser.
authorStefan Schantl <stefan.schantl@ipfire.org>
Thu, 14 Jul 2016 12:21:44 +0000 (14:21 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Thu, 14 Jul 2016 12:21:44 +0000 (14:21 +0200)
commit8bc363c514428c39a476f38c2e8897dfa01736e4
tree98d3b9d6999a4e8d9570856139cbae1bba140e68
parent1044256085fc81fbc64475688bb1d0a347f4b123
Improve snort parser.

The snort parser now can handle multiple alerts at once.

Snort uses a log buffer to write to it's alert file. As a result of this,
when detecting multiple events at a very short time, multiple alerts will
be written at once to the alert file.

The single alerts now will be seperated and parsed individually. The attackers
IP-address (currently only IPv4) and the reported reason will be obtained from
the alert and stored to be returned to the main parser function.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
modules/Parser.pm