Gold Open Source
ExplorePackagesVulnerabilitiesMCP Servers
Login
Gold Open Source

The authoritative source for production-ready open-source components. Every package, container image, AI model, and MCP server undergoes rigorous verification for security, malware, and license compliance.

Explore Gold

  • Explore Everything
  • Packages
  • Gold Certified Packages
  • Container Images
  • AI Models
  • MCP Servers
  • Agent Skills
  • Chip Manufacturers

Security Data & Tools

  • Scan Your Dependencies
  • Trending Threats
  • Threat RSS Feeds
  • CVE Database
  • Actively Exploited (KEV)
  • SGZ Zero-Days
  • CWE Index
  • MITRE ATT&CK
  • Malicious Packages
  • Security Glossary
  • Supply-Chain Report
  • Developers (API & Badge)
  • Chrome Extension
  • Credits & Data Sources

Products

  • The Platform
  • ESSCM
  • Portal
  • TPRM
  • OSM
  • Cowork
  • Code / Runner
  • Guard

Use Cases

  • Know Your Software
  • Auto-Fix Vulnerabilities
  • Asset Discovery
  • AI Governance
  • MCP Server Security
  • Supply Chain Compliance
  • Zero-Day Discovery
  • All Use Cases

Company

  • About
  • Pricing
  • Blog
  • Documentation
  • Safeguard Academy
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 Gold Open Source. All rights reserved.

Built with care bySafeguard
Home/ATT&CK/M1022
MITRE ATT&CK Mitigation

M1022: Restrict File and Directory Permissions

ShareXLinkedInRedditHN

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/`, `/usr/local/`, and Windows directories such as `C:\Windows\System32`. - On Windows, use icacls to modify permissions: `icacls "C:\Windows\System32" /inheritance:r /grant:r SYSTEM:(OI)(CI)F` - On Linux, monitor permissions using tools like `lsattr` or `auditd`.

▪Techniques addressed (60)

T1036.005Match Legitimate Resource Name or LocationT1565.001Stored Data ManipulationT1037.004RC Scripts

▪Reference

M1022 on MITRE ATT&CK
T1222.002Linux and Mac Permissions
T1037.005Startup Items
T1053.006Systemd Timers
T1218.002Control Panel
T1547.003Time Providers
T1574.004Dylib Hijacking
T1222.001Windows Permissions
T1037.003Network Logon Script
T1686.003Windows Host Firewall
T1098.004SSH Authorized Keys
T1565.003Runtime Data Manipulation
T1552.004Private Keys
T1055.009Proc Memory
T1685Disable or Modify Tools
T1686Disable or Modify System Firewall
T1574.007Path Interception by PATH Environment Variable
T1547.013XDG Autostart Entries
T1564.004NTFS File Attributes
T1543.001Launch Agent
T1574.008Path Interception by Search Order Hijacking
T1546.013PowerShell Profile
T1070Indicator Removal
T1098Account Manipulation
T1574Hijack Execution Flow
T1036Masquerading
T1547.009Shortcut Modification
T1222File and Directory Permissions Modification
T1053Scheduled Task/Job
T1563.001SSH Hijacking
T1070.008Clear Mailbox Data
T1548.003Sudo and Sudo Caching
T1070.009Clear Persistence
T1552Unsecured Credentials
T1543.002Systemd Service
T1070.003Clear Command History
T1543Create or Modify System Process
T1037.002Login Hook
T1685.006Clear Linux or Mac System Logs
T1556Modify Authentication Process
T1548Abuse Elevation Control Mechanism
T1546.004Unix Shell Configuration Modification
T1530Data from Cloud Storage
T1574.014AppDomainManager
T1574.009Path Interception by Unquoted Path
T1565Data Manipulation
T1569System Services
T1569.002Service Execution
T1037Boot or Logon Initialization Scripts
T1685.005Clear Windows Event Logs
T1489Service Stop
T1048Exfiltration Over Alternative Protocol
T1036.003Rename Legitimate Utilities
T1080Taint Shared Content
T1553.003SIP and Trust Provider Hijacking
T1685.001Disable or Modify Windows Event Log
T1552.001Credentials In Files
T1548.006TCC Manipulation

MITRE ATT&CK® is a registered trademark of The MITRE Corporation. © 2026 The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation.