Suspicious File Immutability Set via chattr for Anti-Removal on Linux

PremiumReviewedSigma · Medium · v1
Product
linux
Category
process_creation
Author
HuntRule
Published
2026-06-13
Updated
2026-08-28

ATT&CK techniques

Persistence → Defense Evasion
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Cred Access

  6. Discovery

  7. Lateral Movement

  8. Collection

  9. C2

  10. Exfiltration

  11. Impact

What it detects

This rule detects chattr setting the immutable attribute on a file, an anti-removal technique used by the PeerBlight Linux backdoor to protect its sshd-agent persistence from deletion. Making backdoor files immutable prevents defenders and admins from removing them without first clearing the attribute. Interactive chattr immutability changes on service files are uncommon and suspicious.

Related detections9 linkedT1543.002 — drag to rearrange
Malicious Systemd Service Masquerading as Sd-Pam Helper
Suspicious Shell History Anti-Forensics via HISTFILE Manipulation
Malicious Linux systemd Persistence nvmconf.service
Suspicious Linux Persistence via sed Edit of Boot and Init Files
Suspicious systemd Service Persistence via GRIDTIDE xapt
Suspicious Python Execution of Fake Sysmon Script From Config Directory
Suspicious Linux Boot Persistence via rc.local or init.d Modification (via file_event)
Malicious systemd-daemon Masquerading Binary Execution on Linux
Suspicious Masquerading systemd Unit display-managerd Creation via File System
Suspicious File Immutability Set via chattr for Anti-Removal on Linux
Pivot detection · T1543.002 · 9 related

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