Query Details
name: Execution, Indicators of usage of winexe for lateral movement
description: Detects service install of winexe remote admion tool
references: https://attack.mitre.org/software/S0191/,https://community.netwitness.com/t5/netwitness-community-blog/detecting-lateral-movement-in-rsa-netwitness-winexe/ba-p/520480
tags: Execution, S0191
search_query:
(DeviceEvents
| where ActionType == 'ServiceInstalled'
| extend parsed = parse_json(AdditionalFields)
| where parsed.ServiceName has ("winexesvc")
Notes:
This query is designed to detect the installation of a service associated with the "winexe" remote administration tool, which can be used for lateral movement within a network. Here's a breakdown of what the query does:
DeviceEvents, which are records of various actions performed on devices.ActionType is 'ServiceInstalled', indicating a new service has been installed.AdditionalFields column by parsing it as JSON.ServiceName contains "winexesvc", which is the service name used by the winexe tool.In summary, this query identifies instances where the winexe tool has been installed as a service on a device, which could indicate potential lateral movement activity within the network.

Ali Hussein
Released: January 24, 2024
Tables
Keywords
Operators