matonis / yara_tools

Create an entire YARA rule via Python? Whhhhhhaatttt?
MIT License
72 stars 8 forks source link

Unexpected Behavior With IDENTIFIER Template #5

Open matonis opened 5 years ago

matonis commented 5 years ago
rule.add_strings(strings="HelloWorld",condition="$IDENTIFIER at 0")

This possibly relates to enhancing condition functionality, but the template for conditions has no idea to map integers assigned to unitialized string variables. Meaning, the template cannot identifiy which incremental integer is represented in the rule.

This bug might be the start of an entire rewrite of relating strings & conditions in an entirely separate object. Not entirely sure yet if this is a bug based on how many might be actually using YARA.