Turning off services using sc exe
Description
This query checks for attempts to turn off at least 10 existing services using sc.exe.
Query · kql
// Look for sc.exe disabling services DeviceProcessEvents | where Timestamp > ago(1d) | where ProcessCommandLine has "sc" and ProcessCommandLine has "config" and ProcessCommandLine has "disabled" | summarize ScDisableCount = dcount(ProcessCommandLine), ScDisableList = make_set(ProcessCommandLine) by DeviceId, bin(Timestamp, 5m) | where ScDisableCount > 10