MacSync Stealer Behavioral Hunting and Infrastructure Analysis
MacSync Stealer is a macOS-based information stealer that evades detection through rapid domain rotation while maintaining consistent behavioral pivots in its payload retrieval, C2 communication, and chunked exfiltration patterns.
MacSync Stealer is an information-stealing malware specifically targeting macOS environments. First identified by RST Cloud, the malware is notable for its use of rapidly rotating command-and-control (C2) infrastructure to evade static domain-based detection. Microsoft Defender Experts expanded the understanding of this threat by correlating recurring endpoint and network behaviors, uncovering more than 30 related domains. The malware typically initiates via ClickFix social engineering, where users are manipulated into executing malicious shell commands in Terminal. Once active, the stealer exhibits durable behavioral traits - including specific URI paths, curl command-line arguments, and unique HTTP header parameters - that persist regardless of the underlying domain. These patterns support a full lifecycle of collection, staging, and exfiltration of sensitive macOS data, including Keychain material, browser credentials, and SSH keys.
Attack Chain
- Initial access is achieved via ClickFix social engineering, prompting the user to paste and execute malicious commands in a Terminal session.
- The interactive shell session invokes
curlto fetch the primary payload from attacker-controlled infrastructure using paths containing/curl/. - The malware performs C2 check-ins using
curlwith consistent flags (-k,-s,--max-time), specific macOS User-Agent strings, and a staticapi-keyheader. - The stealer performs local discovery to identify Keychain files, browser profile data, cloud credentials, and SSH keys stored in user directories.
- Collected sensitive data is moved to temporary directories and compressed into a single archive file.
- The archive is split into smaller chunks, which are exfiltrated using
curlvia HTTP PUT requests with the--data-binaryflag. - Exfiltration traffic is identified by unique URL parameters including
upload_id,chunk_index, andtotal_chunksmapped to/gate?buildtxd=URI patterns. - Final cleanup occurs as the malware deletes temporary staging folders, compressed archives, and associated lock files to minimize forensic artifacts.
Impact
MacSync Stealer poses a high risk to macOS users by facilitating the theft of high-value credentials, including browser-stored logins, cloud service tokens, and SSH keys. If the attack succeeds, attackers gain persistent unauthorized access to the victim's digital accounts and local development environments. While specific victim counts are not disclosed, the threat's capability to exfiltrate vast amounts of sensitive local data makes it a significant risk to individuals and enterprise users on the macOS platform.
Recommendation
- Deploy the Sigma rule below to detect execution of
curlcommands containing known MacSync Stealer URI patterns and command-line flags. - Monitor process execution logs for
curlsessions that utilize the--data-binaryflag in conjunction withPUTrequests, as these are highly indicative of exfiltration. - Implement endpoint controls to restrict the execution of untrusted commands in Terminal, specifically monitoring for base64-encoded or obfuscated script injection characteristic of ClickFix campaigns.
- Configure network monitoring to alert on HTTP headers containing the
api-keystring when used in conjunction with macOS User-Agent strings in non-standard environments.
Immediate actions
Deploy Sigma detection for curl-based exfiltration
Threat Hunt
Search for processes invoking curl with --data-binary or -X PUT
Data: Process Command Line
Detection coverage 1
Detect MacSync Stealer Exfiltration via Curl
highDetects MacSync Stealer chunked data exfiltration using curl with specific HTTP PUT parameters and data-binary flags
Detection queries are available on the platform. Get full rules →