How to Completely Disable ‘App Sandbox’ (System Integrity Protection) on a Mac

Modern versions of macOS feature a robust security architecture known as System Integrity Protection (SIP), colloquially referred to as the “rootless” feature. When SIP is enabled, even if you are logged in as the ultimate Administrator (root), you cannot modify, delete, or overwrite core system files located in directories like /System, /bin, or /usr. The operating system essentially sandboxes itself, preventing malware from deeply embedding into the kernel.

While SIP is critical for the safety of average users, it is a massive roadblock for low-level developers, security researchers, and hackers. If you are attempting to write custom kernel extensions, modify core system drivers, or inject code into protected Apple applications using tools like gdb or dtrace, the SIP firewall will aggressively block you with “Operation not permitted” errors. To gain true, unrestricted root access to the entire UNIX filesystem and bend macOS to your will, you must completely disable System Integrity Protection.

Disabling SIP via macOS Recovery

Because SIP is designed to protect the operating system from itself, you cannot disable it while macOS is actively running. You must boot into a specialized recovery environment and issue a command directly to the NVRAM (Non-Volatile Random-Access Memory).

  1. Completely shut down your Mac.
  2. Boot into macOS Recovery:
    • For Apple Silicon Macs (M1/M2/M3): Press and hold the power button until you see “Loading startup options,” then click “Options” and “Continue.”
    • For Intel Macs: Press the power button, then immediately press and hold Command (⌘) + R until you see an Apple logo or spinning globe.
  3. Once the Recovery interface loads, look at the very top menu bar. Click on Utilities and select Terminal.
  4. In the terminal window, type the following exact command and press Enter:
    csrutil disable
  5. The terminal will prompt you to confirm the action. It may also require you to enter your administrator password or, on Apple Silicon, confirm your identity via the Secure Enclave.
  6. Once the terminal confirms that SIP has been disabled, type reboot and press Enter.

Extreme Warning: Your Mac is now fundamentally vulnerable. The protective sandbox has been completely shattered. Any script or application running with root privileges can now freely overwrite your kernel, delete critical system files, and destroy your operating system. You should only run a Mac in this state for isolated development or debugging purposes, and you should re-enable SIP (csrutil enable) the moment your task is complete.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.