featured
FileVault, Gatekeeper and XProtect: what each one actually stops
macOS security features are often lumped together, but they guard different doors. Knowing which is which tells you what you still need to handle yourself.
FileVault: a stolen laptop
FileVault encrypts the startup disk. It protects data on a Mac that is powered off. Once you are logged in, it does nothing against malware.
Gatekeeper: an unknown app
Gatekeeper checks that downloaded apps are signed and notarised before first launch. It is a first-run check, not an ongoing scanner.
XProtect: known malware
XProtect matches files against Apple's signature list and updates silently. It catches known families, not new ones.
- Turn on FileVault and store the recovery key offline.
- Do not disable Gatekeeper globally; allow single apps instead.
- Keep automatic security updates on.
code
fdesetup status
spctl –status
system_profiler SPInstallHistoryDataType | grep -A2 XProtect
Unix is simple. It just takes a genius to understand its simplicity.
Dennis Ritchie
None of these protect you from a phishing page. A password manager that refuses to autofill on the wrong domain does.
$ cat /comments 12
This is exactly the write-up I needed this week. Bookmarked.
Thanks for the correction, that saved me some head-scratching.
Tried this on an M1 Air and got the same numbers within a few percent.
Same here, it made a big difference.
Thanks for the correction, that saved me some head-scratching.
Any chance you could share the full config in a gist? The snippet is great but I want to see the rest.
I have been doing this the hard way for years. Thank you.
Worth mentioning that this behaves differently on Intel Macs. Took me an hour to figure that out.
Great post. One small correction: the flag is case-sensitive on older versions.
Followed along step by step and it worked first time, which never happens.
Does this survive a macOS point release? Mine broke after the last one.
Good question, I would like to know too.