They designed SIP to prevent anyone from modifying the operating system. And they designed the shims to operate in precisely the manner they did. I still don&#x27;t understand why you think the correct operation of the shims is somehow breaking SIP, because it&#x27;s not. When using the shims even with a fake developer dir, the operating system files are not modified, and the shims are working precisely as documented.<p>&gt; <i>A big part of SIP is preventing the end user from typing in their password to give a malicious program access to replace certain binaries installed in the &#x2F;usr&#x2F;bin directory (and a few other locations)</i><p>And that hasn&#x27;t changed. The binaries are not being replaced.<p>&gt; <i>So basically they don&#x27;t want git, or any other program, to work in a way they didn&#x27;t intend - i.e. They don&#x27;t want malware authors installing a riot kit by replacing binaries.</i><p>No, they don&#x27;t want malware authors to modify the operating system. Doing a non-privileged action (i.e. setting the env variable) in order to change the behavior seen when invoking &#x2F;usr&#x2F;bin&#x2F;git really has no relation to SIP at all, that&#x27;s jut working as intended. Besides, nothing of the behavior you describe has anything to do with root kits either. Someone who can point DEVELOPER_DIR at a malicious directory hasn&#x27;t gained any privileges by doing so, and has not compromised the operating system in any way.<p>&gt; <i>In essence, this is what this is doing. The main difference here is that instead of them needing to be root, they just create a directory, create a small script update an environment variable and optionally tweak .bashrc as the user and they have effectively added a wrapper to the XCode utility. With no need to elevate privileges.</i><p>And without <i>gaining</i> any privileges. I&#x27;ve already said this multiple times before. The end result of all of this is they have no more privileges than they already needed to set this up in the first place. They&#x27;ve gained literally nothing from doing this.<p>&gt; <i>I do wonder why they chose to write a program in a compiled language instead of using a shell script.</i><p>Probably so they can codesign the binary, since you can&#x27;t codesign shell scripts.