Microsoft recently discovered a new macOS vulnerability dubbed as “Shrootless”, this vulnerability allows threat actors to bypass SIP (System Integrity Protection) and install rootkits in macOS.
In macOS, SIP (System Integrity Protection) is one of the protection functions, and it is responsible for limiting the operations that compromise system integrity by the root user.
While they have also detected a technique through which a threat actor can easily elevate their privileges to root a vulnerable Mac system. Even they have also noted that SIP can be bypassed and arbitrary operations can be executed on the compromised system.
The Shrootless vulnerability is tracked under the CVE-2021-30892 identifier by the experts of Microsoft, which resides in the macOS software installation daemon (system_installd).
During the evaluation of Apple’s process of bypassing SIP protection, this vulnerability was identified, and it has been noticed that there is a problem with:-
How does Apple sign packages
Apple’s post-install scripts
Apple’s installed scripts
To fully bypass SIP filesystem restrictions, the system_installd daemon that had the com.apple.rootless.install.inheritable entitlement allows the threat actors to execute their actions successfully.
A principal security researcher at Microsoft, Jonathan Bar Or stated:-
“We found that the vulnerability lies in how Apple-signed packages with post-install scripts are installed. A malicious actor could create a specially crafted file that would hijack the installation process. After bypassing SIP’s restrictions, the attacker could then install a malicious kernel driver (rootkit), overwrite system files, or install persistent, undetectable malware, among others.”
Threat actors can easily bypass SIP by creating a malicious /etc/zshenv file and then waiting for system_installd to invoke the zsh. Since at the /etc/zshenv the macOS installation daemon always looks for the shell.
Moreover, the Microsoft Security Vulnerability Research (MSVR) has already reported this security flaw to Apple, and Apple promptly released the security patch for this vulnerability two days ago, on October 26.