Skip to content
.ca
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

Indicators of Compromise33
24domain6file path1crypto address1ip1url
Improve this report

Send corrections, useful missing information, or quality feedback. It is private and will not appear as a comment.

Feedback type

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

  1. Initial Access: ClickFix lure tricks user into pasting curl command into Terminal to download shell script
  2. Persistence: AppleScript dropper creates per-user LaunchAgent with KeepAlive and RunAtLoad set to true
  3. C2 Resolution: Loader queries Polygon smart contract via public RPC endpoints using eth_call to retrieve C2 hostname
  4. Execution: Backdoor module downloaded from C2 and piped directly to osascript without saving to disk
  5. Collection: Stealer modules harvest browser data, keychain, password-manager extensions, and login passwords via dscl
  6. 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

copy:
HypothesisTelemetryStageFP Risk
osascript descendants making HTTPS POST requests to Polygon RPC endpoints with eth_call data containing 0x2686ecea selector (T1102.001)Process command-line logsCommand and ControlLow — 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 logsPersistenceLow — 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 logsExecutionLow — specific txid parameter pattern
dscl . authonly executed from AppleScript process tree indicating password capture (T1056.002)Process command-line logsCredential AccessMedium — 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

IOCs · 33
.txt.json
Showing defanged values