Elastic medium stable eql

System Log File Deletion

Identifies the deletion of sensitive Linux system logs. This may indicate an attempt to evade detection or destroy forensic evidence on a system.

View Source

Detection Logic

file where host.os.type == "linux" and event.type == "deletion" and file.path in (
  "/var/run/utmp", "/var/log/wtmp", "/var/log/btmp", "/var/log/lastlog", "/var/log/faillog",
  "/var/log/syslog", "/var/log/messages", "/var/log/secure", "/var/log/auth.log", "/var/log/boot.log",
  "/var/log/kern.log", "/var/log/dmesg"
) and not (
  process.name in ("gzip", "executor", "dockerd") or
  (process.executable in ("/usr/bin/podman", "/dev/fd/3") and file.name == "lastlog")
)

Field Validations

Loading…

Comments (0)

Loading comments...