Security Researcher Shows How Remote macOS Exploit Hoodwinks Safari Users With Custom URL Schemes - MacRumors
Skip to Content

Security Researcher Shows How Remote macOS Exploit Hoodwinks Safari Users With Custom URL Schemes

by

A security researcher has demonstrated how macOS users are vulnerable to remote infection through a malicious exploit involving the "Do you want to allow..." popup that can be encountered when visiting websites in Safari.

In a lengthy breakdown, Patrick Wardle explains how the exploit utilizes document handlers, which request permission to open a link or a file in another app – like a PDF in Preview, for example – and URL handlers, which work similarly in the way they notify macOS that they can accept certain file formats.

malicious attack safari
The exploit occurs when a user visits a malicious website and a ZIP file is downloaded and automatically unzipped by Safari, whereby the custom URL scheme is initially registered on the user's filesystem.

Once the target visits our malicious website, we trigger the download of an archive (.zip) file that contains our malicious application. If the Mac user is using Safari, the archive will be automatically unzipped, as Apple thinks it's wise to automatically open "safe" files. This fact is paramount, as it means the malicious application (vs. just a compressed zip archive) will now be on the user's filesystem, which will trigger the registration of any custom URL scheme handlers! Thanks Apple!

In the next stage, the malicious web page runs code that can load or "browse" to the custom URL scheme, which causes macOS to activate the URL handler and launch the malicious application.

This action is enabled through the Safari user prompt that includes options to "Allow" or "Cancel" the process, however the popup text and available options are controlled by the attacker, and are therefore easily changed to trick or deceive the user.

malicious exploit safari
The standard defenses built into macOS – Gatekeeper, for example – are said to be ineffective when it comes to the attack described above, and while Apple could always revoke the malicious app's signature, that course of action would obviously be too late for anyone who had already gone ahead and launched it.

Until then, turning off automatic unzipping of "safe" files should be enough to prevent the malicious procedure from ever occurring. Concerned users can do so by clicking the Safari menu bar, selecting Preferences..., and under the General tab, unchecking Open "safe" files after downloading.

Top Rated Comments

Kebabselector Avatar
107 months ago
Until then, turning off automatic unzipping of "safe" files should be enough to prevent the malicious procedure from ever occurring. Concerned users can do so by clicking the Safari menu bar, selecting Preferences..., and under the General tab, unchecking Open "safe" files after downloading.
Surely this should be the default position for any user regardless of the exploit or not.
Score: 9 Votes (Like | Disagree)
107 months ago
There have been a few previous security vulnerabilities relating to Safari on the Mac, where allowing Safari to open 'safe' files was the entry vector.

Ever since the first such vulnerability, it's been my opinion that the safest approach is to simply leave that option turned off permanently. Particularly as it doesn't really add much convenience. I very rarely want to open a file as soon as it's been downloaded. Also, opening a file manually involves two clicks at the very most.

Anyway, I feel this is one instance where security outweighs convenience by a very wide margin.
Score: 8 Votes (Like | Disagree)
Porco Avatar
107 months ago
I have always turned this option off for any mac I worked with. It should never have been a thing, and certainly never the default.
Score: 7 Votes (Like | Disagree)
twistedpixel8 Avatar
107 months ago
Surely this should be the default position for any user regardless of the exploit or not.
It shouldn’t even be a feature. How lazy do you have to be if you can’t double click an archive?!
Score: 6 Votes (Like | Disagree)
Justanotherfanboy Avatar
107 months ago
His snarky “thanks Apple!” comment seemed a bit unprofessional for a security researcher.
Surely he must be aware that all tech companies don’t try to have security holes... & if none existed whatsoever, he’d be out of a job.
Score: 5 Votes (Like | Disagree)
MrGimper Avatar
107 months ago
I only came here to doff my cap for the use of the word "hoodwinks"
Score: 4 Votes (Like | Disagree)

Popular Stories

imac video apple feature

November 20 to Mark the End of an Era at Apple

Wednesday November 11, 2026 7:51 am PST by
Apple has announced that the long-running Apple Support Community discussion forums for user-to-user tech support will be permanently closing on Friday, November 20. The forums have existed in some form for nearly 30 years, so it is the end of an era. Effective immediately, the Apple Support Community forums are in a read-only state, with new posts no longer being accepted. The final message ...
johny srouji

Apple's Johny Srouji Eyed to Replace Nvidia CEO Jensen Huang

Thursday November 12, 2026 4:29 am PST by
Apple's chief hardware officer Johny Srouji is being considered as a potential successor to Nvidia CEO Jensen Huang as the chipmaker's board prepares to remove its co-founder, according to Semafor. Citing a person familiar with the matter, the publication identified Srouji as one of the people under consideration for Nvidia's top job. It is unclear if Srouji has yet been approached or...
airpods 5 new blue

Apple Releases New AirPods Firmware

