Closed wmetcalf closed 1 year ago
Hi thanks. Sorry for delay I didn't have access to my computer.
Zircolite is supposed to be as much as possible agnostic to rules/format/... Your patch introduce a modification for 1 field, in my opinion it should be handled elsewhere. I can look into it to provide an other solution, Can you provide the matching sample ? even if it is only one event ?
NB : about that
Event 15 uses "Hash" instead of "Hashes".
Zircolite has its own field mapping if you need it (here).
Somehow I missed your initial response. Thank you for implementing this!
All thanks to you for the idea. It is implemented in a different branch for now, I will merge after some tests
Merged in #58
Not sure if here is a more proper fix. I was looking at the 3cx sigma rules
https://github.com/SigmaHQ/sigma/blob/master/rules/windows/image_load/image_load_malware_3cx_compromise_susp_dll.yml
which look both in the hashes field or for a hash in a field associated with the algo i.e. sha256,md5,etc. The converted query causes Zircolite not to match because of the OR statement. This patch maps the individual hashes and allows these rules to fire.
python3 zircolite.py --evtx /opt/out//sysmon --debug --ruleset [+] Cleaning unused objects [+] Loading ruleset from : rules/rules_windows_sysmon_full.json [+] Executing ruleset - 2083 rules