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_command_line in ("*Invoke-WebRequest*", "*iwr *", "*Invoke-RestMethod*", "*irm *", "*wget *", "*curl *", "*DownloadFile*", "*DownloadString*")) and 
 ((action_process_image_command_line in ("* 0x*", "*//0x*", "*.0x*", "*.00x*")) or 
 (action_process_image_command_line contains "http://%" and 
 action_process_image_command_line contains "%2e") or 
 (action_process_image_command_line ~= "https?://[0-9]{1,3}\.[0-9]{1,3}\.0[0-9]{3,4}" or 
 action_process_image_command_line ~= "https?://[0-9]{1,3}\.0[0-9]{3,7}" or 
 action_process_image_command_line ~= "https?://0[0-9]{3,11}" or 
 action_process_image_command_line ~= "https?://(?:0[0-9]{1,11}\.){3}0[0-9]{1,11}" or 
 action_process_image_command_line ~= "https?://0[0-9]{1,11}" or 
 action_process_image_command_line ~= " [0-7]{7,13}")) and 
 (not 
 action_process_image_command_line ~= "https?://(?:(?:25[0-5]|(?:2[0-4]|1\d|[1-9])?\d)(?:\.|\b)){4}")))