Tuesday November 10, 2026 12:11 pm PST by
Apple today released new firmware for the AirPods Pro 2, AirPods Pro 3, AirPods 4, AirPods 5, and AirPods Max 2. The firmware has a build number of 9B47, up from 9A348/9A350. Apple has been beta testing the new firmware for the last several weeks. In a support document, Apple merely mentioned the new firmware contains "bug fixes and other improvements." Firmware updates can be downloaded...
Latest Stories
Hands-On With the New Apple TV 4K and Siri AI
Hands-On With the New Apple TV 4K and Siri AI
9 hours ago
Siri AI Coming to Older Apple TV 4K Models in tvOS 27.2.1
Siri AI Coming to Older Apple TV 4K Models in tvOS 27.2.1
10 hours ago
HomeView Launch Kicks Off as First Orders Reach Customers
HomeView Launch Kicks Off as First Orders Reach Customers
11 hours ago
Apple Continues to Move Up iPhone Duo Delivery Dates
Apple Continues to Move Up iPhone Duo Delivery Dates
13 hours ago
Apple Explains How HomeView Keeps Camera Data Private
Apple Explains How HomeView Keeps Camera Data Private
14 hours ago
Apple Releases Updated HomeView Software 27.2 Before Launch
Apple Releases Updated HomeView Software 27.2 Before Launch
15 hours ago
Apple Adds Samsung Foldables to Trade-In Program
Apple Adds Samsung Foldables to Trade-In Program
17 hours ago
Apple Sports App Now Features UFC
Apple Sports App Now Features UFC
17 hours ago
Trump Says Tim Cook Should Be Nvidia CEO as Jensen Huang Resigns
Trump Says Tim Cook Should Be Nvidia CEO as Jensen Huang Resigns
17 hours ago
Apple Releases Emotional 2026 Holiday Ad Featuring MacBook Neo
Apple Releases Emotional 2026 Holiday Ad Featuring MacBook Neo
18 hours ago
Apple's Official iPhone 18 Pro Cases and Watch Bands Get Big Discounts on Amazon
Apple's Official iPhone 18 Pro Cases and Watch Bands Get Big Discounts on Amazon
18 hours ago
Nintendo to End 'Sign in With Apple' Support in January
Nintendo to End 'Sign in With Apple' Support in January
18 hours ago
Walmart Black Friday Sale Begins With Early Deals on TVs, Laptops, and More
Walmart Black Friday Sale Begins With Early Deals on TVs, Laptops, and More
19 hours ago
Apple Says HomeView Software Update Coming Next Month With Siri Fix
Apple Says HomeView Software Update Coming Next Month With Siri Fix
19 hours ago
Review: Is Apple's All-New HomeView Smart Home Hub Worth $299?
Review: Is Apple's All-New HomeView Smart Home Hub Worth $299?
20 hours ago
Apple Home Collection: Select Accessories Available to Order This Friday
Apple Home Collection: Select Accessories Available to Order This Friday
20 hours ago
'Ratchet & Clank: Ranger Rumble' to Leave App Store This Month
'Ratchet & Clank: Ranger Rumble' to Leave App Store This Month
21 hours ago
Apple's Johny Srouji Eyed to Replace Nvidia CEO Jensen Huang
Apple's Johny Srouji Eyed to Replace Nvidia CEO Jensen Huang
21 hours ago
Apple Support Community Deserved a Proper Goodbye
Apple Support Community Deserved a Proper Goodbye
1 day ago
Apple on Fatal Vehicle Crash Near Apple Park: 'Our Hearts Are Broken'
Apple on Fatal Vehicle Crash Near Apple Park: 'Our Hearts Are Broken'
2 days ago
Apple Invites App Updated With Two New Features
Apple Invites App Updated With Two New Features
2 days ago
Google Says Gemini App Rolling Out on Apple CarPlay Starting Today
Google Says Gemini App Rolling Out on Apple CarPlay Starting Today
2 days ago
Is It Worth Buying a Ceramic Apple Watch?
Is It Worth Buying a Ceramic Apple Watch?
2 days ago
Samsung Early Black Friday Event Brings Major Sales to Frame TVs and More
Samsung Early Black Friday Event Brings Major Sales to Frame TVs and More
2 days ago
iPhone 18 Pro Max Wins Battery Test Involving 32 Smartphones
iPhone 18 Pro Max Wins Battery Test Involving 32 Smartphones
2 days ago
AirTag 2 4-Pack Hits Record Low $69.99 Price Ahead of Black Friday
AirTag 2 4-Pack Hits Record Low $69.99 Price Ahead of Black Friday
2 days ago
Rumored Apple Smart Glasses Mentioned in Supplier's Earnings Briefing
Rumored Apple Smart Glasses Mentioned in Supplier's Earnings Briefing
2 days ago
Make Apple Watch Listen for Sounds Like the Doorbell
Make Apple Watch Listen for Sounds Like the Doorbell
2 days ago
Apple Chip Supplier TSMC Approves $1 Billion AI Investment
Apple Chip Supplier TSMC Approves $1 Billion AI Investment
2 days ago
'Apple Support Community' Permanently Closing on November 20
'Apple Support Community' Permanently Closing on November 20
2 days ago