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 contains "/chmod" and 
 (action_process_image_command_line in ("*/tmp/*", "*/.Library/*", "*/etc/*", "*/opt/*"))) and 
 (not 
 ((action_process_image_command_line contains "chmod --reference=/etc/shells" and 
 actor_process_command_line contains "/update-shells") or 
 (action_process_image_command_line contains "/etc/" and 
 (actor_process_command_line contains "/var/lib/dpkg/info/" and 
 actor_process_command_line contains ".postinst configure")) or 
 action_process_image_command_line contains "chmod 700 /tmp/apt-key-gpghome." or 
 action_process_image_command_line contains "chmod 755 /var/tmp/mkinitramfs" or 
 action_process_image_command_line = "chmod 0775 /etc/landscape/" or 
 action_process_image_command_line = "chmod 644 /etc/apparmor.d/tunables/home.d/ubuntu"))))