2021-10-15 15:43:42 -04:00
|
|
|
title: Commands to Clear or Remove the Syslog
|
|
|
|
|
id: 3fcc9b35-39e4-44c0-a2ad-9e82b6902b31
|
2023-10-17 14:35:26 +02:00
|
|
|
status: test
|
2022-07-07 15:24:15 +01:00
|
|
|
description: Detects specific commands commonly used to remove or empty the syslog. Which is often used by attacker as a method to hide their tracks
|
2022-10-25 08:53:44 +02:00
|
|
|
references:
|
|
|
|
|
- https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1070.002/T1070.002.md
|
2023-02-01 11:14:59 +01:00
|
|
|
author: Max Altgelt (Nextron Systems), Roberto Rodriguez (Cyb3rWard0g), OTR (Open Threat Research), MSTIC
|
2024-08-12 12:02:50 +02:00
|
|
|
date: 2021-10-15
|
|
|
|
|
modified: 2022-09-15
|
2021-10-15 15:43:42 -04:00
|
|
|
tags:
|
2024-08-12 12:02:50 +02:00
|
|
|
- attack.defense-evasion
|
2022-07-07 15:24:15 +01:00
|
|
|
- attack.t1070.002
|
2021-10-15 15:43:42 -04:00
|
|
|
logsource:
|
2022-07-07 15:24:15 +01:00
|
|
|
product: linux
|
|
|
|
|
category: process_creation
|
2021-10-15 15:43:42 -04:00
|
|
|
detection:
|
2022-07-07 15:24:15 +01:00
|
|
|
selection:
|
|
|
|
|
CommandLine|contains:
|
|
|
|
|
- 'rm /var/log/syslog'
|
|
|
|
|
- 'rm -r /var/log/syslog'
|
|
|
|
|
- 'rm -f /var/log/syslog'
|
|
|
|
|
- 'rm -rf /var/log/syslog'
|
2022-09-16 09:22:57 +02:00
|
|
|
- 'unlink /var/log/syslog'
|
|
|
|
|
- 'unlink -r /var/log/syslog'
|
|
|
|
|
- 'unlink -f /var/log/syslog'
|
|
|
|
|
- 'unlink -rf /var/log/syslog'
|
2022-07-07 15:24:15 +01:00
|
|
|
- 'mv /var/log/syslog'
|
|
|
|
|
- ' >/var/log/syslog'
|
|
|
|
|
- ' > /var/log/syslog'
|
|
|
|
|
condition: selection
|
2021-10-15 15:43:42 -04:00
|
|
|
falsepositives:
|
2022-07-07 15:24:15 +01:00
|
|
|
- Log rotation.
|
|
|
|
|
level: high
|