Lesson 7 of 9 · 27m
FileVault, Gatekeeper, SIP, TCC, and the Security Boundary
Operate macOS security controls as layered enforcement, verify their real state, and avoid admin shortcuts that silently weaken endpoints.
Every experienced Mac admin has met the ticket that begins, "Can we just disable Gatekeeper for the installer?" The correct answer is usually no, but the deeper answer is that macOS controls are layered for a reason. FileVault protects data at rest, Gatekeeper evaluates code provenance, SIP protects the operating system, and TCC mediates user data access. They are not interchangeable knobs.
Verify state before changing anything
Useful baseline commands:
fdesetup status
spctl --status
csrutil status
/usr/libexec/ApplicationFirewall/socketfilterfw --getglobalstateInterpret output in context. FileVault is On does not tell you whether the institutional recovery key is escrowed correctly. SIP enabled does not mean every entitlement-bearing binary is safe. TCC state is intentionally not a simple global audit API; user privacy is the point.
FileVault is a lifecycle, not a checkbox
Disk encryption only helps operationally if unlock and recovery are survivable:
sudo fdesetup enable -user adminuser
sudo fdesetup listTrack enabled users, personal recovery key custody, institutional recovery key escrow, and behavior after user deletion. A Mac encrypted with an unknown recovery path is a future data-loss incident.
Gatekeeper and notarization answer different questions
spctl assesses code-signing and notarization policy for launch decisions. Check an app before distribution:
spctl --assess --type execute --verbose /Applications/Firefox.app
codesign --verify --deep --strict --verbose=2 /Applications/Firefox.appA signed app can still contain malicious behavior; notarization is a baseline distribution control, not a proof of benevolence. Conversely, a correctly signed internal tool still fails user trust if you distribute it through random file shares and mutable links.
SIP and TCC are boundaries you design around
System Integrity Protection restricts modification of protected OS locations even for root. Do not architect tooling that requires disabling SIP. TCC grants application access to sensitive data classes such as Full Disk Access, Screen Recording, and Accessibility. MDM can preapprove some payloads through Privacy Preferences Policy Control, but only for correctly identified binaries and allowed services.
The admin habit that matters
When a control blocks your workflow, identify which layer objected and whether the workflow is genuinely legitimate. The dangerous shortcut is global weakening: disable SIP, disable Gatekeeper, grant broad TCC to a shell interpreter. Prefer precise artifacts: sign the binary, package it correctly, deploy the exact PPPC payload, or redesign the workflow.
Field notes
sudois not a TCC bypass. Root and user privacy consent are separate domains.- Recovery key rotation after exposure is cheap compared with incident response after losing track of keys.
- SIP status changes generally require recoveryOS context. Fleet tools cannot casually toggle it.
- Application Firewall is not a network security strategy; use it as a host layer and keep network assumptions separate.
Was this lesson helpful?