Security Experts:

Connect with us

Hi, what are you looking for?


Endpoint Security

Microsoft Details Recent macOS Gatekeeper Bypass Vulnerability

Microsoft this week shared details on CVE-2022-42821, a Gatekeeper bypass vulnerability that Apple recently addressed in macOS Ventura, Monterey, and Big Sur.

Microsoft this week shared details on CVE-2022-42821, a Gatekeeper bypass vulnerability that Apple recently addressed in macOS Ventura, Monterey, and Big Sur.

Identified in July 2022, the security defect is described as a logic issue that could be exploited to bypass Gatekeeper checks, potentially allowing threat actors to execute malicious code on vulnerable systems.

“Gatekeeper bypasses such as this could be leveraged as a vector for initial access by malware and other threats and could help increase the success rate of malicious campaigns and attacks on macOS,” Microsoft says.

On macOS, files downloaded from the internet are assigned the extended attribute that is used to enforce security policies, including Gatekeeper’s application execution restrictions or mitigations that prevent a sandbox escape.

Users are required to provide consent to launch a downloaded application that is validly signed and notarized, or are informed that the application cannot be executed, if the app is untrusted.

The attribute contains information about the source of the file and details on how Gatekeeper should handle it, including flags to enforce restrictions if necessary.

To allow for metadata to be transferred between operating systems, Apple has introduced a mechanism called AppleDouble, which saves the metadata to a new file next to the original. When files are restored from an archive, macOS processes AppleDouble files and assigns the metadata accordingly.

While analyzing the various mechanisms that Apple has implemented to extend the traditional permission model, Microsoft discovered that it was possible to abuse Access Control Lists (ACLs) to bypass Gatekeeper.

ACLs allow fine-grained permissions to files and directories, and Microsoft discovered that adding very restrictive ACLs to files can “prohibit Safari (or any other program) from setting new extended attributes, including the attribute”.

Microsoft has created proof-of-concept (PoC) code – dubbed Achilles – that bypasses Gatekeeper by creating a fake directory structure with an arbitrary icon and payload, and creating an AppleDouble file with restrictive ACL.

The code and the AppleDouble file can be placed in an archive that can be hosted on the internet, the tech giant explains.

“We note that Apple’s Lockdown Mode, introduced in macOS Ventura as an optional protection feature for high-risk users that might be personally targeted by a sophisticated cyberattack, is aimed to stop zero-click remote code execution exploits, and therefore does not defend against Achilles,” Microsoft says.

Apple addressed the vulnerability with the release of macOS Ventura 13 in October, and macOS Monterey 12.6.2 and macOS Big Sur 11.7.2 in December.

Related: Apple Paid Out $20 Million via Bug Bounty Program

Related: Apple Rolls Out Xcode Update Patching Git Vulnerabilities

Related: Apple Fixes Exploited Zero-Day With iOS 16.1 Patch

Written By

Ionut Arghire is an international correspondent for SecurityWeek.

Click to comment

Expert Insights

Related Content

Mobile & Wireless

Technical details published for an Arm Mali GPU flaw leading to arbitrary kernel code execution and root on Pixel 6.

Mobile & Wireless

Apple rolled out iOS 16.3 and macOS Ventura 13.2 to cover serious security vulnerabilities.

Cloud Security

VMware vRealize Log Insight vulnerability allows an unauthenticated attacker to take full control of a target system.

Mobile & Wireless

Apple’s iOS 12.5.7 update patches CVE-2022-42856, an actively exploited vulnerability, in old iPhones and iPads.


Security researchers have observed an uptick in attacks targeting CVE-2021-35394, an RCE vulnerability in Realtek Jungle SDK.

Mobile & Wireless

Two vulnerabilities in Samsung’s Galaxy Store that could be exploited to install applications or execute JavaScript code by launching a web page.


Several vulnerabilities have been patched in OpenText’s enterprise content management (ECM) product.


Google has awarded more than $25,000 to the researchers who reported the vulnerabilities patched with the release of the latest Chrome update.