Malvertising Campaign Abuses Google Ads and Claude.ai to Target macOS Users
Attackers exploit shared chats to distribute malware via legitimate-looking ads

KEY TAKEAWAYS
- Attackers use Google Ads and Claude.ai shared chats to distribute malware to macOS users.
- Malicious shared chats pose as official installation guides, tricking users into running harmful commands.
- The malware collects browser credentials, cookies, and macOS Keychain contents, exfiltrating them to attacker servers.
- The campaign employs polymorphic delivery to evade detection and selectively targets non-Russian/CIS-region users.
- Users should avoid clicking sponsored search results and verify instructions before running terminal commands.
A malvertising campaign exploits Google Ads and Claude.ai's shared chats to spread malware on macOS
An active malvertising campaign is abusing Google Ads and Claude.ai's shared chats to spread malware to macOS users. Users searching for "Claude mac download" may encounter sponsored results pointing to claude.ai as the destination site, but which actually guide them to instructions that install malware on their Macs.
Claude's shared chats weaponized to target macOS users
The campaign was discovered by Berk Albayrak, a security engineer at Trendyol Group, who shared his findings on LinkedIn. Albayrak identified a Claude.ai shared chat that presents itself as an official installation guide for "Claude Code on Mac," attributed to "Apple Support".
The chat guides users to open the Terminal and paste a command that silently downloads and runs malware on their Macs.
While attempting to verify Albayrak's findings, BleepingComputer encountered a second Claude shared chat executing the same attack via a completely separate infrastructure. Both chats follow an identical structure and a similar social engineering approach, but use different domains and payloads. Both chats were publicly accessible at the time of writing this article.
What does the macOS malware do?
The base64 instructions shown in the Claude shared chat download a shell script encoded from domains like:
- In the variant seen by Albayrak hxxp://customroofingcontractors[.]com/curl/b42a0ed9d1ecb72e42d6034502c304845d98805481d99cea4e259359f9ab206e
- In the variant seen by BleepingComputer hxxps://bernasibutuwqu2[.]com/debug/loader.sh?build=a39427f9d5bfda11277f1a58c89b7c2d
The 'loader.sh' (served from the second link above) is another set of Gunzip-compressed shell instructions that run entirely in memory, leaving few obvious traces on disk.
BleepingComputer observed that the server provides a uniquely obfuscated version of the payload on each request (a technique known as polymorphic delivery), making it harder for security tools to flag the download based on a known hash or signature.
The variant identified by BleepingComputer starts by checking if the machine has keyboard input fonts configured for Russian or CIS regions. If so, the script exits without doing anything, sending a silent cisblocked status ping to the attackers' server. Only machines that pass this check receive the next stage.
Before proceeding further, the script collects the victim's external IP address, hostname, operating system version, and keyboard locale, sending all of that to the attackers' server. This type of victim profiling before payload delivery suggests that the operators are selective about their targets.
The script then downloads and executes a second-stage payload, which is a Mach-O binary that performs various malicious activities, such as stealing sensitive information from the infected machine.
The variant identified by Albayrak uses a similar approach but with different payloads and command-and-control servers.
Implications for cybersecurity and the future of threats
This malvertising campaign represents a concerning evolution in the tactics of threat actors, combining the abuse of legitimate AI platforms with advanced social engineering techniques. The use of shared chats on Claude.ai to distribute malware demonstrates how the collaborative features of modern platforms can be weaponized for malicious purposes.
Emerging trends in cyber threats
The cybersecurity industry is witnessing an increase in campaigns that exploit AI tools and development platforms. Unlike traditional attacks that primarily targeted technical users, this campaign demonstrates a broadening trend towards spreading malware to a wider and less experienced audience.
Impact on non-technical users
The nature of this campaign is particularly insidious because it targets AI-curious users who may not be familiar with terminal commands. This expands the pool of potential victims far beyond developers and advanced users, including people who are simply looking to explore the capabilities of AI platforms.
Platform and user response
Anthropic and Google have been contacted for comment, but it is not yet clear what specific measures they are taking to mitigate this threat. Users are encouraged to navigate directly to the official sites of the platforms and avoid clicking on sponsored search results that may not be safe.
Additional security tips
- Always verify the source of instructions before executing them, even if they appear to come from trusted sources.
- Use additional security tools such as antivirus and firewalls to protect your devices.
- Keep your operating systems and applications up to date to reduce vulnerability to known exploits.
Future outlook
With the increasing use of AI tools and the integration of advanced features into digital platforms, it is likely that threat actors will continue to exploit these technologies to spread malware. Companies developing these platforms will need to implement more robust security measures to prevent the abuse of their features.
The cybersecurity community will need to remain vigilant and adapt quickly to new emerging threats to protect users from these increasingly sophisticated tactics.
Editorial Note and Disclaimer
The guides and content published on GoYou are the result of independent research and analysis activities, for informational, educational, and in-depth purposes.
GoYou does not constitute a journalistic publication or an editorial product pursuant to Law No. 62/2001 and does not engage in real-time information activities.
The GoYou project does not provide professional, technical, legal, or financial advice and disclaims any liability for the misuse of the information published.
In the Crypto sector, every investment involves risks: readers are invited to always inform themselves autonomously before making any decision.
Source: bleepingcomputer.com · GoYou.it is not a registered news outlet; all content is for informational and educational purposes.