XOOMAR
Generic laptop shows a trusted app cube replaced by a red evil twin behind a cracked security shield.
CybersecurityJuly 23, 2026· 8 min read· By XOOMAR Insights Team

Evil Twin Apps Slip Past macOS Gatekeeper Warnings

Share
Updated on July 24, 2026

The macOS Gatekeeper evil twin app problem is simple: Apple can approve a downloaded app once, then macOS may let a malicious replacement inherit the user’s trust. XOOMAR’s view: that is not a harmless edge case. It cuts straight into the promise of Gatekeeper.

XOOMAR Intelligence

Analyst Take

71/ 100
High
4 sources analyzedMedium confidenceTrend10Freshness98Source Trust85Factual Grounding91Signal Cluster20

Researchers Talal Haj Bakry and Tommy Mysk say they found a way to replace the main executable of certain web-downloaded macOS apps after they have been opened once, without elevated privileges and without triggering fresh warnings, according to The Register Security.

Apple’s own description sets the bar high:

“When a user downloads and opens an app, a plug-in, or an installer package from outside the App Store, Gatekeeper verifies that the software is from an identified developer, is notarized by Apple to be free of known malicious content, and hasn’t been altered.”

That promise collapses if the checked object and the launched object can quietly diverge.

Apple's Gatekeeper promise collapses when macOS app downloads can be swapped for evil twins

Apple has trained users to trust the dialog box. Most people don’t inspect app bundles, quarantine flags, signatures, ownership metadata, or launch paths. They see Slack, Signal, Brave, or Visual Studio Code in the expected place, with the expected icon, and they assume macOS already handled the hard part.

That assumption is exactly what this research challenges.

The reported attack applies to apps downloaded from the web, not apps from the Mac App Store. The Mysk team told The Register the technique does not work on Mac App Store apps because those are owned by root, so a process running with current user privileges cannot overwrite them.

That distinction matters, but it does not save Apple’s position. Plenty of serious Mac software lives outside the App Store. The researchers name examples including Brave Browser, Cursor, Mullvad Browser, Proton Mail, Slack, Visual Studio Code, Xcode, and Signal, while making clear Signal was only a demonstration target, not the source of the flaw.

How the macOS evil twin app swap undercuts Gatekeeper's first line of defense

The sequence is not magic. It is worse: it is ordinary.

A user downloads a macOS app from the web. They open it once. Gatekeeper performs its initial checks. After that, the researchers say an attacker with code execution as the current user can archive the app bundle with tar, remove the original, restore the archive, and then replace the app’s main executable under /Contents/MacOS/.

The result, according to the researchers, is a modified app that launches without a fresh Gatekeeper warning.

Condition Reported behavior
Web-downloaded app Can be affected after first launch
Mac App Store app Technique does not work, per the researchers, because root ownership blocks overwrite
Privileges needed Current user code execution, not elevated privileges
User warning No Gatekeeper warning when the modified app relaunches, according to the research
Protected data access Still requires system authorization prompts, but prompts can appear to come from the trusted app

This is not a zero-click remote exploit. The attacker first needs a foothold, such as a malicious app, a downloaded script, a copied terminal command, a prompt injection attack on an AI agent, or a supply-chain route through npm, brew, or another package manager, as the Mysk team described.

That limitation is real. So is the danger. Attackers often win by chaining small weaknesses, not by smashing through every wall at once.

The macOS security story breaks when users must police invisible trust signals

Apple cannot ask users to trust its security ceremony, then declare the ceremony irrelevant when the wrong object gets launched later.

The user problem is blunt. People download apps for work, school, development, finance, creative tools, encrypted messaging, password management, and crypto workflows. They are not checking whether the bundle they launch today is the exact bundle Gatekeeper inspected yesterday.

The Mysk team’s write-up says a malicious replacement could impersonate a trusted application in permission prompts for Keychain secrets and files protected by Transparency, Consent, and Control, or TCC, including items in ~/Desktop and ~/Documents. TCC is Apple’s privacy permission system for sensitive data and protected locations.

