MITRE ATT&CKsub-technique

T1222.002 Linux and Mac Permissions

Published 2020-02-04 Modified 2026-05-12 Official page ↗
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)

  • M1022 Restrict File and Directory Permissions mitigation
  • M1026 Privileged Account Management mitigation

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