6 minhigh
Inside Phexia: A macOS malware delivered through ClickFix
Phexia is a macOS backdoor delivered via ClickFix lures that uses Polygon smart contracts for C2 resolution, steals credentials and browser data, and deploys XMRig cryptominer. Phexia is a modular macOS backdoor using Polygon blockchain smart contracts as C2 dead-drop resolvers, delivered through ClickFix social engineering. It captures login passwords via dscl, steals browser and keychain data, and deploys XMRig through C2 tasking. WithSecure observed active infections from June through October 2026 with evolving infrastructure, obfuscation, and a second Polygon contract introduced on 27 October.
Sens:▲ 24hConf:highAnalyzed:2026-11-05Z.ai
Authors: Shashika Harshani
ActorsPhexiaAtomic macOS Stealer
Source:WithSecure
Detection / HunterZ.ai
Immediate Actions
- Isolate infected Macs and collect LaunchAgent plists, ~/.passphrase, ~/.txid, and staging artifacts
- Unload malicious LaunchAgents with launchctl bootout before deleting plists
- Terminate xmrig processes and remove /tmp/rigupdater and /tmp/applecomlistupdate directories
- Reset all passwords stored in keychain and revoke active browser sessions and tokens
Key Takeaways
- Polygon smart contract C2 resolution lets operators rotate infrastructure without updating deployed malware
- October builds use com.Apple.<16 letters> LaunchAgent labels to impersonate Apple components
- Reinfection leaves multiple Phexia builds active concurrently with separate C2 infrastructure
- XMRig 6.26.0 downloaded from official GitHub releases with rotating Monero wallets and pools
- Password capture via dscl exposes plaintext credentials to process command-line logging
Attack Chain
- Initial Access: ClickFix lure tricks user into pasting curl command into Terminal to download shell script
- Persistence: AppleScript dropper creates per-user LaunchAgent with KeepAlive and RunAtLoad set to true
- C2 Resolution: Loader queries Polygon smart contract via public RPC endpoints using eth_call to retrieve C2 hostname
- Execution: Backdoor module downloaded from C2 and piped directly to osascript without saving to disk
- Collection: Stealer modules harvest browser data, keychain, password-manager extensions, and login passwords via dscl
- Impact: XMRig 6.26.0 deployed through ledger and shell tasking to mine Monero with rotating wallets and pools
Affected Systems
- macOS endpoints (all versions with Terminal access)
- macOS users targeted via ClickFix social engineering
- Browser profiles: Chrome, Edge, Brave, Opera, Vivaldi
- Password managers: LastPass, NordPass browser extensions
- Cryptocurrency wallet applications on macOS
Detection Engineering Assessment
Hunting Hypotheses
| Hypothesis | Telemetry | Stage | FP Risk |
|---|---|---|---|
| osascript descendants making HTTPS POST requests to Polygon RPC endpoints with eth_call data containing 0x2686ecea selector (T1102.001) | Process command-line logs | Command and Control | Low — osascript rarely contacts blockchain RPCs |
| LaunchAgent plists under ~/Library/LaunchAgents with com.Apple.<16 lowercase letters> labels containing base64 piped to osascript (T1543.001) | LaunchAgent creation logs | Persistence | Low — capitalised com.Apple prefix is non-standard |
| curl POST requests with txid=<hex>&bmodule or similar parameters piped to osascript (T1059.002) | Process command-line logs | Execution | Low — specific txid parameter pattern |
| dscl . authonly executed from AppleScript process tree indicating password capture (T1056.002) | Process command-line logs | Credential Access | Medium — dscl authonly has legitimate admin uses |
Required Log Sources
- macOS process command-line logs
- LaunchAgent creation events
- Web proxy logs with TLS inspection
- File system monitoring for /tmp and ~/Library
- Network connection logs
- DNS resolution logs
Control Gaps
- ClickFix delivery bypasses URL detonation by using pasted Terminal commands
- Polygon smart contract C2 resolver survives domain takedowns
- AppleScript obfuscation with junk variables evades static analysis
- XMRig downloaded from official GitHub releases appears as legitimate source
Recommendations
Infrastructure Hardening
- Block 62[.]60[.]226[.]50 and known C2 domains at network perimeter
- Monitor for Polygon RPC eth_call requests from non-browser processes on proxy
- Restrict Terminal execution for non-admin users where feasible
- Deploy EDR with macOS process command-line logging enabled
User Protection
- Educate users about ClickFix fake CAPTCHA prompts requesting Terminal commands
- Provide approved software installation guidance to reduce social engineering risk
- Enable macOS Gatekeeper and restrict execution of unsigned AppleScript
- Monitor for unusual osascript activity originating from Terminal sessions
MITRE ATT&CK Mapping
MITRE ATT&CK Mapping34 techniques
Tactic
Resource Development
Tactic
Persistence
Tactic
Privilege Escalation
Tactic
Stealth
Tactic
Defense Impairment
Tactic
Credential Access
Tactic
Discovery
Tactic
Command and Control
Tactic
Exfiltration
Tactic
Impact
Showing defanged values
- crypto_address4ApYm7Cp1QKHYd34eWHTLMR9JwGxEiPkP5GYNbD7UaGUBsAE31oRt8zbCiz7yV6BbHa5mZUGYxeMRbihPXxo9o3vNWJxx2LMonero wallet for XMRig mining payouts
- domain355uz90z[.]bolnhurstrally[.]siteDelivery host for first-stage script
- domain67sixcebeh[.]surfC2 domain first seen 27 July 2026
- domain7ulk[.]irvinaurus[.]fitDelivery host for first-stage script
- domainapdhlhs3[.]xyzC2 domain first seen 6 July 2026
- domaincoeuzgoq[.]bahisbiz[.]comDelivery host for first-stage shell script
- domaincouhe79[.]xyzC2 domain first seen 2 October 2026
- domaind9j[.]everunningshoes[.]comDelivery host for first-stage script
- domaind9mjs[.]sbsC2 domain first seen 7 September 2026
- domaindhsbdgs[.]icuLatest C2 domain resolved from second Polygon contract
- domainhackersteersman[.]digitalDelivery host for first-stage script
- domainhf98x4d[.]siteEarliest C2 domain observed in telemetry June 2026
- domainj9af4sr[.]guruC2 domain first seen 16 July 2026
- domainjse8x92s[.]meC2 domain first seen 11 September 2026
- domainkefavkd[.]nextbahis[.]sexDelivery host for first-stage script
- domainnox[.]usa-synadentix[.]comDelivery host for first-stage script
- domainoreshnik[.]topC2 domain active October 2026
- domainpool[.]hashvault[.]shMining pool used by XMRig over TLS port 443
- domainpool[.]supportxmr[.]comMining pool used by XMRig port 3333
- domainsecdarvin2026[.]icuC2 domain active October 2026
- domainstv4ec5[.]shopC2 domain first seen 4 August 2026
- domainsvo-zv[.]proC2 domain first seen 24 October 2026
- domainvg5sgxv[.]lolC2 domain first seen 25 August 2026
- domainxzttyt[.]xyzC2 domain first seen 12 October 2026
- domainzwa8[.]meritbethizligir[.]comDelivery host for first-stage script
- file_path~/.passphraseCaptured login password stored in plaintext
- file_path~/tempFolderC/Safari cookie staging directory
- file_path/tmp/applecomlistupdate/XMRig working directory (October, masquerading as Apple)
- file_path/tmp/rigupdater/XMRig working directory (June-October)
- file_path/tmp/updstat.txtUpload status output file
- file_path~/.txidBuild identifier file
- ip62[.]60[.]226[.]50Secondary upload server for stolen data over plain HTTP
- urlhxxp://62[.]60[.]226[.]50/upload[.]phpUnencrypted HTTP exfiltration endpoint for stolen data