Sigma medium stable sigma
Linux Logs Clearing Attempts
Detects logs clearing attempts on Linux systems via utilities such as 'rm', 'rmdir', 'shred', and 'unlink' targeting log files and directories. Adversaries often try to clear logs to cover their tracks after performing malicious activities.
Detection Logic
{
"selection": {
"Image
| endswith": [
"/rm",
"/rmdir",
"/shred",
"/unlink"
],
"CommandLine
| contains": [
"/var/log",
"/var/spool/mail"
]
},
"filter_main_legit_systat": {
"Image
| endswith": "/rm",
"CommandLine
| startswith": "rm -f /var/log/sysstat/"
},
"filter_main_dmseg": {
"Image
| endswith": "/rm",
"CommandLine
| startswith": "rm -f -- /var/log//dmesg"
},
"condition": "selection and not 1 of filter_main_*"
} False Positives
- ⚠ Legitimate administration activities
Field Validations
Loading…
Comments (0)
Loading comments...