See drduh macOS Security and Privacy Guide
for more details.
- Set firmware password.
sudo firmwarepasswd -setpasswd -setmode command
. - AutoDMG imaging no longer works. Instead install clean macOS using a USB bootable installer. User, and custom packages now have to be configured after install.
- Make bootable USB. Download latest macOS from App Store, erase and format a USB to HFS+ and use the latest script to create the bootable installer.
- On Mac, hold
option
down on restart, then choose the Install macOS boot disk. - Use Disk Utility to erase Macintosh HD and reformat to APFS.
- Exit Disk Utility and reinstall macOS back to Macintosh HD.
- Restart into Mac, create temp account, don't agree to location, siri, or diagnostics.
- Once through Mac setup flow and on desktop, use custom packages to create standard users, login to standard user account, and delete temp account.
- Continue setup using
bootstrap.sh
(or Manual Setup below) and install with standard account. After initial setup, use commandchmod_admin
in.adrw-functions
to reduce privileges back to Standard.
- Change system
ComputerName
andLocalHostName
to remove personal information
$ sudo scutil --set ComputerName { name }
$ sudo scutil --set LocalHostName { name }
- Manually seed entropy with random letters then
crtl-d
usingcat > /dev/random
- Enable FileVault through GUI or
sudo fdesetup enable
- Enable firewall, logging, and stealth mode (doesn't respond to ICMP ping requests or closed TCP/UDP ports)
$ sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate on
$ sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setloggingmode on
$ sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setstealthmode on
- Stop both built-in and download software from being automatically whitelisted
$ sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setallowsigned off
$ sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setallowsignedapp off
- Third party firewalls
- Disable
Spotlight Suggestions
andAllow Spotlight Suggestions in Look up
inSettings/Spotlight
- Disable
Include Safari Suggestions
inSafari / Preferences / Search
- Consider
homecall.sh
script from macOS-home-call-drop- fix-macosx.com for more resources
- Install Command Line Tools, simply type
git
to prompt or usexcode-select --install
- Use
main.sh
script to install
oh-my-zsh
as default shellmac-defaults.sh
to change Mac settings (show all files, increase keyboard repeate rate...)copy-dotfiles.sh
to move.vimrc
- Homebrew into
~/homebrew
folder to maintain security of/usr/local
(more) install.sh
install dev tools, apps through brew cask, and apps through mac app store
ssh-keygen -t rsa -b 4096 -C "[email protected]"
pbcopy < ~/.ssh/id_rsa.pub
save to clipboard and then to GitHub account
- Append consolidated host file for broad low level blocking of ad and malware networks