Sigma rule: Linux Logs Clearing Attempts

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-47f130584c25, updated 2026-03-18T00:00:00.000Z.

Rule

Title
Linux Logs Clearing Attempts
Status
stable
Level
medium
Author
Ömer Günal, oscd.community
Date
2020-10-07
Modified
2026-03-18
File
rules/linux/process_creation/proc_creation_lnx_clear_logs.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

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.

Log source

product
linux
category
process_creation

Detection

selection:
    Image|endswith:
        - '/rm'    # covers /rmdir as well
        - '/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' # // before dmesg is not typo
condition: selection and not 1 of filter_main_*

False positives (as the rule lists them)

  • Legitimate administration activities

Tags

  • attack.defense-impairment
  • attack.t1685.006

MITRE ATT&CK ids this rule names

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/linux/process_creation/proc_creation_lnx_clear_logs.yml

Sources and licences

  • SigmaHQ

    "Linux Logs Clearing Attempts" by Ömer Günal, oscd.community (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/linux/process_creation/proc_creation_lnx_clear_logs.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Linux Logs Clearing Attempts",
entity page, dataset version ref-47f130584c25, updated 2026-03-18T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/80915f59-9b56-4616-9de0-fd0dea6c12fe (accessed 2026-11-03).
Underlying source: SigmaHQ rule 80915f59-9b56-4616-9de0-fd0dea6c12fe, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.