Linux: Command-Line Access to Shell History Files via execve

Alerts when executed commands reference common Linux shell history files.

FreeReviewedSigma · Medium · v3
Product
linux
Service
auditd
Author
Mikhail Larin, oscd.community (SigmaHQ), DRL 1.1
Published
2020-10-17
Updated
2026-07-31

ATT&CK techniques

Cred Access
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Defense Evasion

  8. Discovery

  9. Lateral Movement

  10. Collection

  11. C2

  12. Exfiltration

  13. Impact

What it detects

This rule flags processes that invoke execution while targeting common shell history files such as .bash_history, .zsh_history, .history, and fish_history. Attackers may access or modify shell history to cover tracks, reconstruct prior commands, or stage follow-on activity. It relies on Linux auditd execve telemetry combined with process arguments matching the specified history file paths.

Related detections2 linkedT1552.003 — drag to rearrange
macOS Process Creation: Command Line Access to Shell History Files
Cisco AAA: Detection of 'show history' and 'show logging' command input
Linux: Command-Line Access to Shell History Files via execve
Pivot detection · T1552.003 · 2 related

Changelog

v3
  1. v3
    Candidate ingested via manual entry.2026-07-31
  2. v2
    Candidate ingested via manual entry.2026-07-31
  3. v1
    No changelog recorded for this version.2026-07-30

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.