The supplied reports do not claim this technique is being exploited in the wild. That restraint matters. But as risk analysis, the path is obvious: if a malicious twin can wear the name and icon of an app the user already trusts, social engineering gets sharper. A fake permission prompt from a random binary is suspicious. A prompt from the app you use every day feels routine.

Related XOOMAR reading on Apple’s wider platform control includes Apple Mac AI Overhaul Throws Mac Buyers Into Limbo and Samsung Galaxy Card Takes Aim at Apple's Wallet Grip. The common thread is trust in Apple-controlled user decision points. Security dialogs are the highest-stakes version of that trust.


Apple's muted response tells developers and attackers the macOS threat model has holes

The most damaging part may be Apple’s reported response.

The Mysk team says it reported the finding to Apple, which closed the issue. The researchers described Apple’s reasoning this way:

“Apple doesn't consider this attack to be 'modifying' the signed executable,” the Mysk team explained. “Instead, Apple says that by archiving/restoring the app bundle, the proof-of-concept code overwrites the entire app bundle, making it locally built.”

Apple did not respond to The Register’s request for comment.

That leaves developers, enterprise admins, and security teams with fog where there should be a rule. If macOS treats a restored app bundle as locally built, and if locally built app bundles are outside certain guards, Apple should document the boundary plainly. If another control is supposed to stop realistic abuse, Apple should say which one.

Silence is not neutral here. Apple benefits from the perception that macOS guardrails are stricter than the average user can manage alone. That perception creates an obligation: when researchers show a trust gap, Apple should either patch it, explain it, or warn admins how to monitor it.

Attackers read vendor responses too. A technique dismissed as out of scope can become a recipe for targeting users who believe the platform is doing more than it actually is.

Yes, macOS can't stop every local app trick, but Gatekeeper still needs stricter boundaries

The strongest counterargument is fair: no operating system can protect users from every local file replacement after malicious code is already running in the user’s environment.

Gatekeeper is also only one layer. macOS includes notarization, XProtect, sandboxing, permission prompts, and enterprise endpoint tools. The researchers themselves note that access to Keychain or TCC-protected directories still requires system authorization prompts.

But layered defense does not excuse a broken handoff. If Gatekeeper’s user-facing promise is that downloaded apps are checked before execution, then macOS should care when the app bundle changes in a meaningful way after that approval.

Tommy Mysk offered one possible explanation:

“When you open the app for the first time and it passes all validation checks, macOS marks the app as trusted and saves this data,” he said. “Later when I modify the executable, macOS detects a change in the bundle and tries to revalidate its integrity. It seems the cached value of the trust causes macOS to pass the validation even though the bundle has changed.”

That is the core defect in plain language: trust appears to survive the thing it was supposed to describe.

Apple should fix the evil twin gap before macOS users learn security warnings are theater

Apple should treat the macOS Gatekeeper evil twin app issue as a design flaw, even if it does not fit the narrow shape of a traditional vulnerability.

The reasonable fixes are not exotic:

  • Revalidation: Re-check app bundles when the main executable changes or when the bundle has been removed and restored.
  • Binding: Tie Gatekeeper’s approval more tightly to the inspected object, not just to a path, bundle identity, or cached trust state.
  • Warnings: Alert users when a previously approved downloaded app has been swapped or materially changed.
  • Admin guidance: Publish clear advice for managed Mac fleets on monitoring web-downloaded app paths and replacement behavior.
  • User education: Make clear that app names and icons are not proof that the original app is still intact.

Enterprises should not wait. Managed macOS fleets can restrict untrusted software, watch high-risk app directories, and educate users that a familiar prompt from a familiar icon can still be hostile if the app underneath has changed.

Gatekeeper does not have to be perfect. But if it blesses the original and waves through the evil twin, Apple should stop calling that gate kept.

Impact Analysis

  • The finding challenges Gatekeeper’s promise that downloaded apps remain verified and unaltered after approval.
  • Users may keep trusting familiar app names and icons even if the executable has been swapped.
  • The issue is significant because many widely used Mac apps are distributed outside the Mac App Store.

macOS App Download Trust Model

