Closed malvidin closed 4 years ago
Hello @malvidin ! Thanks for taking the time to report this.
We will start by enabling UTF-8 support and go form there!
Hope you find this library useful.
Resolved in latest release: https://github.com/CybercentreCanada/CCCS-Yara/releases/tag/v1.3
Rules that contain non-ASCII characters in metadata are inappropriately rejected. YARA reads the rules in as bytes, and processes the metadata strings similarly to strings.
There are more issues with escaped values in metadata strings (\x00, \x80-\xFF) than with printable non-ASCII strings.
Recommend accepting non-ASCII characters in rules, modifying rules that contain values that can be unescaped (\000, \x80-\xFF, etc.), and performing a test compilation of the rules with yara-python. https://github.com/VirusTotal/yara/issues/1242