Linux: chattr Used to Remove Immutable File Attribute

Flags Linux process use of chattr with -i to remove the immutable file attribute.

FreeReviewedSigma · Medium · v3
Product
linux
Category
process_creation
Author
Nasreddine Bencherchali (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2022-09-15
Updated
2026-07-31

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 flags process executions where the command invokes the chattr utility with the immutable-attribute removal option ("-i"), indicating an attempt to alter file protection. Removing immutability can help attackers modify or delete files that were intended to resist tampering, supporting defense-impairment and persistence activities. It relies on Linux process creation telemetry, matching the chattr executable path and the presence of the " -i " argument in the command line.

Related detections7 linkedT1222.002 — drag to rearrange
Suspicious Making a File Executable in a Temp Directory (via process_creation)
Suspicious File Immutability Manipulation via chattr
Suspicious Download to tmp Followed by chmod Execution on Linux
Malicious Immutable Flag on SSH authorized_keys via chattr
Linux chmod Process Commandlines Targeting Sensitive Directory Paths
Linux auditd: chmod/chown process execution indicating file or folder permission changes
Linux auditd: Detect chattr -i removing immutable file attribute
Linux: chattr Used to Remove Immutable File Attribute
Pivot detection · T1222.002 · 7 related

Changelog

v3
  1. v3
    Candidate ingested via manual entry.2026-07-31
  2. v2
    Candidate ingested via manual entry.2026-07-31
  3. v1
    No changelog recorded for this version.2026-07-30

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