Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 1.64 KB

File metadata and controls

42 lines (30 loc) · 1.64 KB

Execution via Remote Services by Client Address


Metadata

  • Author: Elastic

  • Description: This hunt aggregates process execution via remote network logon by source address, account name and where the parent process is related to remote services such as WMI, WinRM, DCOM and remote PowerShell. This may indicate lateral movement via remote services.

  • UUID: 5fd5da54-0515-4d6b-b8d7-30fd05f5be33

  • Integration: endpoint

  • Language: [ES|QL]

  • Source File: Execution via Remote Services by Client Address

Query

from logs-endpoint.events.process-*
| where  @timestamp > now() - 7 day and host.os.family == "windows" and
  event.category == "process" and event.action == "start" and
  /* network logon type */
  process.Ext.session_info.logon_type == "Network" and
  (process.parent.name .caseless in ("wmiprvse.exe", "wsmprovhost.exe", "winrshost.exe") or (process.parent.name == "svchost.exe" and process.parent.args == "DcomLaunch"))
| stats total = count(*), hosts = count_distinct(host.id) by process.Ext.session_info.client_address, user.name, process.parent.name
 /* sort by top source.ip and account */
| sort total desc

Notes

  • process.Ext.session_info.* is populated for Elastic Defend versions 8.6.0+.

MITRE ATT&CK Techniques

License

  • Elastic License v2