Sigma rule: Commands to Clear or Remove the Syslog - Builtin

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-e74ae38c02d6, updated 2022-11-26T00:00:00.000Z.

Rule

Title
Commands to Clear or Remove the Syslog - Builtin
Status
test
Level
high
Author
Max Altgelt (Nextron Systems)
Date
2021-09-10
Modified
2022-11-26
File
rules/linux/builtin/lnx_clear_syslog.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects specific commands commonly used to remove or empty the syslog

Log source

product
linux

Detection

selection:
    - 'rm /var/log/syslog'
    - 'rm -r /var/log/syslog'
    - 'rm -f /var/log/syslog'
    - 'rm -rf /var/log/syslog'
    - 'mv /var/log/syslog'
    - ' >/var/log/syslog'
    - ' > /var/log/syslog'
falsepositives:
    - '/syslog.'
condition: selection and not falsepositives

False positives (as the rule lists them)

  • Log rotation

Tags

  • attack.impact
  • attack.t1565.001

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/builtin/lnx_clear_syslog.yml

Sources and licences

  • SigmaHQ

    "Commands to Clear or Remove the Syslog - Builtin" by Max Altgelt (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/linux/builtin/lnx_clear_syslog.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: Commands to Clear or Remove the Syslog - Builtin",
entity page, dataset version ref-e74ae38c02d6, updated 2022-11-26T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/e09eb557-96d2-4de9-ba2d-30f712a5afd3 (accessed 2026-11-03).
Underlying source: SigmaHQ rule e09eb557-96d2-4de9-ba2d-30f712a5afd3, 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.