History File Deletion

 Original Source: [Sigma source]
Title: History File Deletion
Status: test
Description:Detects events in which a history file gets deleted, e.g. the ~/bash_history to remove traces of malicious activity
References:
  -https://github.com/sleventyeleven/linuxprivchecker/
  -https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1552.003/T1552.003.md
Author: Florian Roth (Nextron Systems)
Date: 2022-06-20
modified:2022-09-15
Tags:
  • -'attack.impact'
  • -'attack.t1565.001'
Logsource:
  • category: process_creation
  • product: linux
Detection:
  selection:
    Image|endswith:
      -'/rm'
      -'/unlink'
      -'/shred'

  selection_history:
    - CommandLine|contains:
      - '/.bash_history'
      - '/.zsh_history'
    - CommandLine|endswith:
      - '_history'
      - '.history'
      - 'zhistory'
  condition:all of selection*
Falsepositives:
  -Legitimate administration activities
Level: high