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 "HKLM\System\CurrentControlSet\Services\" and 
 action_registry_key_name contains "\Start" and 
 (actor_process_image_path in ("*\Users\Public\*", "*\Perflogs\*", "*\ADMIN$\*", "*\Temp\*")) and 
 ((action_registry_value_name in ("DWORD (0x00000000)", "DWORD (0x00000001)", "DWORD (0x00000002)")) or 
 (action_registry_data in ("DWORD (0x00000000)", "DWORD (0x00000001)", "DWORD (0x00000002)")))) or 
 (action_registry_key_name contains "HKLM\System\CurrentControlSet\Services\" and 
 action_registry_key_name contains "\ImagePath" and 
 ((action_registry_value_name in ("*\Users\Public\*", "*\Perflogs\*", "*\ADMIN$\*", "*\Temp\*")) or 
 (action_registry_data in ("*\Users\Public\*", "*\Perflogs\*", "*\ADMIN$\*", "*\Temp\*"))))) and 
 (not 
 ((actor_process_image_path contains "\Common Files\" and 
 actor_process_image_path contains "\Temp\") or 
 (action_registry_key_name contains "\CurrentControlSet\Services\MBAMInstallerService\ImagePath" and 
 (action_registry_value_name contains "\AppData\Local\Temp\MBAMInstallerService.exe\"" or 
 action_registry_data contains "\AppData\Local\Temp\MBAMInstallerService.exe\"") and 
 actor_process_image_path = "C:\Windows\system32\services.exe")))))