Sigma rule: Print History File Contents

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-273860b6599d, updated 2022-09-15T00:00:00.000Z.

Rule

Title
Print History File Contents
Status
test
Level
medium
Author
Florian Roth (Nextron Systems)
Date
2022-06-20
Modified
2022-09-15
File
rules/linux/process_creation/proc_creation_lnx_susp_history_recon.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects events in which someone prints the contents of history files to the commandline or redirects it to a file for reconnaissance

Log source

product
linux
category
process_creation

Detection

selection:
    Image|endswith:
        - '/cat'
        - '/head'
        - '/tail'
        - '/more'
selection_history:
    - CommandLine|contains:
          - '/.bash_history'
          - '/.zsh_history'
    - CommandLine|endswith:
          - '_history'
          - '.history'
          - 'zhistory'
condition: all of selection*

False positives (as the rule lists them)

  • Legitimate administration activities

Tags

  • attack.reconnaissance
  • attack.t1592.004

MITRE ATT&CK ids this rule names

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/linux/process_creation/proc_creation_lnx_susp_history_recon.yml

Sources and licences

  • SigmaHQ

    "Print History File Contents" by Florian Roth (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/linux/process_creation/proc_creation_lnx_susp_history_recon.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Print History File Contents",
entity page, dataset version ref-273860b6599d, updated 2022-09-15T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/d7821ff1-4527-4e33-9f84-d0d57fa2fb66 (accessed 2026-11-03).
Underlying source: SigmaHQ rule d7821ff1-4527-4e33-9f84-d0d57fa2fb66, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.