This repository is a collection of scripts designed to secure/harden macOS.
All you need to do is download this repository to your local machine:
git clone https://github.com/StrangeRanger/macos-security-scripts
Note
Some of the scripts in this repository require root privileges to run. You can run the scripts with the sudo
command to give them the necessary permissions.
You can run the scripts in this repository by using the following command:
./[script name]
OR bash [script name]
Below is a list of all the versions of macOS that the security scripts have been officially tested and are confirmed to work on.
- macOS 15 (Sequoia)
- macOS 14 (Sonoma)
- macOS 13 (Ventura)
- macOS 12 (Monterey)
- macOS 11 (Big Sur)
While this repository has scripts that can help secure macOS, it doesn't cover everything. Below are some other resources that can help you further secure your Mac:
- macOS Security and Privacy Guide - A resource with a lot of good advice on how to increase the privacy and security of your Mac.
- Privacy.Sexy - Open-source tool to enforce privacy & security best-practices on Windows and macOS, because privacy is sexy 🍑🍆.