MALICIOUS
220
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1059.001 PowerShell
T1059.003 Windows Command Shell
T1204.002 Malicious File
The VBA macro contains an AutoOpen subroutine that executes 'cmd.exe /c notepad.exe & powershell'. This indicates the macro's intent is to launch a command shell to run notepad and then immediately execute PowerShell, a common technique for downloading and executing further malicious content. The presence of critical heuristics for Shell() and PowerShell references in VBA, along with a high heuristic for cmd.exe, strongly supports this analysis.
Heuristics 5
-
VBA project inside OOXML medium 4 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
Sub autoipen() Shell ("cmd.exe /c notepad.exe & powershell") End Sub -
PowerShell reference in VBA critical OLE_VBA_PSPowerShell reference in VBAMatched line in script
Sub autoipen() Shell ("cmd.exe /c notepad.exe & powershell") End Sub -
cmd.exe reference in VBA high OLE_VBA_CMDcmd.exe reference in VBAMatched line in script
Sub autoipen() Shell ("cmd.exe /c notepad.exe & powershell") End Sub -
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.
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) | 734 bytes |
SHA-256: 0d26872833015f61af9d0dccc79af74d8792ba9c9db9c0b32c2785c464dffaee |
|||
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
Attribute VB_Name = "Module1"
Sub autoipen()
Shell ("cmd.exe /c notepad.exe & powershell")
End Sub
|
|||
vbaProject_00.bin |
vba-project | OOXML VBA project: xl/vbaProject.bin | 14848 bytes |
SHA-256: 408e0a77126a01dee2d2ed2510453be4b1c8602ec0ce04631103d7bfd52f11f1 |
|||
Open this report in the interactive analyzer, or submit your own file for analysis.