Linux auditd: Detect chattr -i removing immutable file attribute

Flags Linux processes using chattr to remove the immutable (-i) file attribute via auditd execve telemetry.

FreeReviewedSigma · Medium · v3
Product
linux
Service
auditd
Author
Jakob Weinzettl, oscd.community (SigmaHQ), DRL 1.1
Published
2019-09-23
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 matches executions of chattr that include the -i option, which removes the immutable file attribute. Attackers use this to modify or replace files that were protected to resist tampering, which can enable defense impairment or persistence workflows. It relies on auditd EXECVE telemetry capturing command-line arguments containing both 'chattr' and '-i'.

Related detections9 linkedT1222.002 — drag to rearrange
Suspicious File Immutability Set via chattr to Resist Removal
Suspicious File Immutability via chattr
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: chattr Used to Remove Immutable File Attribute
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
Pivot detection · T1222.002 · 9 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.