Mac Malware Uses Fake Terminal Activity to Steal Passwords, Cookies, Keys and Cloud Credentials

Microsoft has linked more than 30 web domains to MacSync Stealer, a malware family designed to steal sensitive information from macOS devices.

Microsoft Defender Experts found the links by studying repeated behavior across different domains. The attackers changed their infrastructure, but the malware continued to use similar commands, network paths, and upload methods.

Importantly, Microsoft confirmed that the activity involved actual data theft, not only connections to a command-and-control server.

The company did not reveal how many victims were affected. It also did not connect the campaign to a specific threat actor.

MacSync Uses ClickFix-Style Attacks

The observed infection chain begins with an interactive zsh Terminal session.

This activity matches the pattern seen in ClickFix attacks. In these campaigns, attackers trick users into copying and running commands on their own computers.

After the user runs the command, curl downloads attacker-controlled content. The malware then uses tools such as Base64 and gunzip to decode or unpack the payload.

MacSync also uses osascript to run AppleScript commands.

As a result, the attack can rely heavily on tools that already exist on macOS. This can make detection harder than attacks that depend on a large standalone malware file.

What MacSync Steals

MacSync focuses on information that can give attackers access to both personal and business accounts.

The malware can collect:

  • macOS Keychain data
  • Browser passwords and cookies
  • Browser history
  • Session information
  • Apple Notes
  • SSH keys
  • AWS credentials
  • Kubernetes configuration files
  • Host and user information
  • Sensitive files stored in common user folders

These targets make the malware especially concerning for developers, IT teams, cloud engineers, and other users with access to business systems.

For example, stolen AWS credentials could give attackers access to cloud resources. Likewise, SSH keys could help them reach other systems.

Attackers Hide Data Theft Inside Normal Tools

MacSync does not need to use a large collection of unusual tools.

Instead, it uses common macOS and Unix utilities to carry out several stages of the attack.

After collecting information, the malware stores temporary data under /tmp/sync*. It then creates a compressed archive called osalogging.zip.

Next, MacSync splits the stolen data into smaller pieces. It sends those chunks to the attackers through HTTP PUT requests using curl.

Microsoft observed repeated parameters such as upload_id, chunk_index, and total_chunks.

Once the theft is complete, the malware removes temporary archives and other files.

Therefore, defenders should not rely only on malware names or file hashes. The behavior around command execution, file staging, and network traffic can provide stronger clues.

Microsoft Tracks More Than 30 Domains

The attackers changed domains while keeping similar communication patterns.

Microsoft identified more than 30 domains linked to MacSync activity. The list includes domains such as:

  • aihealthring[.]com
  • chatbasedos[.]com
  • commercialroofingsd[.]com
  • fintelliganceai[.]com
  • intopython[.]com
  • lumenagnet[.]com
  • nailscanai[.]com
  • numericagent[.]com
  • plethorawallet[.]com
  • vastbets[.]com

The full indicator set contains more than 30 domains.

However, domain blocking alone may not provide lasting protection. Attackers can register or switch to new domains while keeping the same malware behavior.

That is why Microsoft used behavioral indicators to connect the infrastructure.

Behavioral Detection Helps Find Changing Infrastructure

Microsoft looked for several recurring signs.

These included process relationships, command-line patterns, HTTP request paths, headers, and upload parameters.

Researchers also observed recurring paths such as /curl/, /dynamic?txd=, and /gate?buildtxd=.

The malware also used API-key headers and HTTP PUT requests with the same chunk-upload parameters.

By combining network and endpoint behavior, defenders can identify related activity even when attackers change their domains.

This approach is important because infrastructure rotation is common in modern malware campaigns.

Earlier Research Found More MacSync Infrastructure

The latest Microsoft findings also build on earlier research from RST Cloud.

In May, RST Cloud identified four confirmed MacSync command-and-control domains and found 11 additional candidate domains.

Researchers noticed repeated URI patterns and a shared API key in the confirmed infrastructure.

Microsoft's later investigation found that four domains from the new indicator set also appeared in the earlier research.

The overlap adds more evidence that attackers have continued changing their infrastructure while keeping parts of the same communication pattern.

How Organizations Can Defend Against MacSync

Microsoft recommends several steps to reduce the risk.

First, educate users about untrusted Terminal commands. Users should never paste commands into Terminal simply because a website, message, application, or caller tells them to do so.

Next, monitor unusual Terminal and zsh activity. Pay particular attention when a user session downloads a file, decodes content, or runs commands shortly after user interaction.

Security teams should also connect several events together. For example, AppleScript activity followed by credential-store access, temporary archive creation, and outbound traffic can indicate a possible infection.

Network monitoring can provide another layer of detection. Look for curl HTTP PUT uploads, unusual API-key headers, upload IDs, chunk indexes, and recurring /gate paths.

Finally, investigate connections to suspicious or newly registered domains. At the same time, continue hunting for the underlying behavior because attackers can quickly replace blocked domains.

Apple Adds More Protection

Apple has also introduced several protections in macOS 26.4 and later.

These include Terminal paste protection, pasteboard command blocking, and AppleScript scanning.

XProtect can also examine the process chain created by pasted Terminal commands. It can check related network activity and block behavior associated with known malware techniques.

In addition, AppleScript and JavaScript for Automation activity can receive local inspection.

These protections can help reduce the risk of ClickFix-style attacks. However, users and security teams still need to treat unexpected Terminal instructions as a serious warning sign.

What CISOs Should Take From the MacSync Campaign

The MacSync campaign highlights a growing problem for organizations with large macOS environments.

Attackers do not always need a complex exploit. Instead, they can convince a user to run a command and then use trusted system tools to download, execute, collect, and send data.

For businesses, this means macOS security should include more than traditional malware detection.

Organizations should monitor user behavior, Terminal activity, credential access, cloud credentials, network uploads, and unusual use of native tools.

Developers and IT administrators also deserve special attention. Their devices may contain SSH keys, cloud credentials, source code, and access to production systems.

The Bigger Cybersecurity Lesson

MacSync shows why attackers are moving toward behavior-based evasion and infrastructure rotation.

A domain may disappear. A new domain can replace it. However, the attacker may continue using the same command patterns, request paths, upload methods, and system tools.

Therefore, security teams should look beyond simple indicators such as domain names and file hashes.

For organizations in the UAE and GCC, the lesson is equally important. As macOS adoption grows across business, technology, executive, and developer environments, teams should include macOS-specific threats in their endpoint and identity security programs.

User awareness remains a key defense.

A simple rule can prevent many ClickFix-style infections: never paste or run a Terminal command just because an unfamiliar website, message, or person tells you to do it.