Suspicious History File Operations

 Original Source: [Sigma source]
Title: Suspicious History File Operations
Status: test
Description:Detects commandline operations on shell history files
References:
  -https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1552.003/T1552.003.md
Author: Mikhail Larin, oscd.community
Date: 2020-10-17
modified:2021-11-27
Tags:
  • -'attack.credential-access'
  • -'attack.t1552.003'
Logsource:
  • product: macos
  • category: process_creation
Detection:
  selection:
    CommandLine|contains:
      -'.bash_history'
      -'.zsh_history'
      -'.zhistory'
      -'.history'
      -'.sh_history'
      -'fish_history'

  condition:selection
Falsepositives:
  -Legitimate administrative activity
  -Legitimate software, cleaning hist file
Level: medium