SIP

Also known as: System Integrity Protection

On this page 7

SIP, short for System Integrity Protection, is the macOS security technology that prevents any user, including root, from modifying protected parts of the operating system. It locks system directories, shields Apple-signed processes from code injection and restricts which kernel extensions can load. Apple introduced it in OS X 10.11 El Capitan in 2015, and during development it was known informally as rootless.

Within macOS security & privacy, SIP sits at the base of the protection stack. Gatekeeper and notarization decide whether new software may run, and TCC decides which data an app can reach, but SIP guarantees that the system itself stays intact even when malware or a careless administrator obtains full root privileges.

How System Integrity Protection works

SIP works by moving the final authority over system files from the root account to the kernel. On traditional Unix systems, root can change anything. Under SIP, the kernel checks every write to a protected location and every attempt to attach to a protected process, and it refuses the operation unless the caller holds a special Apple-granted entitlement.

Only Apple-signed components such as the system installer and software update processes carry that entitlement. As a result, legitimate macOS updates can still replace system files, while third-party software cannot, regardless of the privileges it runs with. Even a script executed with sudo receives an operation not permitted error when it touches a protected path.

What SIP protects

SIP has several distinct protection areas, which is why the feature affects both file system behavior and debugging tools. The table summarizes the main ones.

Protection areaWhat is restrictedPractical effect
File system protectionWrites to /System, /usr, /bin, /sbin and Apple appsSystem binaries cannot be replaced
Runtime protectionCode injection and debugging of Apple-signed processesMalware cannot hijack system processes
Kernel extension restrictionsLoading unsigned or unapproved kextsKernel code must be signed and approved
NVRAM protectionChanging certain firmware variablesBoot settings cannot be silently altered
Debugging restrictionsTools such as DTrace on protected processesLimited tracing of system components
Protection areas of System Integrity Protection

Several locations are deliberately excluded, such as /usr/local, /Applications for third-party apps and the user’s home folder, so that package managers and normal software installation keep working. On Intel Macs the list of protected paths is defined by Apple in system configuration files that are themselves protected.

SIP compared with other macOS protections

SIP is often confused with other macOS security mechanisms, but each addresses a different question. Together they form layered defense in which no single feature has to stop every attack.

FeatureQuestion it answersRelationship to SIP
SIPCan anyone modify the operating systemBase layer
Signed System VolumeIs the system volume exactly as Apple sealed itCryptographic seal since macOS 11, builds on SIP
GatekeeperMay this downloaded app runChecks apps before launch
TCCMay this app access camera, files or contactsIts database is protected by SIP
Hardened RuntimeCan this app’s own process be tampered withExtends similar protection to third-party apps
FileVaultIs data readable if the disk is stolenProtects data at rest, not integrity
SIP and neighboring macOS security features

The Signed System Volume, introduced with macOS Big Sur, strengthened the model further. The system now boots from a read-only snapshot whose every byte is verified against a cryptographic hash, so even an offline modification of the disk is detected.

Checking and changing SIP settings

The SIP state is managed with the csrutil command. Its status can be read from a normal session, but it can only be changed from recoveryOS, which ensures that malware running in the main system cannot switch it off.

CommandWhere it runsEffect
csrutil statusNormal macOS or recoveryOSShows whether SIP is enabled
csrutil disablerecoveryOS onlyTurns off SIP after restart
csrutil enablerecoveryOS onlyRestores full protection
csrutil authenticated-root disablerecoveryOS onlyAllows booting a modified system volume
Common csrutil commands

On Intel Macs the setting is stored in NVRAM. On Apple silicon it is part of the per-system LocalPolicy managed with the Secure Enclave, so changing it requires an administrator to authenticate in recoveryOS and lowers the boot security policy of that macOS installation. Disabling SIP on Apple silicon also prevents iPhone and iPad apps from running on the Mac.

When disabling SIP is justified and what goes wrong

Disabling SIP is occasionally necessary for kernel development, low-level debugging or legacy hardware drivers, but it should be temporary and limited to dedicated machines. The decision table below reflects common situations.

SituationRecommended choiceReason
Installing a typical app or developer toolKeep SIP enabledModern tools work within its limits
Using an old audio or hardware driverSeek a system extension version firstKexts are being phased out
Kernel or driver developmentDisable on a test Mac onlyRequires loading unsigned code
Customizing system appearance filesDo not disableBenefit is cosmetic, risk is systemic
Situations that lead users to consider disabling SIP
  • Forgetting to re-enable SIP after a task leaves the system permanently weakened.
  • Following outdated tutorials that recommend disabling SIP to fix problems that modern macOS solves differently.
  • Assuming root means full control: scripts that write to /usr/bin fail by design and should target /usr/local instead.

A non-technical view

Most computers have an administrator account that can change anything. On a Mac, SIP adds a rule above even that account. The core of the operating system is locked, and only Apple’s own updates hold the key.

Think of a museum where even the night manager cannot touch the exhibits without the curator. If a burglar steals the manager’s keys, the most valuable rooms stay shut. The key takeaway is that SIP keeps macOS trustworthy even when an account is compromised.

A concrete example

A freelance designer runs an installer from an unofficial download site that asks for her administrator password. The installer contains malware that tries to replace a system networking tool in /usr/bin and inject code into a running Apple process.

Because SIP is enabled, both attempts fail with permission errors even though the malware runs as root. The malicious component that it manages to install in her user folder is later detected and removed by XProtect. Her operating system remains unmodified, so she does not need to reinstall macOS, only to clean up the user-level files and change her password.