MALICIOUS
168
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1059.003 Windows Command Shell
T1204.002 Malicious File
The VBA macro executes a Workbook_Open subroutine which creates and executes a batch file in the user's %appdata% directory. This batch file displays a fake 'Please wait' message to the user and likely proceeds to download and execute a second-stage payload. The use of WScript.Shell and CreateObject indicates a high likelihood of malicious intent.
Heuristics 5
-
VBA project inside OOXML medium 4 related findings OOXML_VBADocument contains a VBA project — VBA macros present
-
WScript.Shell usage critical OLE_VBA_WSCRIPTWScript.Shell usageMatched line in script
Set objShell = CreateObject("WScript.Shell") fullpath = objShell.ExpandEnvironmentStrings("%appdata%") -
CreateObject call high OLE_VBA_CREATEOBJCreateObject callMatched line in script
Set objShell = CreateObject("WScript.Shell") fullpath = objShell.ExpandEnvironmentStrings("%appdata%") -
VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXECCompiled VBA/cache stream contains an auto-execution token together with shell/download/object-execution tokens. This catches p-code-only or source-extraction-failure macro documents where visible source is unavailable.
-
Workbook_Open macro low OLE_VBA_WBOPENWorkbook_Open macroMatched line in script
Attribute VB_Customizable = True Private Sub Workbook_open() Call crear
Extracted artifacts 2
Files carved from inside the sample during analysis.
| Filename | Kind | Source | Size |
|---|---|---|---|
macros.bas |
vba-macro | oletools.olevba.extract_macros (decoded VBA source from OOXML) | 1316 bytes |
SHA-256: 2b197af42509f1e38aadfa8119b937a37bac53804fac3265ba5943b67a0683ec |
|||
Preview scriptFirst 1,000 lines of the extracted script
Attribute VB_Name = "ThisWorkbook"
Attribute VB_Base = "0{00020819-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
Private Sub Workbook_open()
Call crear
End Sub
Sub crear()
Set objShell = CreateObject("WScript.Shell")
fullpath = objShell.ExpandEnvironmentStrings("%appdata%")
Set objfso = CreateObject("scripting.filesystemobject")
Set archivotexto = objfso.CreateTextFile(fullpath & "\inr.bat", True)
archivotexto.writeline "@echo off"
archivotexto.writeblanklines (1)
archivotexto.writeblanklines (1)
archivotexto.writeline "echo msgbox ""Please wait "" > %tmp%\tmp.vbs"
archivotexto.writeline "wscript %tmp%\tmp.vbs"
archivotexto.writeline "del %tmp%\tmp.vbs"
archivotexto.writeline "echo Installing"
archivotexto.Close
End Sub
Attribute VB_Name = "Hoja1"
Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
|
|||
vbaProject_00.bin |
vba-project | OOXML VBA project: xl/vbaProject.bin | 9728 bytes |
SHA-256: c0b29d33211742b3b5fb58a3213874c281bf20affd40881ecbd14b7b160ab429 |
|||
Open this report in the interactive analyzer, or submit your own file for analysis.