SUSP_BAT_OBFUSC_Jul24_2
Description
Detects indicators of obfuscation in Windows Batch files
Query · yara
strings:
$s1 = "&&set "
condition:
filesize < 300KB
// number of occurrences of the string "&&set " in the file
and #s1 > 30
// it's the "%\n" at the very end of the file
and uint16(filesize-2) == 0x0a0d
and uint8(filesize-3) == 0x25