WScriptShell_Case_Anomaly
Description
Detects obfuscated wscript.shell commands
Query · yara
strings:
// first detect powershell keyword case insensitive
$s1 = "WScript.Shell\").Run" nocase ascii wide
// define the normal cases
$sn1 = "WScript.Shell\").Run" ascii wide
$sn2 = "wscript.shell\").run" ascii wide
$sn3 = "WSCRIPT.SHELL\").RUN" ascii wide
$sn4 = "Wscript.Shell\").Run" ascii wide
$sn5 = "WScript.shell\").Run" ascii wide
condition:
filesize < 3000KB and
#s1 > #sn1 + #sn2 + #sn3 + #sn4 + #sn5