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_LINUX and 
 (((action_process_image_path in ("*/service", "*/systemctl", "*/chkconfig")) and 
 (action_process_image_command_line in ("* stop *", "* disable *"))) and 
 (not 
 ((action_process_image_path contains "/systemctl" and 
 (action_process_image_command_line in ("*--no-reload disable snap-snapd-*", "* stop snap-snapd-*"))) or 
 (action_process_image_path contains "/systemctl" and 
 actor_process_command_line contains "tmp.ci/preinst upgrade" and 
 (action_process_image_command_line contains " stop " and 
 action_process_image_command_line contains "ssh.")) or 
 (actor_process_command_line contains "/dpkg/info/ubuntu-pro-client.prerm upgrade" and 
 action_process_image_path contains "/systemctl"))) and 
 (not 
 (action_process_image_path contains "/systemctl" and 
 action_process_image_command_line contains "snap.amazon-ssm-agent.amazon-ssm-agent.service"))))