endpoint(opens in a new tab or window)
windows(opens in a new tab or window)
registry where host.os.type == "windows" and event.type == "change" and
registry.value : "ImagePath" and
registry.path : (
"HKLM\\SYSTEM\\ControlSet*\\Services\\*\\ImagePath",
"\\REGISTRY\\MACHINE\\SYSTEM\\ControlSet*\\Services\\*\\ImagePath"
) and
/* add suspicious registry ImagePath values here */
registry.data.strings : ("%COMSPEC%*", "*\\.\\pipe\\*")
Install detection rules in Elastic Security
Detect Suspicious ImagePath Service Creation in the Elastic Security detection engine by installing this rule into your Elastic Stack.
To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(opens in a new tab or window).