magicsword-io / LOLDrivers

Living Off The Land Drivers
https://www.loldrivers.io/
Apache License 2.0
1.04k stars 123 forks source link

YARA Generator and Rule Update 240726 #182

Closed Neo23x0 closed 3 months ago

Neo23x0 commented 3 months ago

BUT, I re-run the generator and would like to use a different directory structure:

I also ran the generator to generate new rules but I noticed that you guys also removed some drivers.

josehelps commented 3 months ago

@Neo23x0 been out of town but should be able to test and merge this in next week, stand by apologies for taking a bit to get you a reply here.

josehelps commented 3 months ago

Hey yeah some got moved to the bootloader project and others were duplicates.

This ran smoothly looks good to me:

[INFO ] [+] Writing 507 YARA rules to the output file ../../detections/yara/other/yara-rules_vuln_drivers.yar
[INFO ] [+] Writing 22 YARA rules to the output file ../../detections/yara/yara-rules_mal_drivers.yar
[INFO ] [+] Writing 507 YARA rules to the output file ../../detections/yara/yara-rules_vuln_drivers_strict.yar
[INFO ] [+] Writing 22 YARA rules to the output file ../../detections/yara/other/yara-rules_mal_drivers_strict.yar
[INFO ] [+] Writing 507 YARA rules to the output file ../../detections/yara/other/yara-rules_vuln_drivers_strict_renamed.yar

matches the count on the files included in the PR as well

(loldrivers-py3.12) jhernandez in ~/magicsword/LOLDrivers/detections/yara on yara_update_240726 λ cat yara-rules_vuln_drivers_strict.yar| grep "rule "  | wc -l
     507
josehelps commented 3 months ago

We use the PE info to also extract the certificate using LIEF is is why likely is missing.