Closed a-vine closed 3 months ago
Hi, thank you for the issue.
I think systematically stripping the trailing newline by adding a rstrip()
here :
https://github.com/wagga40/Zircolite/blob/0257ea78a59ce7687259fe968ad8186205b00956/zircolite.py#L1229
i.e event[attribute[0]] = attribute[1].rstrip()
instead of event[attribute[0]] = attribute[1]
will solde the problem. I will update the code as soon as I can.
Is the new version OK for this issue ?
Yes, I just tested it and it works. Thanks for the fix.
Zircolite seems to capture the
\n
end-of-line characters in the log fields it processes to perform its mapping from SIGMA rules. This can cause problems when mapping certain logs to Techniques.For example, when I run the following command:
I get the this (partial) output in the
detected_events.json
file:Here's a concrete example (extracted from my log file) of a log that should be triggered by Zircolite but isn't:
While the following rule exists in the
rules/rules_linux.json
file: