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 contains "\System\CurrentControlSet\Services" or 
 (action_registry_key_name contains "\System\ControlSet" and 
 action_registry_key_name contains "\Services")) and 
 (((action_registry_value_name contains "ADMIN$" and 
 action_registry_value_name contains ".exe") or 
 (action_registry_data contains "ADMIN$" and 
 action_registry_data contains ".exe")) or 
 ((action_registry_value_name contains "%COMSPEC%" and 
 action_registry_value_name contains "start" and 
 action_registry_value_name contains "powershell") or 
 (action_registry_data contains "%COMSPEC%" and 
 action_registry_data contains "start" and 
 action_registry_data contains "powershell")))))