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
106 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)
106 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
106 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
106 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
106 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
106 months ago
I only came here to doff my cap for the use of the word "hoodwinks"
Score: 4 Votes (Like | Disagree)

Popular Stories

Apple MacBook Pro with PROLED XDR Display family lineup feature

Apple Announces OLED MacBook Pro With Touch Display

Wednesday October 28, 2026 10:11 am PDT by
Apple today announced a new high-end MacBook Pro, which is available in 14-inch and 16-inch sizes. The new device has a PROLED XDR display that supports touch gestures, and a glowing rear Apple logo. Pricing on the MacBook Pro starts at $2,899 for the 14-inch model and $3,399 for the 16-inch model. Apple says the MacBook Pro has the "world's best display in a pro laptop." The PROLED...
Apple MacBook Pro 14 in with M6 hero

Apple Announces New 14-Inch MacBook Pro With M6 Chip

Tuesday October 27, 2026 6:01 am PDT by
Apple today announced a refreshed 14-inch MacBook Pro featuring the M6 chip, upgraded connectivity specifications, and more. The M6 chip in the MacBook Pro features a 12-core CPU with 2 super cores, 4 performance cores, and 6 efficiency cores, paired with a 12-core GPU. This is up from the M5 chip with a 10-core CPU with 4 super cores and 6 efficiency cores, paired with a 10-core GPU. M6...
apple pro tell logo

Apple Opened Pre-Orders for Five New Products This Week

Wednesday October 28, 2026 2:49 am PDT by
Apple opened pre-orders for five new products on Wednesday, October 28, including its first touchscreen MacBook Pro models. Pre-orders opened for the following new products: iPad mini with OLED display and A20 Pro chip iMac with M6 chip 14-inch MacBook Pro with M6 chip 14-inch MacBook Pro with OLED touchscreen 16-inch MacBook Pro with OLED touchscreen Pre-orders for the iPad mini,...
Latest Stories
New Apple TV 4K and iPad Mini: RAM Amounts Revealed
New Apple TV 4K and iPad Mini: RAM Amounts Revealed
6 hours ago
Apple Executive Comments on New iPad Mini Lacking 120Hz Display
Apple Executive Comments on New iPad Mini Lacking 120Hz Display
10 hours ago
Here's a Hands-On Look at HomePod Mini 2's New Two-Tone Colors
Here's a Hands-On Look at HomePod Mini 2's New Two-Tone Colors
11 hours ago
Apple Lowers App Store Fees in Taiwan Starting October 31
Apple Lowers App Store Fees in Taiwan Starting October 31
12 hours ago
HomeView Pre-Order Returns to $289.99 on Amazon
HomeView Pre-Order Returns to $289.99 on Amazon
12 hours ago
Apple Avoids Showing Pinched Fingers on iPad Mini Page in South Korea
Apple Avoids Showing Pinched Fingers on iPad Mini Page in South Korea
12 hours ago
Old 'Popcorn Time' App Left Hundreds of Thousands of Macs at Risk
Old 'Popcorn Time' App Left Hundreds of Thousands of Macs at Risk
14 hours ago
You Can Turn Off the New MacBook Pro's Touchscreen Functionality
You Can Turn Off the New MacBook Pro's Touchscreen Functionality
14 hours ago
MacBook Pro Mini-LED vs. OLED Buyer's Guide: Every Difference
MacBook Pro Mini-LED vs. OLED Buyer's Guide: Every Difference
15 hours ago
Where to Pre-Order Apple's New MacBooks, iPad Mini, and iMac
Where to Pre-Order Apple's New MacBooks, iPad Mini, and iMac
16 hours ago
Apple Releasing HomePod Mini 2 Tomorrow With These New Features
Apple Releasing HomePod Mini 2 Tomorrow With These New Features
18 hours ago
How macOS Adapts Its Controls for Touch on the New MacBook Pro
How macOS Adapts Its Controls for Touch on the New MacBook Pro
18 hours ago
Just Got an iPhone Duo? Try These Features First
Just Got an iPhone Duo? Try These Features First
20 hours ago
Apple Announced Scott Forstall's Departure 14 Years Ago Today
Apple Announced Scott Forstall's Departure 14 Years Ago Today
21 hours ago
Best Buy Opens Pre-Orders for PROLED XDR MacBook Pro With $100 Bonus Gift Cards
Best Buy Opens Pre-Orders for PROLED XDR MacBook Pro With $100 Bonus Gift Cards
1 day ago
Here's Everything Apple Announced This Week
Here's Everything Apple Announced This Week
1 day ago
Here's a Real-World Look at the New MacBook Pro's Glowing Apple Logo
Here's a Real-World Look at the New MacBook Pro's Glowing Apple Logo
1 day ago
How Accurate Were Rumors About Apple's OLED Touchscreen MacBook Pro?
How Accurate Were Rumors About Apple's OLED Touchscreen MacBook Pro?
1 day ago
Apple Has 8 New Products Available for Pre-Order
Apple Has 8 New Products Available for Pre-Order
1 day ago
iPhone Duo: Turn the Hinge Into an App Launcher
iPhone Duo: Turn the Hinge Into an App Launcher
1 day ago
OLED MacBook Pro vs. Mini-LED MacBook Pro: Size and Weight Compared
OLED MacBook Pro vs. Mini-LED MacBook Pro: Size and Weight Compared
1 day ago
Best Buy Offering Up to $100 Gift Cards With iPad Mini 8 and M6 MacBook Pro Pre-Orders
Best Buy Offering Up to $100 Gift Cards With iPad Mini 8 and M6 MacBook Pro Pre-Orders
2 days ago
Adding Touch Didn't Cost the MacBook Pro Any Battery Life
Adding Touch Didn't Cost the MacBook Pro Any Battery Life
2 days ago
Apple Releases Redesigned Mac Chargers and 'World Travel Adapter Kit'
Apple Releases Redesigned Mac Chargers and 'World Travel Adapter Kit'
2 days ago
Apple Executives Explain Why the MacBook Pro Finally Has a Touch Screen
Apple Executives Explain Why the MacBook Pro Finally Has a Touch Screen
2 days ago
New MacBook Pro Features Deeper Bass and Improved Closed-Lid Audio
New MacBook Pro Features Deeper Bass and Improved Closed-Lid Audio
2 days ago
New MacBook Pro Offers Up to 16TB of Storage, Double Previous Limit
New MacBook Pro Offers Up to 16TB of Storage, Double Previous Limit
2 days ago
Apple's New Touchscreen MacBook Pro Costs Up to $14,549
Apple's New Touchscreen MacBook Pro Costs Up to $14,549
2 days ago
Apple Brings Dynamic Island to Mac for the First Time
Apple Brings Dynamic Island to Mac for the First Time
2 days ago
Mac Studio With M5 Ultra Now Available With 512GB RAM for $22,299
Mac Studio With M5 Ultra Now Available With 512GB RAM for $22,299
2 days ago