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 "C:\Program Files\WindowsApps\" and 
 ((action_process_image_path in ("*\cmd.exe", "*\cscript.exe", "*\mshta.exe", "*\powershell.exe", "*\powershell_ise.exe", "*\pwsh.exe", "*\regsvr32.exe", "*\rundll32.exe", "*\wscript.exe")) or 
 (action_process_image_command_line in ("*cmd /c*", "*Invoke-*", "*Base64*"))) and 
 (not 
 ((actor_process_image_path contains ":\Program Files\WindowsApps\Microsoft.WindowsTerminal" and 
 actor_process_image_path contains "\WindowsTerminal.exe" and 
 (action_process_image_path in ("*\powershell.exe", "*\cmd.exe", "*\pwsh.exe"))) or 
 (actor_process_image_path contains "C:\Program Files\WindowsApps\Microsoft.SysinternalsSuite" and 
 action_process_image_path contains "\cmd.exe")))))