A Mac does not have to be exploited to be taken over. In the infections WithSecure investigated, the owner opened Terminal, pasted a line of text from a web page, pressed Return, and handed a stranger the keys.
Read next on Morning Overview: Russia is hunting the hidden Ukrainian mothership behind sea drone strikes in Libya
The malware at the center of those cases is called Phexia, a backdoor and information stealer for macOS that WithSecure described in a Nov. 4 analysis. Its trick is social engineering: victims are talked into pasting Terminal commands themselves, and later a fake prompt asks for the Mac’s login password, which the malware captures.
A paste-it-yourself infection chain
WithSecure researcher Shashika Harshani wrote that “Phexia is a modular macOS backdoor and infostealer that is actively sold and leveraged by several threat actors” in so-called ClickFix campaigns, and that the firm has seen it since at least late 2025. WithSecure says it has observed a growing number of Phexia infections since early 2026, which suggests more criminals are buying it. The report names two better-known commodity Mac stealers, MacSync and Atomic macOS stealer, as the family that has generally dominated that scene.
In every latest infection where WithSecure could see the first step, the chain began with a command run through Terminal. The command downloaded a shell script and piped it straight into bash. The script was often called update.sh, though script.sh, clear-cache.sh and Terminal.sh also turned up, and it sat on random-looking subdomains that changed between infection waves.
The script then launched an AppleScript dropper, which installed a persistent loader through a LaunchAgent, a per-user background job that macOS restarts if it exits. WithSecure says a July 6 download matched a delivery route documented in public reporting, supporting typosquatted domains as a likely route, though the lures behind the remaining infections could not be established.
How the password gets taken
Once running, the backdoor tests whether the account password is empty and then validates passwords it is given, storing a valid login password in a file in the user’s home folder. WithSecure’s analysis ties this to a fake “System Preferences” dialog described in public analysis. Where timing data was reliable, the password landed between less than a minute and about eight minutes after the first execution. In some cases password checks began roughly 22 hours after infection and recurred on later days.
With the login password in hand, the stealer modules went after more. WithSecure says the commands targeted the browser encryption keys stored in the keychain for Chrome, Microsoft Edge, Brave, Opera and Vivaldi, copied browser cookies, history and saved-login files, and took the LastPass and NordPass extension stores along with the login keychain itself. Directory checks also looked for desktop cryptocurrency wallets including Ledger Wallet, though the report says those checks show discovery, not that wallet contents were taken. Everything was zipped and uploaded to the attacker’s server.
Some Macs were also put to work mining cryptocurrency. WithSecure says the operators’ tasking pulled down the official XMRig 6.26.0 miner for Apple-silicon Macs, repeatedly reinstalled it, and swapped mining pools and wallets over time.
Blockchain command servers and a fake Apple label
The most recent notable change came in May 2026, when the operators started testing smart contracts on the Polygon blockchain as a command-and-control dead-drop. The malware once leaned on hardcoded domains, Telegram channels and Steam profiles for that role. With the contract approach, known as EtherHiding, the loader asks the blockchain for the current server address, so taking down a domain does not remove the pointer. WithSecure observed Polygon-resolved activity in client telemetry from mid-June through the summer.
Other security teams have documented the same technique on Macs. A July 16 LevelBlue SpiderLabs post, which does not name Phexia, describes compromised WordPress sites showing a fake human-verification box that puts a command on the clipboard, then tells Mac visitors to open Terminal, paste and press Return, and then queries a Polygon contract for its server address.
Defenders get one unusual clue. From October, Phexia’s persistence labels began to take the form com.Apple. followed by 16 lowercase letters, apparently to pass as an Apple component. WithSecure notes the capital A differs from Apple’s own lowercase com.apple. namespace, which it calls a useful hunting indicator. Reinfection can also leave several Phexia builds running at once: on Oct. 27 a new build installed an extra LaunchAgent while the earlier one stayed active and kept receiving tasks for more than 20 minutes.
What other researchers and WithSecure advise
ClickFix itself is not new. Sophos researchers have documented MacSync campaigns that used sponsored search results, fake download pages and shared chat conversations to get people to paste Terminal commands, noting that the technique requires no software exploit and depends entirely on user action. Coverage of WithSecure’s report, such as this CyberPress article, framed Phexia as a password stealer that also mines cryptocurrency. The Register reported earlier in the year on macOS ClickFix attacks that deliver AppleScript.
For anyone who suspects an infection, WithSecure’s incident-response guidance calls for isolating the machine, preserving evidence, identifying every malicious persistence entry rather than assuming one, and unloading each job before deleting it. From a trusted device, affected passwords should be reset, active sessions and tokens revoked, and password-manager and wallet exposure assessed, with a rebuild from a trusted baseline if the compromise cannot be fully scoped.
The report’s conclusion is pointed: “Phexia demonstrates how a user-executed Terminal command can lead to persistent access and credential theft on macOS.” What WithSecure does not say is how many Macs are infected; its telemetry covers only its own clients, and the full report with indicators is on the WithSecure site.
This article was produced with the assistance of AI and reviewed by Morning Overview editors prior to publication.
More from Morning Overview
- Why a ‘doomsday plane’ shadowed Air Force One all the way to China and back
- NTSB ties a deadly Honolulu plane crash to a flap malfunction and a flap repair with no written description
- The first cholesterol pill of its class can cut bad cholesterol by up to 65%
- Another Pacific storm could bring heavy rain to northern California by Monday morning