Detectionhightest

Commands to Clear or Remove the Syslog - Builtin

Detects specific commands commonly used to remove or empty the syslog

Open in Detection LabConvert ruleBuild Package
Max Altgelt (Nextron Systems)Created 2021-09-10Updated 2022-11-26e09eb557-96d2-4de9-ba2d-30f712a5afd3linux
Log Source
Linux
ProductLinux← raw: linux
Detection Logic
Detection Logic2 selectors
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

Log rotation

Rule Metadata
Rule ID
e09eb557-96d2-4de9-ba2d-30f712a5afd3
Status
test
Level
high
Type
Detection
Created
2021-09-10
Modified
2022-11-26
Path
rules/linux/builtin/lnx_clear_syslog.yml
Raw Tags
attack.impactattack.t1565.001
View on GitHub