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 
 (((action_process_image_path in ("*\powershell.exe", "*\pwsh.exe")) and 
 (action_process_image_command_line in ("*\Windows\Temp*", "*\Temporary Internet*", "*\AppData\Local\Temp*", "*\AppData\Roaming\Temp*", "*%TEMP%*", "*%TMP%*", "*%LocalAppData%\Temp*"))) and 
 (not 
 (action_process_image_command_line contains "-WindowStyle hidden -Verb runAs" or 
 action_process_image_command_line contains "\Windows\system32\config\systemprofile\AppData\Local\Temp\Amazon\EC2-Windows\" or 
 (action_process_image_command_line in ("* >*", "*Out-File*", "*ConvertTo-Json*")) or 
 ((actor_process_image_path in ("C:\Windows\System32\Msiexec.exe", "C:\Windows\SysWOW64\Msiexec.exe")) and 
 action_process_image_path contains "\powershell.exe" and 
 (action_process_image_command_line contains "-NoProfile -ExecutionPolicy Bypass -Command" and 
 action_process_image_command_line contains "AppData\Local\Temp\" and 
 action_process_image_command_line contains "Install-Chocolatey.ps1"))))))