You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.
I just wanted to add a lot of new rules, to test how it was possible to improve Yara scan capabilities.
To do it, I grabbed some public rules and I copy them to $viper_folder/data/yara/
Then I ran "yara scan -v" bu I reached exceptions.
I though Yara syntax was standardized, but perhaps I was wrong when I see the error output:
I guess you'll have to exclude the rules that use external variables. The "filepath" e.g. makes no sense in a Viper malware collection. However "file_name" was introduced in YARA long after I started using "filename" in my rules. Depending on the version of YARA you use, you could rename the variable : filename > file_name
The KINS_DLL_zeus rule is a duplicate.
I suppose is an too older Yara version (3.5.0?) and a variable issue, as you explain.
I will update my Yara version and try again before to close topic.
Regards,
Hello,
I just wanted to add a lot of new rules, to test how it was possible to improve Yara scan capabilities.
To do it, I grabbed some public rules and I copy them to $viper_folder/data/yara/
Then I ran "yara scan -v" bu I reached exceptions.
I though Yara syntax was standardized, but perhaps I was wrong when I see the error output:
SyntaxError: $viper_folder/data/yara/apt_fancybear_dnc.yar(52): undefined identifier "filename"
...
SyntaxError: $viper_folder/data/yara/crime_kins_dropper.yar(27): duplicated identifier "KINS_DLL_zeus"
...
SyntaxError: $viper_folder/data/yara/thor-webshells.yar(5047): undefined identifier "filepath"
Concerned rules are from @Neo23x0: https://github.com/Neo23x0/signature-base/tree/50f14d7d1def5ee1032158af658a5c0b82fe50c9/yara
Find below a verbose output log:
These errors are due:
Thanks for your suggestions,
Regards,
The text was updated successfully, but these errors were encountered: