
Rule Info
Name
Clear or Disable Kernel Ring Buffer Logs via Syslog Syscall
Author
Milad Cheraghi
Description
Detects the use of the `syslog` syscall with action code 5 (SYSLOG_ACTION_CLEAR),
(4 is SYSLOG_ACTION_READ_CLEAR and 6 is SYSLOG_ACTION_CONSOLE_OFF) which clears the kernel
ring buffer (dmesg logs). This can be used by attackers to hide traces after exploitation
or privilege escalation. A common technique is running `dmesg -c`, which triggers this syscall internally.
Date
2025-05-27 00:00:00
Modified
2025-06-05 00:00:00
Id
eca5e022-d368-4043-98e5-9736fb01f72f
Tags
attack.defense-evasion attack.t1070.002
Type
Community Rule
Link to Public Repo