// Anomalous process spawns from web server worker processes (IIS / SharePoint)
DeviceProcessEvents
| where InitiatingProcessFileName in~ ("w3wp.exe", "wsmprovhost.exe", "svchost.exe")
| where FileName in~ ("cmd.exe", "powershell.exe", "wscript.exe", "cscript.exe", "certutil.exe", "bitsadmin.exe")
| where InitiatingProcessCommandLine has_any ("inetpub", "SharePoint", "wwwroot")
| project Timestamp, DeviceName, InitiatingProcessFileName, FileName, ProcessCommandLine, AccountName
| order by Timestamp desc