Phexia
- Type
- Infostealer
- Capabilities
- Credential theftSession hijackingExfiltrationPersistenceDefense evasionReconnaissance
- Delivery
- ClickfixLanding pageLure
- Platforms
- macOS
Phexia is a commercially distributed, modular macOS information stealer and backdoor active since at least late 2025. It is sold to multiple criminal groups and distributed through ClickFix campaigns, including fake verification and repair pages that persuade users to paste malicious commands into Terminal. These infection chains rely on social engineering rather than exploitation of a software vulnerability.
Initial shell scripts execute an AppleScript dropper that establishes per-user LaunchAgent persistence. The persistent configuration embeds a Base64-encoded loader and restarts it when execution stops. Phexia retrieves additional modules from command-and-control infrastructure, supporting information theft, remote shell access, and deployment of additional software. Operators have repeatedly deployed the XMRig Monero miner on compromised Macs.
Phexia captures login passwords through deceptive system-authentication prompts and validates them locally. It collects browser credential databases, cookies, browsing history, browser encryption secrets, the login keychain, and LastPass and NordPass browser-extension stores. It also gathers system information, stages collected data in ZIP archives, and uploads the archives to attacker-controlled servers.
Phexia uses dead-drop resolution through Telegram, Steam profiles, and blockchain infrastructure to discover command-and-control addresses. Operational use of Polygon smart contracts began in late May to early June 2026, allowing operators to update server information without replacing the embedded lookup mechanism. Encoded loaders, obfuscated AppleScript, use of native macOS utilities, and persistence labels impersonating Apple components help conceal its operation. Multiple builds can coexist on a reinfected system.
Techniques & procedures
45 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
2 techniques
Resource Development
The threat actor used a series of attacker-controlled domains for C2, switching to a new domain every few days to weeks.
First-stage shell scripts (update.sh, script.sh, clear-cache.sh, Terminal.sh) were hosted on delivery hosts and downloaded by victims.
Initial Access
1 technique
Initial Access
attackers exploited trusted digital supply chain infrastructure used by victims in H1 2026. This included threat actors in April hijacking Axios to spread remote access trojans (RATs).
Execution
6 techniques
Execution
Phexia also uses LaunchAgent persistence to ensure execution after reboots.
followed by osascript execution that created a LaunchAgent plist file which was configured to run a bash command containing a base64-encoded payload
The dropper, loader, backdoor and stealer modules ran as AppleScript through osascript.
bash and sh ran the first-stage script, the C2 lookups, module downloads and operator shell tasks.
often using fake CAPTCHA lures to trick users into executing code via malicious copy and paste (aka paste and run, ClickFix, fakeCAPTCHA)
The process ancestry places this activity within an interactive Terminal session, consistent with a user executing a command supplied through ClickFix-style social engineering attack.
Persistence
2 techniques
Persistence
Phexia also uses LaunchAgent persistence to ensure execution after reboots.
The dropper writes a per-user LaunchAgent to ~/Library/LaunchAgents and sets KeepAlive to true.
Privilege Escalation
3 techniques
Privilege Escalation
Phexia also uses LaunchAgent persistence to ensure execution after reboots.
The dropper writes a per-user LaunchAgent to ~/Library/LaunchAgents and sets KeepAlive to true.
The backdoor reset the Mac’s privacy permissions with tccutil reset All; the purpose is unknown.
Stealth
6 techniques
Stealth
Obfuscated AppleScript containing junk variables, dummy properties and arithmetic expressions.
The complete loader is stored as a Base64-encoded string within the LaunchAgent’s ProgramArguments.
October builds used LaunchAgent labels beginning com.Apple., and the miner’s working folder was renamed to /tmp/applecomlistupdate.
Miner archives and temporary files were deleted after use.
base64 -d decoded the loader at each launch, and xxd -r -p decoded the C2 hostname from the contract response.
The captured password and the build identifier were stored in hidden files, ~/.passphrase and ~/.txid.
Defense Impairment
2 techniques
Defense Impairment
The quarantine attribute was removed from the downloaded miner with xattr -d com.apple.quarantine.
“We are currently preparing a new update that will include antivirus bypass tools.”
Credential Access
6 techniques
Credential Access
Repeated password checks with dscl . authonly, consistent with a fake “System Preferences” password prompt, continued until the correct password was entered.
Browser cookie databases were copied, and Safari cookies were copied through Finder.
Credentials harvested by infostealers often become the initial access vector for far higher-impact intrusions later in the attack chain.
The login keychain database was copied, and browser Safe Storage keys were read with security find-generic-password.
Login Data and Web Data files were copied from browser profiles.
LastPass and NordPass extension stores, including IndexedDB databases, were copied into /tmp/<long hex>/Extensions/.
Discovery
6 techniques
Discovery
The Mac’s public IP address was looked up through api.ipify[.]org.
The current username was collected with whoami.
The hardware UUID was collected with ioreg, and system details with system_profiler and uname -m.
The stealer checked for crypto-wallet application folders with test -d and probed extension databases with file -b.
Browser history files were copied.
The returned script uploaded the build identifier, hardware UUID and username, together with an apps field.
Collection
4 techniques
Collection
WithSecure’s endpoint analysis identified credential capture, browser and keychain data collection, and cryptominer deployment following Phexia infection.
Repeated password checks with dscl . authonly, consistent with a fake “System Preferences” password prompt, continued until the correct password was entered.
Collected data was staged under /tmp/<long hex>/ and ~/tempFolderC before upload.
The collected data was archived with ditto -c -k –sequesterRsrc into /tmp/<long hex>.zip.
Command and Control
8 techniques
Command and Control
Popular tools like VPNs, often used by users with limited security resources, combined with legitimate command-and-control (C2) infrastructure enables attackers to reach a far wider victim base while frustrating defenders who cannot simply block the associated endpoints.
C2 checks, registration, task polling and module downloads used HTTPS POST requests.
“Bots just reconnect to new proxy servers.”
At the time of publication, Phexia is unique from other macOS stealers in its use of dead drop resolution with Telegram, Steam, and blockchain smart contracts to discover command and control (C2) domains for communication.
The most recent and notable change in Phexia occurred in May 2026, when the threat actor started testing smart contracts on the Polygon blockchain as a command-and-control (C2) dead-drop resolver (DDR).
Modules were downloaded from the C2 and piped into osascript, bash or sh; XMRig was downloaded from GitHub.
“I constantly change domains ... If I specified C2 in the build, then after a possible server block, everyone would have to change binary files ... Bots just reconnect to new domains.”
Darktrace primarily detected devices making repeated connections to algorithmically generated domains (DGA) such as hf98x4d[.]site.
Exfiltration
2 techniques
Exfiltration
Archives of stolen data were uploaded to upload.php on the C2 over HTTPS.
The same archives were also uploaded to 62.60.226[.]50 over plain HTTP.
Impact
1 technique
Impact
The XMRig cryptominer was deployed through C2 tasking, via the ledger and shell modules, to mine Monero.
Observables
69 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
19 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.