Connect with us

Hi, what are you looking for?

SecurityWeekSecurityWeek

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 com.apple.quarantine 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 com.apple.quarantine 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.

Advertisement. Scroll to continue reading.

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 com.apple.quarantine 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

Trending

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing to stay informed on the latest threats, trends, and technology, along with insightful columns from industry experts.

Join the session as we discuss the challenges and best practices for cybersecurity leaders managing cloud identities.

Register

SecurityWeek’s Ransomware Resilience and Recovery Summit helps businesses to plan, prepare, and recover from a ransomware incident.

Register

People on the Move

Cody Barrow has been appointed as CEO of threat intelligence company EclecticIQ.

Shay Mowlem has been named CMO of runtime and application security company Contrast Security.

Attack detection firm Vectra AI has appointed Jeff Reed to the newly created role of Chief Product Officer.

More People On The Move

Expert Insights

Related Content

Vulnerabilities

Less than a week after announcing that it would suspended service indefinitely due to a conflict with an (at the time) unnamed security researcher...

Data Breaches

OpenAI has confirmed a ChatGPT data breach on the same day a security firm reported seeing the use of a component affected by an...

IoT Security

A group of seven security researchers have discovered numerous vulnerabilities in vehicles from 16 car makers, including bugs that allowed them to control car...

Vulnerabilities

A researcher at IOActive discovered that home security systems from SimpliSafe are plagued by a vulnerability that allows tech savvy burglars to remotely disable...

Risk Management

The supply chain threat is directly linked to attack surface management, but the supply chain must be known and understood before it can be...

Cybercrime

Patch Tuesday: Microsoft calls attention to a series of zero-day remote code execution attacks hitting its Office productivity suite.

Vulnerabilities

Patch Tuesday: Microsoft warns vulnerability (CVE-2023-23397) could lead to exploitation before an email is viewed in the Preview Pane.

IoT Security

A vulnerability affecting Dahua cameras and video recorders can be exploited by threat actors to modify a device’s system time.