App sourceReported exposureReason given
Web-downloaded appsCan reportedly be replaced after first launch without fresh Gatekeeper warningsUser-owned app files may be overwritten by a process with current user privileges
Mac App Store appsReported technique does not workApps are owned by root, preventing overwrite by a normal user-level process
XOOMAR

Written by

XOOMAR Insights Team

Research and Editorial Desk

The XOOMAR Insights Team pairs automated research with human editorial judgment. We track hundreds of sources across technology, fintech, trading, SaaS, and cybersecurity, cross-check the facts, and explain what happened, why it matters, and what to watch next. We do not just rewrite headlines. Every article is fact-checked and scored for reliability before it goes live, and we link back to the original sources so you can verify anything yourself.

Related Articles

Person holding tablet with VPN connection screen for secure internet browsing.Cybersecurity

Windows and macOS Users Face Hidden Security Gaps in 2026

While operating system security has improved, blind spots persist. Specific threat vectors still exploit them.

Aug 13, 202615 min
Close-up view of a mouse cursor over digital security text on display.Cybersecurity

Security Chaos Floods Apple Bug Bounties With AI Slop

A flood of AI-generated reports is overwhelming companies like Apple, forcing them to cap bug bounties as attacks swamp ports, banks, and infrastructure in a se

Aug 8, 20267 min
Top view of a smartphone showing activation lock screen on light blue surface.Cybersecurity

Apple Spyware Alerts Swamp Targets In 110 Countries

An unprecedented wave of Apple spyware alerts hit targets across 110 countries, signaling a troubling shift from surgical government surveillance to mass-scale

Aug 17, 20266 min
Chain-locked book, phone, and laptop symbolizing digital and intellectual security.Cybersecurity

ShinyHunters Dumps 1.6 Million Records in RingCentral Shakedown

Extortion gang ShinyHunters dumped 280GB of sensitive customer data after RingCentral refused their ransom demand, exposing 1.6 million people to targeted phish

Aug 16, 20267 min
Chain-locked book, phone, and laptop symbolizing digital and intellectual security.Cybersecurity

Apple's Lock Screen Alert Warns iPhone Users of Spyware Attack

Apple has escalated its spyware warnings by sending high-confidence threat notifications directly to the lock screens of iPhones targeted by sophisticated, stat

Aug 14, 20266 min
Belkin minimalist trackers and mounting hardware arranged in a futuristic tech setting.Technology

Belkin Attack Cuts Apple's AirTag Accessory Taxes Dead

Belkin's new trackers include attachment hardware in the box, directly attacking the expensive accessory ecosystem built around rivals like Apple's AirTag.

Sep 3, 20268 min
The Eiffel Tower at dusk with cinematic lighting, representing a global news event and international connections.Global Trends

Eiffel Tower Shuts Over Staff Alleging Women Were Sidelined

In a dramatic protest, the Eiffel Tower closed after management allegedly sidelined female staff during a private visit by the Hindu group BAPS, triggering a ci

Sep 8, 20266 min
A parched, desolate French vineyard under a harsh, dusty orange heatwave sky, depicting extreme drought impacting wine harvest.Global Trends

French Wine Harvest Plummets to Historic 30-Year Low

France's 2026 wine harvest is forecast to drop to its lowest level in 30 years due to extreme heat and drought, with Champagne yields cut in half.

Sep 8, 20265 min
Split view of a digital finance app and a stock ticker in a modern Tokyo office, symbolizing interest rate decisions.Fintech

Japan's Growth Beat Voids BOJ's Final Rate Hike Excuse

Japan's revised GDP growth to 1.4% provides the Bank of Japan with the necessary cover to proceed with a widely expected interest rate hike in September, shifti

Sep 8, 20267 min
Silhouetted American flag overshadowing a Bombardier jet on a North American map, symbolizing trade tensions.Global Trends

Trump Arms Trade War With Bombardier Jet Ban Threats

President Trump has threatened to ban Bombardier from selling jets in the US unless it moves production there, directly targeting a key Canadian firm as billion

Sep 8, 20267 min

Don't miss the signal

Get our weekly roundup of the stories that matter across tech, fintech, and trading. No noise, just signal.

Free forever. No spam. Unsubscribe anytime.