Reference tables / ATT&CK techniques / T1222.002
T1222.002 Linux and Mac Permissions
- Tactics
- Defense Evasion
- Reports citing the ID, 90 days
- 1
- KEV CVEs mapped
- 0
- SigmaHQ rules
- 4
- Elastic, Splunk
- 15
- thrunt rules
- 0
- MITRE
- https://attack.mitre.org/techniques/T1222/002
Rules
SigmaHQ community rules
- Remove Immutable File Attribute - Auditd (core)
- File or Folder Permissions Change (core)
- Remove Immutable File Attribute (core)
- Chmod Targeting Sensitive Directories (core)
Elastic and Splunk rules
- File Execution Permission Modification Detected via Defend for Containers (elastic)
- ESXi File Made Executable with chmod (elastic)
- Access Control List Modification via setfacl (elastic)
- File made Immutable by Chattr (elastic)
- File Creation in World-Writable Directory by Unusual Process (elastic)
- File Permission Modification in Writable Directory (elastic)
- Suspicious File Made Executable via Chmod Inside A Container (elastic)
- System Binary Path File Permission Modification (elastic)
- Executable Bit Set for Potential Persistence Script (elastic)
- Potential Unauthorized Access via Wildcard Injection Detected (elastic)
- Privilege Escalation via CAP_CHOWN/CAP_FOWNER Capabilities (elastic)
- Linux Auditd Change File Owner To Root (splunk)
- Linux Auditd File Permission Modification Via Chmod (splunk)
- Linux Auditd File Permissions Modification Via Chattr (splunk)
- Linux Change File Owner To Root (splunk)
MITRE description
Adversaries may modify file or directory permissions/attributes to evade access control lists (ACLs) and access protected files. File and directory permissions are commonly managed by ACLs configured by the file or directory owner, or users with the appropriate permissions. File and directory ACL implementations vary by platform, but generally explicitly designate which users or groups can perform which actions (read, write, execute, etc.). Most Linux and Linux-based platforms provide a standard set of permission groups (user, group, and other) and a standard set of permissions (read, write, and execute) that are applied to each group. While nuances of each platform’s permissions implementation may vary, most of the platforms provide two primary commands used to manipulate file and directory ACLs: <code>chown</code> (short for change owner), and <code>chmod</code> (short for change mode). Adversarial may use these commands to make themselves the owner of files and directories or change the mode if current permissions allow it. They could subsequently lock others out of the file. Specific file and directory modifications may be a required step for many techniques, such as establishing Persistence via Unix Shell Configuration Modification or tainting/hijacking other instrumental binary/configuration files via Hijack Execution Flow.
Research citing this technique
Reports and advisories from the last 90 days that cite this technique.
-
2026-11-11Microsoft Threat Intelligence: The global socket: how threat actors are weaponizing GSocket for stealthy C2 source