Linux Process Command-Line Printing of Shell History Files

Alerts when Linux commands print or page shell history files via the command line for recon.

FreeReviewedSigma · Medium · v2
Product
linux
Category
process_creation
Author
Florian Roth (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2022-06-20
Updated
2026-07-31

ATT&CK techniques

Recon
  1. Resource Dev

  2. Initial Access

  3. Execution

  4. Persistence

  5. Priv Esc

  6. Defense Evasion

  7. Cred Access

  8. Discovery

  9. Lateral Movement

  10. Collection

  11. C2

  12. Exfiltration

  13. Impact

What it detects

This rule flags Linux process executions where the command line invokes common file-viewing utilities (cat/head/tail/more) and targets shell history files such as /.bash_history and /.zsh_history, including history-related filename suffixes. Attackers may use this behavior to quickly recover previously executed commands for reconnaissance and follow-on activity. It relies on process creation telemetry capturing the invoked image name and full command line content.

Related detections2 linkedT1592.004 — drag to rearrange
Linux Process Recon: Find SUID/htpasswd Files via Command-Line Patterns
Linux sudoers file access via text-based utilities (cat/grep/head/etc.)
Linux Process Command-Line Printing of Shell History Files
Pivot detection · T1592.004 · 2 related

Changelog

v2
  1. v2
    Candidate ingested via manual entry.2026-07-31
  2. 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.