M1022 / CONTROL
Restrict File and Directory Permissions
Restricting file and directory permissions involves setting access controls at the file system level to limit which users, groups, or processes can read, write, or execute files. By configuring permissions appropriately, organizations can reduce the attack surface for adversaries seeking to access sensitive data, plant malicious code, or tamper with system files. Enforce Least Privilege Permissions: - Remove unnecessary write permissions on sensitive files and directories. - Use file ownership and groups to control access for specific roles. Example (Windows): Right-click the shared folder → Properties → Security tab → Adjust permissions for NTFS ACLs. Harden File Shares: - Disable anonymous access to shared folders. - Enforce NTFS permissions for shared folders on Windows. Example: Set permissions to restrict write access to critical files, such as system executables (e.g., `/bin` or `/sbin` on Linux). Use tools like `chown` and `chmod` to assign file ownership and limit access. On Linux, apply: `chmod 750 /etc/sensitive.conf` `chown root:admin /etc/sensitive.conf` File Integrity Monitoring (FIM): - Use tools like Tripwire, Wazuh, or OSSEC to monitor changes to critical file permissions. Audit File System Access: - Enable auditing to track permission changes or unauthorized access attempts. - Use auditd (Linux) or Event Viewer (Windows) to log activities. Restrict Startup Directories: - Configure permissions to prevent unauthorized writes to directories like `C:\ProgramData\Microsoft\Windows\Start Menu`. Example: Restrict write access to critical directories like `/etc/`, […]
- Category
- Detection & response
- Version / scope
- ATT&CK Enterprise 20.1; object 1.2
- Affected / relevant technologies
- Enterprise systems
- Evidence
- Documentation: pinned-source excerpt checked. Execution: not tested. Editorial: curated reference.
Defensive analysis and explicitly authorized assessment only. This website performs no scans, exploitation, model calls or infrastructure changes. Indicators below are investigation opportunities, not proof of compromise or guaranteed detectors.
Mechanism and prerequisites
Assess applicability to the documented environment and obtain authorization before any testing. This publisher reference is not a tested configuration or execution guide.
Potential impact
The publisher describes a mitigation or detection scope; applicability does not establish local protection or an incident.
Versioned source scope
This record contains normalized, sometimes shortened source excerpts with editorial safety context. Markup and executable example blocks are omitted. Source-field verification does not establish device testing, a working detector or local applicability.
Publisher: MITRE. Release: ATT&CK Enterprise 20.1. Source checked: 2026-11-18.
Source object: course-of-action--987988f0-cf86-4680-a875-2f6456ab2448. Object created: 2019-06-06T20:54:49.964Z. Object modified: 2026-05-12T15:12:00.731Z.
Attribution and source terms (© The MITRE Corporation; reproduced with permission)Detection and investigation
- See publisher detection strategy relationships where available; local detection coverage requires independent assessment.
Preserve source timestamps, asset identity and collection context. Correlate independent evidence before attributing malicious intent. In OT, review passive evidence with the process owner; do not induce failures, replay commands or write to controllers to test a hypothesis.
Mitigation and response
- Restricting file and directory permissions involves setting access controls at the file system level to limit which users, groups, or processes can read, write, or execute files. By configuring permissions appropriately, organizations can reduce the attack surface for adversaries seeking to access sensitive data, plant malicious code, or tamper with system files. Enforce Least Privilege Permissions: - Remove unnecessary write permissions on sensitive files and directories. - Use file ownership and groups to control access for specific roles. Example (Windows): Right-click the shared folder → Properties → Security tab → Adjust permissions for NTFS ACLs. Harden File Shares: - Disable anonymous access to shared folders. - Enforce NTFS permissions for shared folders on Windows. Example: Set permissions to restrict write access to critical files, such as system executables (e.g., `/bin` or `/sbin` on Linux). Use tools like `chown` and `chmod` to assign file ownership and limit access. On Linux, apply: `chmod 750 /etc/sensitive.conf` `chown root:admin /etc/sensitive.conf` File Integrity Monitoring (FIM): - Use tools like Tripwire, Wazuh, or OSSEC to monitor changes to critical file permissions. Audit File System Access: - Enable auditing to track permission changes or unauthorized access attempts. - Use auditd (Linux) or Event Viewer (Windows) to log activities. Restrict Startup Directories: - Configure permissions to prevent unauthorized writes to directories like `C:\ProgramData\Microsoft\Windows\Start Menu`. Example: Restrict write access to critical directories like `/etc/`, […]
Apply changes through the asset owner's approved change and recovery process. Documentation review is separate from successful testing or verified production protection.
Related technical context
No protocol-specific mapping is asserted for this entry.
Publisher-defined relationships
These directed relationships come from the pinned publisher data. They describe framework context, not guaranteed prevention, detection coverage or equivalence between entities.
- M1022 → mitigates → T1036.005: Match Legitimate Resource Name or Location
- M1022 → mitigates → T1565.001: Stored Data Manipulation
- M1022 → mitigates → T1037.004: RC Scripts
- M1022 → mitigates → T1222.002: Linux and Mac Permissions
- M1022 → mitigates → T1698: Indirect Prompt Injection
- M1022 → mitigates → T1037.005: Startup Items
- M1022 → mitigates → T1053.006: Systemd Timers
- M1022 → mitigates → T1218.002: Control Panel
- M1022 → mitigates → T1685.007: Impair Autonomous Defenses
- M1022 → mitigates → T1547.003: Time Providers
- M1022 → mitigates → T1574.004: Dylib Hijacking
- M1022 → mitigates → T1222.001: Windows Permissions
- M1022 → mitigates → T1037.003: Network Logon Script
- M1022 → mitigates → T1686.003: Windows Host Firewall
- M1022 → mitigates → T1098.004: SSH Authorized Keys
- M1022 → mitigates → T1565.003: Runtime Data Manipulation
- M1022 → mitigates → T1552.004: Private Keys
- M1022 → mitigates → T1055.009: Proc Memory
- M1022 → mitigates → T1685: Disable or Modify Tools
- M1022 → mitigates → T1686: Disable or Modify System Firewall
- M1022 → mitigates → T1574.007: Path Interception by PATH Environment Variable
- M1022 → mitigates → T1547.013: XDG Autostart Entries
- M1022 → mitigates → T1564.004: NTFS File Attributes
- M1022 → mitigates → T1543.001: Launch Agent
- M1022 → mitigates → T1574.008: Path Interception by Search Order Hijacking
- M1022 → mitigates → T1546.013: PowerShell Profile
- M1022 → mitigates → T1070: Indicator Removal
- M1022 → mitigates → T1098: Account Manipulation
- M1022 → mitigates → T1574: Hijack Execution Flow
- M1022 → mitigates → T1036: Masquerading
- M1022 → mitigates → T1547.009: Shortcut Modification
- M1022 → mitigates → T1222: File and Directory Permissions Modification
- M1022 → mitigates → T1053: Scheduled Task/Job
- M1022 → mitigates → T1563.001: SSH Hijacking
- M1022 → mitigates → T1070.008: Clear Mailbox Data
- M1022 → mitigates → T1548.003: Sudo and Sudo Caching
- M1022 → mitigates → T1070.009: Clear Persistence
- M1022 → mitigates → T1552: Unsecured Credentials
- M1022 → mitigates → T1543.002: Systemd Service
- M1022 → mitigates → T1070.003: Clear Command History
- M1022 → mitigates → T1543: Create or Modify System Process
- M1022 → mitigates → T1037.002: Login Hook
- M1022 → mitigates → T1685.006: Clear Linux or Mac System Logs
- M1022 → mitigates → T1556: Modify Authentication Process
- M1022 → mitigates → T1548: Abuse Elevation Control Mechanism
- M1022 → mitigates → T1546.004: Unix Shell Configuration Modification
- M1022 → mitigates → T1530: Data from Cloud Storage
- M1022 → mitigates → T1574.014: AppDomainManager
- M1022 → mitigates → T1574.009: Path Interception by Unquoted Path
- M1022 → mitigates → T1565: Data Manipulation
- M1022 → mitigates → T1569: System Services
- M1022 → mitigates → T1569.002: Service Execution
- M1022 → mitigates → T1037: Boot or Logon Initialization Scripts
- M1022 → mitigates → T1685.005: Clear Windows Event Logs
- M1022 → mitigates → T1489: Service Stop
- M1022 → mitigates → T1048: Exfiltration Over Alternative Protocol
- M1022 → mitigates → T1036.003: Rename Legitimate Utilities
- M1022 → mitigates → T1080: Taint Shared Content
- M1022 → mitigates → T1553.003: SIP and Trust Provider Hijacking
- M1022 → mitigates → T1685.001: Disable or Modify Windows Event Log
- M1022 → mitigates → T1700: AI-Enabled Exfiltration
- M1022 → mitigates → T1552.001: Credentials In Files
- M1022 → mitigates → T1548.006: TCC Manipulation
Authoritative sources and attribution
Identifiers and source titles belong to OWASP, MITRE, the CVE Program, CISA, NIST or the cited vendor. Source excerpts are attributed and adapted under the linked publisher license; editorial context is separate. This is not an official framework mirror. Review baseline: 2026-11-18. Live documents can change; check exact current applicability.
- https://attack.mitre.org/mitigations/M1022 — Publisher link; not separately HTTP-checked
- enterprise — source accessed 2026-11-18
Source review supports bounded reference text. It is not execution evidence, a completeness claim, a CVSS assessment, a compliance certification or verification of production security.
