config case_sensitive = false | preset=xdr_file | filter event_type = ENUM.FILE and 
 (agent_os_type = ENUM.AGENT_OS_WINDOWS and 
 ((action_file_name in ("*.docm", "*.dotm", "*.xlsm", "*.xltm", "*.potm", "*.pptm")) and 
 (not 
 ((actor_process_image_path in ("C:\Program Files\Microsoft Office\*", "C:\Program Files (x86)\Microsoft Office\*")) and 
 (actor_process_image_path in ("*\WINWORD.EXE", "*\EXCEL.EXE", "*\POWERPNT.EXE")) and 
 action_file_name contains "\~$"))))