Security engineer Berk Albayrak warned that attackers were using Google Ads and genuine Claude shared-chat pages to distribute Mac malware through fake Claude Code installation instructions.
Albayrak, a security engineer at Trendyol Group, described sponsored search results directing people looking for Claude downloads to instructions hosted on claude.ai. The shared pages asked users to open Terminal and paste a command.
He said the command concealed a download address using base64 encoding, then retrieved remote content and piped it into the zsh shell for execution. Albayrak identified the delivered malware as a MacSync infostealer variant.
A technical analysis by Ax Sharma described a second shared Claude chat following the same installation pattern but using a different delivery domain and payload. The analysis described the chat identified by Albayrak as posing as an official “Claude Code on Mac” installation guide attributed to “Apple Support.”
The analysis said both chats were publicly accessible at the time of writing. The advertisements it described pointed to Anthropic’s genuine claude.ai domain, with the malicious instructions appearing inside shared content.
Two reported malware variants
Sharma’s analysis described the sample identified by Albayrak as harvesting browser credentials, cookies and macOS Keychain contents, packaging the material and sending it to an attacker-controlled server. That variant appeared to skip the device-profiling steps described for the second sample.
For the second variant, the analysis described the downloaded loader.sh as compressed shell instructions that ran entirely in memory. It also said the delivery server returned a uniquely obfuscated version of the payload on each request, making detection based on a known file hash or signature more difficult.
The second sample checked for Russian or CIS-region keyboard input sources, the analysis said. If those settings were present, the script exited after sending a status message to the attacker’s server. Otherwise, it continued.
The analysis said the script collected and transmitted the external IP address, hostname, operating system version and keyboard locale from machines that passed the check. Sharma also described the script downloading a second-stage payload and executing it through osascript, macOS’s built-in scripting engine.
Those behaviors were described for particular samples. The keyboard-region check did not establish the operators’ identity or location, and the two accounts did not establish that every shared-chat lure delivered the same payload.






