Skip to main content

max / makenotwork

963 B · 23 lines History Blame Raw
1 // MakeNotWork - VBA auto-exec macro droppers.
2 // Office documents that auto-run a macro which shells out or pulls a payload.
3 // The auto-exec entrypoint alone is common in benign templates, so it must
4 // co-occur with an execution/download primitive to fire. Untrusted uploads are
5 // held regardless; this flags the obvious macro-dropper shape in-process.
6
7 rule office_macro_autoexec_dropper {
8 meta:
9 description = "VBA auto-exec macro paired with shell/download primitives"
10 strings:
11 $auto1 = "AutoOpen" ascii nocase
12 $auto2 = "Document_Open" ascii nocase
13 $auto3 = "Auto_Open" ascii nocase
14 $auto4 = "Workbook_Open" ascii nocase
15 $exec1 = "WScript.Shell" ascii nocase
16 $exec2 = "Shell(" ascii nocase
17 $exec3 = "CreateObject" ascii nocase
18 $exec4 = "URLDownloadToFile" ascii nocase
19 $exec5 = "MSXML2.XMLHTTP" ascii nocase
20 condition:
21 (1 of ($auto*)) and (2 of ($exec*))
22 }
23