Detectionmediumtest
Suspicious History File Operations
Detects commandline operations on shell history files
Mikhail Larin, oscd.communityCreated 2020-10-17Updated 2021-11-27508a9374-ad52-4789-b568-fc358def2c65macos
Log Source
macOSProcess Creation
ProductmacOS← raw: macos
CategoryProcess Creation← raw: process_creation
Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.
Detection Logic
Detection Logic1 selector
detection:
selection:
CommandLine|contains:
- '.bash_history'
- '.zsh_history'
- '.zhistory'
- '.history'
- '.sh_history'
- 'fish_history'
condition: selectionFalse Positives
Legitimate administrative activity
Legitimate software, cleaning hist file
References
MITRE ATT&CK
Tactics
Sub-techniques
Rule Metadata
Rule ID
508a9374-ad52-4789-b568-fc358def2c65
Status
test
Level
medium
Type
Detection
Created
2020-10-17
Modified
2021-11-27
Author
Path
rules/macos/process_creation/proc_creation_macos_susp_histfile_operations.yml
Raw Tags
attack.credential-accessattack.t1552.003