Suspicious Shell History Disabling via HISTFILE Redirection on Linux

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

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 a command line that redirects the shell history file to /dev/null which the ar.sh script from the exposed Docker API campaign runs alongside flushing the firewall to prevent command logging and hinder incident response on compromised systems.

Related detections9 linkedT1070.003 — drag to rearrange
Suspicious Shell History Clearing or Disabling (via process_creation)
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
Linux Process: ESXi syslog configuration changed via esxcli system syslog config set
Windows PowerShell Command History Disable via Remove-Module psreadline
Windows PowerShell Clears Console History via Clear-History
Suspicious Shell History Disabling via HISTFILE Redirection 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.