config case_sensitive = false | preset=xdr_process | filter (event_type = ENUM.PROCESS and 
 event_sub_type = ENUM.PROCESS_START) and 
 (agent_os_type = ENUM.AGENT_OS_WINDOWS and 
 ((actor_process_image_path contains "\sdiagnhost.exe" and 
 (action_process_image_path in ("*\powershell.exe", "*\pwsh.exe", "*\cmd.exe", "*\mshta.exe", "*\cscript.exe", "*\wscript.exe", "*\taskkill.exe", "*\regsvr32.exe", "*\rundll32.exe", "*\calc.exe"))) and 
 (not 
 ((action_process_image_path contains "\cmd.exe" and 
 action_process_image_command_line contains "bits") or 
 (action_process_image_path contains "\powershell.exe" and 
 (action_process_image_command_line in ("*-noprofile -", "*-noprofile")))))))