Learn about world writable files and how to remediate them
What are World Writeable Files?
World writable files in macOS are files or directories that any user on the system can modify. While this might seem convenient, it poses significant security risks. Any user, including those with malicious intent, can alter these files, potentially leading to unauthorized changes, data corruption, or even system compromise.
Being aware of these files is crucial because they can be exploited to inject malicious code or disrupt services. Regularly auditing and managing file permissions helps maintain system integrity and security. Ensuring that world writable permissions are minimized or eliminated is a fundamental step in protecting your Mac computers from potential vulnerabilities.
Auditing for and Remediating World Writeable Files in the Library Folder
A Parameter can be configured in both Assignment Maps and Classic Blueprints to audit for world writable files located in the Library folder and attempt to remediate them if found. To configure the Parameter:
- Navigate to your desired Assignment Map or Classic Blueprint, and click Parameters.
- Select Edit Parameters. If this is the first Parameter you're adding, select Add Parameters in your Assignment Map or Enable Parameters in your Classic Blueprint.
- In the search field, enter "world writable".
- Locate the Check Library folder for world writable files Parameter, and enable it by toggling the switch.
- Optionally, configure directory exclusions where needed.
- Click Save.
Auditing for World Writable Files in the System Folder
Because of Apple's System Integrity Protection (SIP), world writable files found in the System folder cannot be remediated automatically. Manual intervention is required to resolve alerts for world writeable files found in this location.
A Parameter can be configured in both Assignment Maps and Classic Blueprints to audit for world writable files located in the System folder and alert admins to their presence. To configure the Parameter:
- Navigate to your desired Assignment Map or Classic Blueprint, and click Parameters.
- Select Edit Parameters. If this is the first Parameter you're adding, select Add Parameters in your Assignment Map or Enable Parameters in your Classic Blueprint.
- In the search field, enter "world writable".
- Locate the Check System folder for world writable files Parameter, and enable it by toggling the switch.
- Optionally, mute the Parameter if you want to receive alerts quietly.
- Click Save.