Suspicious Shell History and Log Clearing on Linux

PremiumReviewedSigma · Medium · v1
Product
linux
Category
process_creation
Author
HuntRule
Published
2026-09-19
Updated
2026-09-19

ATT&CK techniques

Defense Evasion
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Cred Access

  8. Discovery

  9. Lateral Movement

  10. Collection

  11. C2

  12. Exfiltration

  13. Impact

What it detects

This rule detects commands that clear shell history or truncate and shred system logs as used by Linux rootkit operators to remove traces of activity in Elastic detection research. Clearing history and wiping auth or utmp logs after intrusion is a common anti forensic action indicating hands on keyboard cleanup.

Related detections9 linkedT1070.003 — drag to rearrange
Suspicious Clearing of Linux Authentication and History Logs
Suspicious Bash History Clearing for Anti-Forensics on Linux (via process_creation)
Suspicious Shell History Anti-Forensics via HISTFILE Manipulation
Malicious Sed Tampering of Ivanti Debug and Audit Logs (via process_creation)
Suspicious File Immutability Set via chattr to Resist Removal
Malicious Tampering of Linux Authentication Log var log secure (via process_creation)
Suspicious Shell History Disabling via HISTFILE Redirection on Linux
Suspicious Shell History Clearing or Disabling (via process_creation)
Suspicious Deletion of System Logs Under var log on Linux Appliance
Suspicious Shell History and Log Clearing on Linux
Pivot detection · T1070.003 · 9 related

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