macOS Hardening
For a long time, macOS had a reputation of being “more secure” than Windows. Some of that is earned, macOS has solid built-in security features. But a lot of it is survivorship bias from when Macs were a smaller target. That’s no longer the case: corporate Mac fleets are large, macOS malware is growing, and threat actors increasingly target Apple platforms. The good news is that macOS has excellent native security controls - they just need to be enabled and configured properly.Start With the Benchmarks
Before diving in, know that both of these exist and are free:- CIS Apple macOS Benchmark - Covers macOS Sonoma, Ventura, and older releases. Very thorough. Download at cisecurity.org.
- macOS Security Compliance Project (mSCP) - Apple-supported project that generates compliance scripts for NIST 800-53, CIS, and DISA STIG profiles. Available at github.com/usnistgov/macos_security.
System-Level Security Settings
Most of the critical macOS security settings live in System Settings (System Preferences on older macOS), but you can also configure them viadefaults commands or MDM profiles - which is the right approach for a fleet.
FileVault (Full-Disk Encryption)
This should be on. Period. If a Mac is lost or stolen with FileVault off, the data is accessible.Firewall
macOS has an application-level firewall that controls which apps can receive incoming connections.Gatekeeper
Gatekeeper ensures only signed and notarized software runs. It should always be on:Screen Lock and Authentication
Disable Automatic Login
Automatic login bypasses the login screen entirely:Show All Users at Login (Don’t Show Last Username)
User Account Hardening
Audit Admin Accounts
sudo.
Firmware Password (Intel Macs)
On Intel Macs, a firmware password prevents booting from external media and resetting the system without credentials. On Apple Silicon, this is handled differently via Activation Lock.Privacy and Permissions
macOS’s privacy model requires explicit permission grants for apps to access sensitive resources. Review and tighten these: System Settings > Privacy & Security:- Location Services - Review which apps have access. Most apps don’t need this.
- Contacts / Calendars / Reminders - Remove apps that don’t need access.
- Full Disk Access - Be very selective. Only give this to tools that genuinely require it.
- Screen Recording - Audit carefully - anything with this can see everything on your screen.
- Accessibility - Apps with Accessibility access can control your Mac. Audit regularly.
- Microphone / Camera - Review which apps have access.
Disable Unnecessary Services and Sharing
System Settings > General > Sharing - Turn off everything you don’t actively use:- File Sharing - unless actively used
- Printer Sharing - unless you have a shared printer
- Remote Login (SSH) - unless you need remote terminal access
- Remote Management (VNC/ARD) - unless actively managed remotely
- Bluetooth Sharing - almost never needed
- Internet Sharing - disable unless you’re using your Mac as a hotspot
System Integrity Protection (SIP)
SIP is a macOS security feature that prevents even root from modifying protected system files. Never disable this without a very good reason. Some development tools or kernel extensions may ask you to - evaluate carefully whether it’s necessary.Application Security
Safari Hardening (if used as primary browser)
Audit Logging
macOS has a built-in audit system (OpenBSM) but logging defaults are minimal. For more comprehensive logging:Unified Log (macOS 10.12+)
The modern macOS log system:MDM and Enterprise Management
If you’re managing a fleet of Macs, MDM (Mobile Device Management) is how you enforce configuration at scale. Options:
MDM lets you push configuration profiles, enforce FileVault, restrict app installs, and deploy software at scale.
Useful Tools
The Objective-See suite (all free, all open-source, all made specifically for Mac security) is especially worth installing on any Mac you care about.
Apple Silicon vs Intel - Differences Worth Knowing
Apple Silicon Macs (M1/M2/M3/M4) have some security improvements worth knowing about:- Secure Enclave - Hardware-based key storage, significantly more robust than Intel counterparts
- Activation Lock - Ties the Mac to an Apple ID, preventing use if stolen (replaces firmware password)
- Full Security mode - Default boot policy only allows Apple-signed OS
- Kernel extensions - System extensions replaced kernel extensions on Apple Silicon; harder for attackers to load malicious kernel code
Quick Win Checklist
If you’re hardening a Mac and want to start with the highest-impact items:- Enable FileVault
- Enable the application firewall with stealth mode
- Set screen lock to require password immediately
- Disable automatic login
- Turn off all unused sharing services
- Review Privacy & Security permissions for all apps
- Enable automatic security updates
- Install LuLu and Objective-See’s BlockBlock and KnockKnock
- Audit admin accounts - regular users shouldn’t need admin rights
Reference
- CIS macOS Benchmark
- macOS Security Compliance Project
- Objective-See Tools - Patrick Wardle’s free Mac security tools
- Apple Platform Security Guide - Apple’s own documentation on macOS security architecture
- DISA STIG for macOS - Government-grade hardening requirements
macOS gives you a lot of security features for free - but “for free” doesn’t mean automatically configured. The delta between a default Mac and a hardened Mac is entirely made up of settings that Apple built but left off.
