Clear Linux Logs

Detects attempts to clear logs on the system. Adversaries may clear system logs to hide evidence of an intrusion

Sigma rule (View on GitHub)

 1title: Clear Linux Logs
 2id: 80915f59-9b56-4616-9de0-fd0dea6c12fe
 3status: stable
 4description: Detects attempts to clear logs on the system. Adversaries may clear system logs to hide evidence of an intrusion
 5references:
 6    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1070.002/T1070.002.md
 7author: Ömer Günal, oscd.community
 8date: 2020-10-07
 9modified: 2022-09-15
10tags:
11    - attack.defense-evasion
12    - attack.t1070.002
13logsource:
14    product: linux
15    category: process_creation
16detection:
17    selection:
18        Image|endswith:
19            - '/rm'    # covers /rmdir as well
20            - '/shred'
21            - '/unlink'
22        CommandLine|contains:
23            - '/var/log'
24            - '/var/spool/mail'
25    condition: selection
26falsepositives:
27    - Legitimate administration activities
28level: medium

References

Related rules

to-top