config case_sensitive = false | preset=xdr_registry | filter (event_type = ENUM.REGISTRY and 
 event_sub_type = ENUM.REGISTRY_SET_VALUE) and 
 (agent_os_type = ENUM.AGENT_OS_WINDOWS and 
 (((action_registry_key_name in ("*\ShellIds\Microsoft.PowerShell\ExecutionPolicy", "*\Policies\Microsoft\Windows\PowerShell\ExecutionPolicy")) and 
 ((action_registry_value_name in ("*Bypass*", "*Unrestricted*")) or 
 (action_registry_data in ("*Bypass*", "*Unrestricted*")))) and 
 (not 
 (actor_process_image_path in ("*:\Windows\System32\*", "*:\Windows\SysWOW64\*")))))