Threat Advisory

Phexia Malware Steals macOS Credentials and Web Records Using Control Networks

Threat: Malware Campaign
Targeted Region: Global
Targeted Sector: Technology & IT
Criticality: High
[subscribe_to_unlock_form]

EXECUTIVE SUMMARY:

A modular macOS backdoor and information-stealing malware named Phexia is being distributed through ClickFix-based social engineering campaigns targeting macOS environments. The malware is commercially available and has been leveraged by multiple threat actors to compromise macOS devices. Its capabilities extend beyond credential theft, enabling persistent access to infected systems and the deployment of cryptocurrency-mining software. The evolving malware has also adopted blockchain-based command-and-control (C2) resolution, making its infrastructure more difficult to disrupt.

The infection begins when victims are tricked into executing malicious commands in the macOS Terminal, typically through fake CAPTCHA pages and ClickFix instructions. The commands download shell scripts using curl and execute them through bash. The scripts launch an AppleScript dropper that establishes persistence by creating a LaunchAgent under the user's ~/Library/LaunchAgents directory. The embedded loader retrieves command-and-control (C2) addresses through Polygon blockchain smart contracts and downloads the backdoor module for execution. Once active, Phexia communicates with its C2 infrastructure to receive commands and additional payloads. Its capabilities include capturing macOS login passwords, collecting browser credentials, cookies, browsing history, keychain material, and password-manager extension data. The malware also gathers system information and archives stolen data before exfiltrating it to remote infrastructure. Additionally, operators leverage Phexia's tasking mechanism to download and execute XMRig cryptocurrency mining software, repeatedly reinstalling the miner and modifying mining pools and wallet configurations. The malware also supports multiple builds and C2 infrastructure changes, allowing older and newly deployed infections to operate simultaneously on compromised systems.[/subscribe_to_unlock_form]

EXECUTIVE SUMMARY:

A modular macOS backdoor and information-stealing malware named Phexia is being distributed through ClickFix-based social engineering campaigns targeting macOS environments. The malware is commercially available and has been leveraged by multiple threat actors to compromise macOS devices. Its capabilities extend beyond credential theft, enabling persistent access to infected systems and the deployment of cryptocurrency-mining software. The evolving malware has also adopted blockchain-based command-and-control (C2) resolution, making its infrastructure more difficult to disrupt.

The infection begins when victims are tricked into executing malicious commands in the macOS Terminal, typically through fake CAPTCHA pages and ClickFix instructions. The commands download shell scripts using curl and execute them through bash. The scripts launch an AppleScript dropper that establishes persistence by creating a LaunchAgent under the user's ~/Library/LaunchAgents directory. The embedded loader retrieves command-and-control (C2) addresses through Polygon blockchain smart contracts and downloads the backdoor module for execution. Once active, Phexia communicates with its C2 infrastructure to receive commands and additional payloads. Its capabilities include capturing macOS login passwords, collecting browser credentials, cookies, browsing history, keychain material, and password-manager extension data. The malware also gathers system information and archives stolen data before exfiltrating it to remote infrastructure. Additionally, operators leverage Phexia's tasking mechanism to download and execute XMRig cryptocurrency mining software, repeatedly reinstalling the miner and modifying mining pools and wallet configurations. The malware also supports multiple builds and C2 infrastructure changes, allowing older and newly deployed infections to operate simultaneously on compromised systems.[emaillocker id="1283"]

The campaign demonstrates active development, with operators testing blockchain-based resolvers to evade infrastructure takedowns. The use of smart contracts allows C2 redirection without modifying deployed malware, making historical domains less reliable for detection. Multiple builds have been observed operating concurrently on single endpoints, complicating incident response. Defenders should monitor for LaunchAgent persistence with obfuscated AppleScript loaders and unusual Terminal execution patterns. Detection logic must account for the dynamic nature of the C2 infrastructure and the specific process ancestry associated with the initial download and execution steps.

THREAT PROFILE:

Tactic Technique Id Technique Sub-technique
Initial Access T1566.002 Phishing Spearphishing Link
Execution T1059.004 Command and Scripting Interpreter Unix Shell
Execution T1059.006 Command and Scripting Interpreter Python
Persistence T1547.001 Boot or Logon Autostart Execution Registry Run Keys / Startup Folder
Credential Access T1555.001 Credentials from Password Stores Credentials from Web Browsers
Credential Access T1555.003 Credentials from Password Stores Credentials from Web Browsers
Credential Access T1552.001 Unsecured Credentials Credentials In Files
Credential Access T1555.005 Credentials from Password Stores Credentials from Web Browsers
Collection T1005 Data from Local System -
Command and Control T1071.001 Application Layer Protocol Web Protocols
Exfiltration T1041 Exfiltration Over C2 Channel -
Impact T1496 Resource Hijacking -

MBC MAPPING:

Objective Behavior ID Behavior
Execution E1204 User Execution
Execution E1059 Command and Scripting Interpreter
Persistence F0012 Registry Run Keys / Startup Folder
Command and Control B0030 C2 Communication
Command and Control E1105 Ingress Tool Transfer
Credential Access E1056 Input Capture
Collection E1560 Archive Collected Data
Discovery E1082 System Information Discovery
Discovery E1083 File and Directory Discovery
Impact B0018 Resource Hijacking
Exfiltration E1020 Automated Exfiltration
Defense Evasion E1027 Obfuscated Files or Information

REFERENCES:

The following reports contain further technical details:

[/emaillocker]
crossmenu