MacSync
- Type
- Infostealer
- Capabilities
- Credential theftSession hijackingExfiltrationPersistenceDefense evasionCrypto theft
- Delivery
- MalvertisingClickfixLanding pageLure
- Platforms
- macOS
MacSync is a macOS information stealer with backdoor and persistence functionality that evolved from Mac.c. It harvests browser credentials and session cookies, SSH keys, and cryptocurrency wallet files, and exfiltrates collected information to attacker-controlled infrastructure. Observed infections use deceptive password prompts to capture the user's macOS login password and stage collected information in compressed archives before transmission.
MacSync is distributed through malvertising and ClickFix campaigns that impersonate legitimate software and installation workflows, including Homebrew, ChatGPT, and Claude. Malicious Google advertisements direct users to counterfeit download pages or shared Claude conversations presented as installation or troubleshooting guides. These lures persuade victims to paste and execute commands in Terminal, initiating multistage shell-script delivery. User-initiated execution helps the infection chain circumvent some built-in macOS security controls. One observed delivery chain checks for Russian keyboard layouts or input methods and suppresses payload execution when they are present.
The PasteSwitch cybercriminal operation has distributed MacSync, including through activity involving hijacked HBO Max social-media accounts. Campaigns have targeted Mac users seeking AI development tools and utilities, exposing both personal and developer credentials.
Associated vulnerabilities
1 CVE Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
Associated threat actors
1 distinct threat actor Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
“In other campaigns, such as the HBO Max hijacked campaign, PasteSwitch has also distributed MacSync.”
Techniques & procedures
104 distinct techniques documented for this family, organized by ATT&CK tactic.
Reconnaissance
1 technique
Reconnaissance
the payload spoofs an error page for the Ledger Wallet app, prompting the user to enter their recovery phrase
Resource Development
4 techniques
Resource Development
The attack starts when someone searches Google for terms such as how to install Claude on a Mac and selects a sponsored listing.
A malicious campaign used a paid search result and a fake guide on a legitimate Claude sharing page to persuade victims to paste a command into Terminal.
During a 48-hour window, the attackers pushed 108 malicious advertisements across five lure groups as part of the campaign, tracked as PasteSwitch.
"...MacSync... currently distributed via SEO poisoning campaigns."
Initial Access
6 techniques
Initial Access
The official HBO Max Reddit account was reportedly compromised and used in a malvertising campaign... The compromised account published 108 advertisements... promoting fake downloads.
"When users attempt to download files through these compromised services, they are redirected through multiple intermediary pages designed to bypass security detection while maintaining an appearance of legitimacy."
"Attackers have compromised two major file-sharing mirror services—Mirrored.to and Mirrorace.org... By injecting malicious code into these platforms, the threat actors effectively transformed trusted infrastructure into delivery mechanisms for infostealer malware."
The stealer actively backdoors Ledger hardware wallet applications by downloading malicious app.asar files from the C2 and replacing the legitimate application resources, then re-signing with an ad-hoc certificate.
Le malware est promu via de faux logiciels, notamment le faux wallet crypto Toria, sur X et Telegram avec une page web dédiée.
“The victim didn't encounter a misspelled or lookalike domain” because the attacker used a real “claude.ai/share” link; shared ChatGPT and Grok links were also used as the attack vector.
Execution
11 techniques
Execution
a .zshrc resource file launches various persistence mechanisms
File artifact ~/Library/LaunchAgents/com.apple.[8hex].hcpi.plist LaunchAgent persistence
When the victim runs the Terminal command, the campaign retrieves and executes a remote script from a /curl/<id> URL.
Vecteurs observés : ... Scripts JXA compilés ou chaînes de droppers/loaders.
« Artefacts publiés directement sur les plateformes officielles [...] redirigeant vers des domaines de backup ou des commandes curl malveillantes. Payload identifié : MacSync Stealer (8/12 analyses). »
The DMG contained a compiled JXA script that decoded a shell script and passed it straight to the interpreter without writing it to disk.
“MacSync has been distributed to victims through social engineering, including ClickFix-style attacks.”
Victims clicked Bing sponsored ads or top-ranked search results that led to malicious Claude Artifacts, claude.ai/share pages, and shared ChatGPT/Grok conversations.
«В кампании, обнаруженной в сентябре 2026 года, заражение начинается с вредоносного DMG-образа».
ClickFix is a social engineering technique that cons victims into running malicious commands on their own machine.
«подменять установленный кошелек Ledger версией с сервера атакующих».
Persistence
14 techniques
Persistence
The backdoor restarts through ... a command added to the .zshrc file.
a .zshrc resource file launches various persistence mechanisms
File artifact ~/Library/LaunchAgents/com.apple.[8hex].hcpi.plist LaunchAgent persistence
The official HBO Max Reddit account was reportedly compromised and used in a malvertising campaign... The compromised account published 108 advertisements... promoting fake downloads.
MacSync can take over active accounts, collect cloud and SSH keys
«Он способен загружать браузерные расширения».
Persistance via : LaunchAgent : com.apple.finder.agent.
LaunchAgent or LaunchDaemon for recurring execution.
«закрепляется в системе... через... глобальные Git-хуки».
Persistance via ... Injection dans .ZSHRC.
The script injects commands into global GIT pre-commit and post-checkout hooks to run .repair-run.
«закрепляется в системе... через LaunchAgent».
three near-identical branches each trojanise a hardware-wallet companion app the victim already has installed.
Researchers warned that it can modify Ledger Live to capture wallet information, so simply deleting the infostealer may leave a compromised wallet application behind.
Privilege Escalation
13 techniques
Privilege Escalation
The backdoor restarts through ... a command added to the .zshrc file.
a .zshrc resource file launches various persistence mechanisms
File artifact ~/Library/LaunchAgents/com.apple.[8hex].hcpi.plist LaunchAgent persistence
The official HBO Max Reddit account was reportedly compromised and used in a malvertising campaign... The compromised account published 108 advertisements... promoting fake downloads.
MacSync can take over active accounts, collect cloud and SSH keys
Persistance via : LaunchAgent : com.apple.finder.agent.
LaunchAgent or LaunchDaemon for recurring execution.
«закрепляется в системе... через... глобальные Git-хуки».
Persistance via ... Injection dans .ZSHRC.
The script injects commands into global GIT pre-commit and post-checkout hooks to run .repair-run.
«закрепляется в системе... через LaunchAgent».
It also attempted to make the victim grant Terminal Full Disk Access, opening protected areas containing browser and system data.
The malware then shows a fake box asking for a system password to install a helper tool. If provided, the hackers gain full access to files and settings.
Stealth
19 techniques
Stealth
«приложение... извлекает зашифрованный URL следующего этапа»; «Один извлекает зашифрованный бинарник».
The server delivers a uniquely obfuscated version of the payload for each request, a technique known as polymorphic delivery.
«бэкдор... маскируется под Finder».
Le malware se déguise en applications populaires gratuites ou crackées; la persistance comprend com.apple.finder.agent et $HOME/Library/Application Support/System.
The loader checks for com.apple.quarantine and runs xattr -cr <app_name>; downloaded applications are stripped of extended attributes before execution.
At almost every stage, the malware removes its temporary files and logs once its task is done.
Приложение проверяет наличие у бандла атрибута com.apple.quarantine и выполняет xattr -cr <app_name> для удаления всех атрибутов.
The official HBO Max Reddit account was reportedly compromised and used in a malvertising campaign... The compromised account published 108 advertisements... promoting fake downloads.
Les droppers déchiffrent des exécutables et scripts AES-CBC; le script principal utilise ECDH Curve25519 + AES-GCM pour les modules finaux.
an AppleScript payload ( osascript ) that runs fully in system memory
Detect native tool abuse: Flag unusual sequences of macOS utilities (curl, Base64, Gunzip, osascript, and dscl).
«второй проверяет, не запущен ли он в виртуальной машине».
Le second dropper inclut des protections anti-débogage (kern.hv_vmm_present, machdep.cpu.brand_string, PT_DENY_ATTACH).
If a transfer fails, it retries with increasing delays.
Временные файлы размещаются в /tmp; дроппер записывает полезную нагрузку в /tmp/.sys-<random>; собранные данные сохраняются в скрытую директорию в /tmp/.
«подменять установленный кошелек Ledger версией с сервера атакующих».
“The malware employs AES encryption, ECDH Curve25519, anti-debugging, and in-memory execution.”
“The malware employs AES encryption, ECDH Curve25519, anti-debugging, and in-memory execution.”
ClickFix is a social engineering technique that bypasses conventional malware delivery entirely. Rather than exploiting a vulnerability or compromising a download link, it presents the victim with a fake problem.
Defense Impairment
6 techniques
Defense Impairment
Ad-hoc re-signs the whole app ( codesign -f -s - ) so the tampered bundle runs.
Stage 1 – Loader ... supprime l’attribut de quarantaine.
The Apple Developer ID GNJLS3UYZ4 (registered to OKAN ATAKOL) continues to sign MacSync samples... Every new MacSync build signed with this certificate bypasses macOS Gatekeeper without triggering a warning.
Researchers warned that it can modify Ledger Live to capture wallet information, so simply deleting the infostealer may leave a compromised wallet application behind.
«Внутри него находится приложение, которое удаляет атрибут com.apple.quarantine». | «второй проверяет, не запущен ли он в виртуальной машине, и блокирует подключение отладчика».
Completed modules erase logs and other traces.
Credential Access
18 techniques
Credential Access
MacSync is designed to gather browser logins, session cookies, Mac Keychain data, SSH keys, cloud credentials, messaging sessions, and cryptocurrency wallet information.
«функция может использоваться для перехвата браузерного трафика».
«Стилер по-прежнему стремится выманить у пользователя пароль администратора... MacSync обращается к API... PAM... для проверки учетных данных».
The script can display a password request that resembles a system dialog, then collect credentials and other data from the compromised Mac.
Demande le mot de passe administrateur via une fausse fenêtre système [et] utilise l’API PAM ... pour vérifier le mot de passe.
The malicious code looks for ... AWS credentials, Kubernetes configurations
“Its infostealer targets browser credentials, cookies...”
before collecting ... Secure Shell (SSH) keys, Amazon Web Services (AWS) credentials, Kubernetes configurations
«MacSync похищает... конфигурации SSH, AWS, Kubernetes и Git».
“Its infostealer targets ... command history.”
«MacSync похищает... конфигурации SSH».
“Its infostealer targets ... SSH/AWS/Kubernetes/Git configurations...”
"including ... cryptocurrency wallets"
“The infostealer module ... target[s] ... cookies, and saved credentials, crypto wallet extension and app data ... [and] the Keychain file.”
«После получения доступа MacSync похищает... связку ключей».
«После получения доступа MacSync похищает данные браузеров».
Researchers warned that it can modify Ledger Live to capture wallet information, so simply deleting the infostealer may leave a compromised wallet application behind.
The malicious code looks for macOS Keychain data
Discovery
10 techniques
Discovery
«функция может использоваться для перехвата браузерного трафика».
The infostealer collects a list of running processes.
It collects system information such as installed apps, running processes and the device model.
The repair-run script checks whether backdoor files exist and restores them from backup if missing; the stealer checks for KcHelper in application resources.
«второй проверяет, не запущен ли он в виртуальной машине».
Le second dropper inclut des protections anti-débogage (kern.hv_vmm_present, machdep.cpu.brand_string, PT_DENY_ATTACH).
If a transfer fails, it retries with increasing delays.
T1518 — Software Discovery (Discovery)
Device inventory with OS version, hardware specs, and geolocation
“The malware employs AES encryption, ECDH Curve25519, anti-debugging, and in-memory execution.”
Collection
9 techniques
Collection
Données collectées : wallets crypto, données Telegram, informations système, fichiers de configuration, historiques ZSH/Bash et photo de profil.
«Стилер по-прежнему стремится выманить у пользователя пароль администратора... MacSync обращается к API... PAM... для проверки учетных данных».
The script can display a password request that resembles a system dialog, then collect credentials and other data from the compromised Mac.
Demande le mot de passe administrateur via une fausse fenêtre système [et] utilise l’API PAM ... pour vérifier le mot de passe.
Staged archive /tmp/osalogging.zip Temporary archive used to hold collected data.
Собранные данные помещаются во временную папку и сжимаются в архив tar.gz; команда regrab использует /tmp/osalogging.zip.
A helper program may also request screen-recording permission, giving criminals another opportunity to watch activity or capture sensitive content.
«повторно собирать файлы с зараженного Mac».
IOC : /tmp/osalogging.zip.
Command and Control
12 techniques
Command and Control
In the script campaign, the malware searches for a live command-and-control server, and if none respond, it falls back to a Telegram bot to locate one dynamically.
over a hardcoded, TLS-wrapped command-and-control channel on a bare IP address
Communication C2 via HTTP avec header personnalisé X-Upload-Token.
SOCKS5 proxy activation on victim Macs (24-hour rotation)
The infection chain includes “abuse of iCloud Calendar for payload delivery.”
«ссылка вела на публичный календарь iCloud: загрузчик передавал его содержимое в zsh, а команды, скрытые после поля DESCRIPTION, загружали следующий .app-бандл».
The calendar commands download an archive from iCloud, and later scripts download the next stage from the attackers' server.
The stealer also plants a remote-access trojan that survives future logins through a LaunchAgent. This gives operators an interactive shell, the ability to run commands and transfer files.
85.206.161[.]241:8443 , a raw IP over TLS, hardcoded only in the Mach-O agent.
«pkgunpack... генерирует ключи на Curve25519, обменивается данными с управляющим сервером и расшифровывает нагрузку через AES-GCM».
Télécharge et déchiffre les modules finaux via ... AES-GCM; les précédents stages utilisent AES-CBC.
The agent can dial a bare IP, accept a self-signed certificate and skip trust validation entirely...
Exfiltration
6 techniques
Exfiltration
Exfiltration : upload via curl HTTP PUT ... paramètres upload_id , chunk_index , total_chunks
To transfer large stolen archives ... MacSync splits files into 10 MB chunks.
La backdoor communique avec le C2 via HTTP avec le header personnalisé X-Upload-Token.
Telegram exfiltration across 4 separate channels
Sends the data using HTTP PUT to /gate?buildtxd=…
The staged archive was uploaded through rotating infrastructure using curl and HTTP PUT requests
Impact
1 technique
Impact
Impact Financial Theft ( wallet / seed-phrase targeting)
Observables
418 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
187 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.