T1222 File and Directory Permissions Modification
Defense Impairmenton attack.mitre.org
ATT&CK Enterprise 20.0 · 20.1 released, update in review
How MITRE detects it
DET0299 Multi-Platform File and Directory Permissions Modification Detection Strategy
AN0834 Windows
Sequential behavioral chain of privilege escalation through permission modification: (1) Process creation of permission-modifying utilities (icacls, takeown, attrib, cacls), (2) Correlation with unusual user context or timing, (3) DACL modification events targeting sensitive files/directories, (4) Subsequent file access or modification attempts indicating successful privilege bypass
| MITRE log source | In Microsoft Sentinel |
|---|---|
WinEventLog:SecurityEventCode=4688 |
The same events land in SecurityEvent (Windows Security Events connectors) or WindowsEvent (Windows Event Forwarding); many built-in rules read SecurityEvent only. |
WinEventLog:SecurityEventCode=4663, 4670, 4656 |
The same events land in SecurityEvent (Windows Security Events connectors) or WindowsEvent (Windows Event Forwarding); many built-in rules read SecurityEvent only. |
WinEventLog:SecurityEventCode=4663, 4670, 4656 |
The same events land in SecurityEvent (Windows Security Events connectors) or WindowsEvent (Windows Event Forwarding); many built-in rules read SecurityEvent only. |
WinEventLog:SysmonEventCode=11 |
Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent. |
WinEventLog:PowerShellEventCode=4103, 4104, 4105, 4106 |
|
AN0835 Linux
Behavioral sequence of unauthorized privilege escalation via permission modification: (1) chmod/chown/setfacl process execution with suspicious parameters, (2) Targeting of critical system files or unusual permission values, (3) Correlation with non-privileged user context or unusual timing patterns, (4) Follow-on file access indicating successful permission bypass
| MITRE log source | In Microsoft Sentinel |
|---|---|
auditd:SYSCALLsyscall in (chmod, fchmod, fchmodat, chown, fchown, fchownat, setxattr, lsetxattr, fsetxattr) | Not mapped to Sentinel yet. |
auditd:PROCTITLEproctitle contains chmod, chown, setfacl, or attr commands with suspicious parameters | Not mapped to Sentinel yet. |
AN0836 macOS
macOS-specific permission modification behavioral chain: (1) chmod/chown/chflags process execution, (2) System Integrity Protection (SIP) bypass attempts, (3) Extended attribute (xattr) modifications, (4) Unified log correlation with file system events, (5) Subsequent access to previously restricted resources
| MITRE log source | In Microsoft Sentinel |
|---|---|
macos:unifiedlogprocess execution events for chmod, chown, chflags with unusual parameters or targets | Not mapped to Sentinel yet. |
fs:fseventsfile system events indicating permission or attribute changes | Not mapped to Sentinel yet. |
AN0837 ESXi
ESXi hypervisor permission modification behavioral chain: (1) SSH access to ESXi host, (2) chmod/chown execution on VMFS datastore files or system configuration, (3) Modification of VM configuration files (.vmx) or virtual disk permissions, (4) Hostd service log correlation, (5) vCenter permission change events if centrally managed
| MITRE log source | In Microsoft Sentinel |
|---|---|
esxi:shellshell command execution for chmod, chown, or file permission modification on VMFS or system files | Not mapped to Sentinel yet. |
esxi:hostdhost daemon events related to file or VM permission changes | Not mapped to Sentinel yet. |
esxi:vpxdpermission change operations on datastores or VMs | Not mapped to Sentinel yet. |
Content Hub rules tagged with it (4)
- PROD (TM006.1) - ACL - Modified at Tier Level OU
- PROD (TM007.1) - OU - Created or Deleted at Tier Level
- PROD (TM009.1) - ACL - Modified at Root of the Domain
- SAP BTP - Cloud Integration access policy tampering
How the Content Hub rules for T1222 are built: their tables, filters, joins, schedules and windows.
In Sigma rules
11 SigmaHQ community rules name it or one of its sub-techniques in their tags.
- AD Object WriteDAC Access
- WannaCry Ransomware Activity
- PowerShell Set-Acl On Windows Folder - PsScript
- Chmod Targeting Sensitive Directories
- File or Folder Permissions Modifications
- Potentially Suspicious NTFS Symlink Behavior Modification
- Remove Immutable File Attribute
- Remove Immutable File Attribute - Auditd
- Suspicious Recursive Takeown
- File or Folder Permissions Change
- PowerShell Script Change Permission Via Set-Acl - PsScript
Mitigations
Sub-techniques
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.