Suspicious Shell History Clearing or Disabling (via process_creation)

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

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 or disable shell history, such as truncating bash_history, unsetting HISTFILE or setting HISTFILESIZE to zero, an anti-forensic step used to hide interactive activity on a Linux host. Shell history tampering is an indicator-removal technique tracked in the Red Canary Threat Detection Report. Detecting it surfaces an operator covering hands-on-keyboard tracks.

Related detections8 linkedT1070.003 — drag to rearrange
Suspicious COLDRIVER RunMRU History Clearing via Reg Delete (via process_creation)
Suspicious File Immutability Set via chattr for Anti-Removal on Linux
Suspicious Clearing of Linux Authentication and History Logs
Windows Registry RunMRU Key Deletion
Windows: Detect reg.exe Deletion of RunMRU Registry Key
Windows PowerShell Command History Disable via Remove-Module psreadline
Windows PowerShell Clears Console History via Clear-History
Cisco Network OS Log and Archive Clearing via “clear logging” Commands
Suspicious Shell History Clearing or Disabling (via process_creation)
Pivot detection · T1070.003 · 8 related

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