Clear Log Activities
Description
Detect clearing of critical access log files, typically done to erase evidence that could be attributed to an adversary's actions. To effectively customize and operationalize this detection, check for potentially missing log file destinations relevant to your environment, and adjust the profiled containers you wish not to be alerted on.
Query · falco
open_write and access_log_files and evt.arg.flags contains "O_TRUNC" and not containerd_activities and not trusted_logging_images and not allowed_clear_log_files
Rule dependencies
Depends on
-
composes · Falco macro
access_log_filesA shared condition, not a detection — not indexed on this site. -
composes · Falco macro
allowed_clear_log_filesA shared condition, not a detection — not indexed on this site. -
composes · Falco macro
containerd_activitiesA shared condition, not a detection — not indexed on this site. -
composes · Falco macro
open_writeA shared condition, not a detection — not indexed on this site. -
composes · Falco macro
trusted_logging_imagesA shared condition, not a detection — not indexed on this site.
Analyst notes
Log files were tampered | file=%fd.name evt_type=%evt.type user=%user.name user_uid=%user.uid user_loginuid=%user.loginuid process=%proc.name proc_exepath=%proc.exepath parent=%proc.pname command=%proc.cmdline terminal=%proc.tty