Suspicious History File Operations (via process_creation)
This rule detects commandline operations on shell history files
SigmamediummacOSv1
sigma
suspicious-history-file-operations-via-process-creation
title: Suspicious History File Operations (via process_creation)
id: d44debe4-a831-571b-bff1-3a93f9d6581a
status: stable
description: This rule detects commandline operations on shell history files
references:
- https://attack.mitre.org/techniques/T1552/003/
- https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1552.003/T1552.003.md
author: 'Huntrule Team'
date: 2026-04-23
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:
- Unknown
level: medium
Known false positives
- Unknown
Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.