MITRE ATT&CKsub-technique
T1222.002 Linux and Mac Permissions
- Domain
- enterprise
- Tactics
- Defense Impairment
- Platforms
- Linux, macOS
- Version
- 2.0
- Created
- 2020-02-04
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: chown (short for change owner), and chmod (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.
Related
Subtechnique of · MITRE ATT&CK (1)
- T1222 File and Directory Permissions Modification technique
Tactic · MITRE ATT&CK (1)
- TA0112 Defense Impairment tactic
Referenced by MITRE ATT&CK · mitigates (2)
Referenced by MITRE ATT&CK · uses (16)
- S9013 DRYHOOK software (malware)
- C0035 KV Botnet Activity campaign
- S1105 COATHANGER software (malware)
- S1070 Black Basta software (malware)
- S0658 XCSSET software (malware)
- G0139 TeamTNT group
- S0598 P.A.S. Webshell software (malware)
- S0599 Kinsing software (malware)
- S0587 Penquin software (malware)
- S0482 Bundlore software (malware)
- G0106 Rocke group
- S0402 OSX/Shlayer software (malware)
- S0352 OSX_OCEANLOTUS.D software (malware)
- G0082 APT38 group
- S0281 Dok software (malware)
- G0050 APT32 group
Referenced by Compliance · mitigates (11)
- NIST-AC-16 Security and Privacy Attributes NIST 800-53 control
- NIST-AC-2 Account Management NIST 800-53 control
- NIST-AC-3 Access Enforcement NIST 800-53 control
- NIST-AC-5 Separation of Duties NIST 800-53 control
- NIST-AC-6 Least Privilege NIST 800-53 control
- NIST-CA-7 Continuous Monitoring NIST 800-53 control
- NIST-CM-5 Access Restrictions for Change NIST 800-53 control
- NIST-CM-6 Configuration Settings NIST 800-53 control
- NIST-IA-2 Identification and Authentication (Organizational Users) NIST 800-53 control
- NIST-SI-4 System Monitoring NIST 800-53 control
- NIST-SI-7 Software, Firmware, and Information Integrity NIST 800-53 control
References
- https://www.hybrid-analysis.com/sample/ef0d2628823e8e0a0de3b08b8eacaf41cf284c086a948bdfd67f4e4373c14e4d?environmentId=100 Hybrid Analysis Icacls1 June 2018
- https://www.hybrid-analysis.com/sample/22dab012c3e20e3d9291bce14a2bfc448036d3b966c6e78167f4626f5f9e38d6?environmentId=110 Hybrid Analysis Icacls2 May 2018
- https://labs.sentinelone.com/20-common-tools-techniques-used-by-macos-threat-actors-malware/ 20 macOS Common Tools and Techniques