Suspicious History File Operations - Linux (via auditd)

This rule detects commandline operations on shell history files

SigmamediumLinuxv1
sigma
title: Suspicious History File Operations - Linux (via auditd)
id: 14a81aa6-b926-5e83-98d8-efda5c5c67a9
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-03-19
tags:
    - attack.credential-access
    - attack.t1552.003
logsource:
    product: linux
    service: auditd
detection:
    execve:
        type: EXECVE
    history:
        - '.bash_history'
        - '.zsh_history'
        - '.zhistory'
        - '.history'
        - '.sh_history'
        - 'fish_history'
    condition: execve and history
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.