SUSP_VBA_FileSystem_Access
Description
Detects suspicious VBA that writes to disk and is activated on document open
Query · yara
strings:
$s1 = "\\Common Files\\Microsoft Shared\\" wide
$s2 = "Scripting.FileSystemObject" ascii
$a1 = "Document_Open" ascii
$a2 = "WScript.Shell" ascii
$a3 = "AutoOpen" fullword ascii
condition:
uint16(0) == 0xcfd0 and filesize < 100KB and all of ($s*) and 1 of ($a*)