I have a yara rule that looks for multiple strings in a file and fires if the count is greater than 3. But how would I change the condition statement to only fire if greater than 3 but less than 5?
Essentially I want something like this
3 < (#var_*) < 10
But this statement is not valid syntax. Is there a way to use the count operator #
with a wildcard *
?
rule strings
{
meta:
notes = "testing"
strings:
var_01 = "string1"
var_02 = "string2"
var_03 = "string3"
var_04 = "string4"
var_05 = "string5"
var_06 = "string6"
var_07 = "string7"
var_08 = "string8"
condition:
3 of ($var_*)
}