Suspicious Remove Immutable File Attribute - Auditd (via auditd)

This rule detects removing immutable file attribute.

SigmamediumLinuxv1
sigma
title: Suspicious Remove Immutable File Attribute - Auditd (via auditd)
id: 8c0b581e-c16f-5e17-b269-8894f0645af6
status: stable
description: This rule detects removing immutable file attribute.
references:
    - https://attack.mitre.org/techniques/T1222/002/
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1222.002/T1222.002.md
author: Huntrule Team
date: 2026-03-09
tags:
    - attack.defense-impairment
    - attack.t1222.002
logsource:
    product: linux
    service: auditd
detection:
    selection:
        type: 'EXECVE'
        a0|contains: 'chattr'
        a1|contains: '-i'
    condition: selection
falsepositives:
    - Unknown
level: medium
simulation:
    - type: atomic-red-team
      name: Remove immutable file attribute
      technique: T1222.002
      atomic_guid: e7469fe2-ad41-4382-8965-99b94dd3c13f

Known false positives

  • Unknown

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