T1222.002 Linux and Mac Permissions
Defense Impairmenton attack.mitre.org
ATT&CK Enterprise 20.0 · 20.1 released, update in review
How MITRE detects it
DET0351 Unix-like File Permission Manipulation Behavioral Chain Detection Strategy
AN0998 Linux
Linux permission escalation behavioral chain: (1) Process creation of permission modification utilities (chmod, chown, chgrp, setfacl) with suspicious parameters indicating privilege escalation intent, (2) System call analysis revealing direct file metadata manipulation (chmod, fchmod, chown, fchown syscalls), (3) Extended attribute and ACL modifications targeting critical system paths, (4) Temporal correlation with subsequent file access or process execution from modified locations, (5) Anomalous permission patterns deviating from system baselines
| MITRE log source | In Microsoft Sentinel |
|---|---|
auditd:SYSCALLsyscall in (chmod, fchmod, fchmodat, chown, fchown, fchownat, lchown, setxattr, lsetxattr, fsetxattr, removexattr, lremovexattr, fremovexattr) | Not mapped to Sentinel yet. |
auditd:PROCTITLEproctitle contains chmod, chown, chgrp, setfacl, or attr with suspicious parameters (777, 755, +x, -R) | Not mapped to Sentinel yet. |
linux:osqueryprocess execution events for permission modification utilities with command-line analysis | Not mapped to Sentinel yet. |
AN0999 macOS
macOS permission and attribute manipulation behavioral chain: (1) Process execution of permission utilities (chmod, chown, chgrp) or macOS-specific tools (chflags) with suspicious parameters, (2) System Integrity Protection (SIP) bypass attempts through permission modifications, (3) File flags manipulation (uchg, schg, hidden) for evasion or persistence, (4) Extended attribute (xattr) modifications affecting security metadata, (5) Unified log correlation with file system events and subsequent access patterns, (6) Gatekeeper and code signing bypass through permission/attribute manipulation
| MITRE log source | In Microsoft Sentinel |
|---|---|
macos:unifiedlogprocess execution events for chmod, chown, chflags with parameter analysis and target path examination | Not mapped to Sentinel yet. |
fs:fseventsfile system events indicating permission, ownership, or extended attribute changes on critical paths. File system modification events with kFSEventStreamEventFlagItemChangeOwner, kFSEventStreamEventFlagItemXattrMod flags | Not mapped to Sentinel yet. |
OpenBSM:AuditTrailBSM audit events for file permission, ownership, and attribute modifications with user context | Not mapped to Sentinel yet. |
Content Hub rules tagged with it (0)
No Content Hub rule is tagged with this technique.
In Sigma rules
4 SigmaHQ community rules name it in their tags.
- Chmod Targeting Sensitive Directories
- Remove Immutable File Attribute
- Remove Immutable File Attribute - Auditd
- File or Folder Permissions Change
Mitigations
MITRE ATT&CK® is a registered trademark of The MITRE Corporation. VeriKQL is not affiliated with or endorsed by MITRE. ATT&CK data © The MITRE Corporation, used under its terms of use.