DLL Execution via Visual Studio Live Share


Description

Identifies the use of the Windows Visual Studio Live Share binary to load a random DLL. Adversaries may leverage this utility to execute malicious code via a trusted Microsoft program.

Query · eql

process where event.action == "start" and
  (process.name : "vsls-agent.exe" or process.pe.original_file_name : "vsls-agent.dll") and process.args : "--agentExtensionPath" and

  not (process.args : "--pipe" and process.args : "https://*.visualstudio.com/") and

  not process.parent.executable :
             ("?:\\Program Files\\Microsoft Visual Studio\\*\\IDE\\devenv.exe",
              "?:\\Program Files (x86)\\Microsoft Visual Studio\\*\\IDE\\devenv.exe")
Raw source DLL Execution via Visual Studio Live Share · Elastic TOML
Esc
Published by elastic/protections-artifacts ↗, licensed under Elastic License 2.0 ↗. Reproduced here unmodified.
[rule]
description = """
Identifies the use of the Windows Visual Studio Live Share binary to load a random DLL. Adversaries may leverage this
utility to execute malicious code via a trusted Microsoft program.
"""
id = "a5416b1f-fc3f-4162-936d-34086689c3b0"
license = "Elastic License v2"
name = "DLL Execution via Visual Studio Live Share"
os_list = ["windows"]
reference = ["https://twitter.com/bohops/status/1583916360404729857"]
version = "1.0.23"

query = '''
process where event.action == "start" and
  (process.name : "vsls-agent.exe" or process.pe.original_file_name : "vsls-agent.dll") and process.args : "--agentExtensionPath" and

  not (process.args : "--pipe" and process.args : "https://*.visualstudio.com/") and

  not process.parent.executable :
             ("?:\\Program Files\\Microsoft Visual Studio\\*\\IDE\\devenv.exe",
              "?:\\Program Files (x86)\\Microsoft Visual Studio\\*\\IDE\\devenv.exe")
'''

min_endpoint_version = "7.15.0"
optional_actions = []
[[actions]]
action = "kill_process"
field = "process.entity_id"
state = 0

[[threat]]
framework = "MITRE ATT&CK"
[[threat.technique]]
id = "T1218"
name = "System Binary Proxy Execution"
reference = "https://attack.mitre.org/techniques/T1218/"


[threat.tactic]
id = "TA0005"
name = "Defense Evasion"
reference = "https://attack.mitre.org/tactics/TA0005/"

[internal]
min_endpoint_version = "7.15.0"

Detection rules belong to the projects that publish them and remain under their own licenses. This site indexes and links to them; it claims no rights in them.