Poisoned Ads, Hijacked Chats: How Attackers Are Using Claude.ai to Deliver Mac Malware
A sophisticated malvertising campaign weaponizes Google Ads and legitimate Claude.ai shared chats to trick Mac users into installing malware. Here's how it works.
This analysis is based on research published by Bleeping Computer. CypherByte adds analysis, context, and security team recommendations.
Executive Summary
A threat actor or group has engineered a cunning multi-stage malvertising campaign that exploits two layers of trust simultaneously: Google's paid search infrastructure and Anthropic's Claude.ai platform. Mac users searching for software downloads — specifically querying terms like "Claude mac download" — are being served sponsored search results that appear to point to legitimate claude.ai domains, but instead route victims through a chain of deception that ultimately results in macOS malware installation. This campaign represents a meaningful evolution in social engineering sophistication, leveraging the credibility of a well-known AI assistant platform to lower victim suspicion at the most critical moment of the attack chain. Security teams, IT administrators managing mixed-OS environments, and end users who regularly download productivity software should treat this as an active, ongoing threat requiring immediate awareness.
What makes this campaign particularly worthy of elevated attention is the abuse of Claude.ai's shared chat feature — a legitimate collaboration mechanism — to host and deliver malicious instructions. Rather than relying solely on a spoofed or typosquatted domain, attackers are embedding their social engineering payload inside the real claude.ai platform, meaning standard URL-based reputation checks and browser warnings may not trigger any alerts. This is not a vulnerability in Claude.ai itself, but rather a trust-exploitation technique that highlights a broader and deeply uncomfortable truth: the legitimacy of a hosting platform no longer guarantees the safety of content hosted on it. Original reporting credit goes to Bleeping Computer, whose researchers identified and documented this active campaign.
Technical Analysis
The attack chain follows a clearly defined multi-stage architecture designed to maximize trust at each transition point. In Stage One, the threat actor purchases Google Ads targeting high-intent search queries such as "Claude mac download" or similar AI software download terms. Critically, these sponsored ads are configured to display claude.ai as the visible destination URL — a legitimate domain — which passes casual visual inspection by even security-aware users. Google Ads allows advertisers to set a display URL that differs from the actual landing URL, and this feature is being weaponized here. The ad's final destination URL redirects victims to an attacker-controlled page.
In Stage Two, rather than serving a traditional phishing page or a direct malware download, the attacker's landing infrastructure directs victims to a real Claude.ai shared chat URL. Claude.ai allows users to share conversation transcripts via publicly accessible links. Attackers have created chat sessions — likely using the Claude API or free-tier accounts — in which the "conversation" contains step-by-step instructions for downloading and executing a malicious payload. Because the victim arrives at a real claude.ai URL with a valid TLS certificate and no browser security warning, the psychological barrier to following the instructions is dramatically reduced. The page looks and behaves exactly as a Claude.ai session should, because it is one.
The instructions hosted within the shared chat guide victims through a manual installation process typical of macOS malware distribution: opening Terminal, executing a curl or bash command, and potentially disabling Gatekeeper protections by navigating through System Preferences. This manual execution approach is deliberate — it circumvents automated malware delivery detection systems and places the execution action in the hands of the user, making behavioral detection more difficult. The malware family involved, based on available reporting, exhibits characteristics consistent with macOS stealer-type malware, likely targeting browser credentials, cryptocurrency wallets, and stored authentication tokens.
Google Search → Sponsored Ad (displays claude.ai) → Attacker Landing Page → Real Claude.ai Shared Chat → Manual Terminal Command → macOS Malware Execution
The selection of Claude.ai as the instruction-hosting platform is analytically significant. Security tools that evaluate URLs against threat intelligence feeds will find claude.ai clean. Secure web gateways and DNS filtering solutions are unlikely to block it. Even sophisticated users who inspect the URL bar before proceeding will see a legitimate Anthropic domain. The attacker has effectively laundered their social engineering payload through a reputable third-party service — a technique we anticipate will be replicated with other AI platform shared-content features in the near future.
Impact Assessment
Affected systems are macOS endpoints across all recent versions, with particular exposure for users running macOS versions where Gatekeeper and notarization protections can be bypassed through manual user action. No specific macOS version vulnerability is required — the attack is OS-agnostic in its social engineering phase and only requires a user willing to follow Terminal instructions. Corporate environments with BYOD policies or unmanaged Mac fleets face elevated risk, as endpoint security tooling on personal machines is frequently minimal.
The real-world consequences of a successful compromise are significant. Stealer-class malware on a developer or executive Mac can exfiltrate SSH keys, code signing certificates, corporate SSO session cookies, saved VPN credentials, and cryptocurrency wallet seed phrases within minutes of execution. In environments where Macs are used for privileged access — DevOps pipelines, cloud infrastructure management, financial systems — a single compromised endpoint can serve as a beachhead for lateral movement or supply chain compromise. The financial and reputational stakes are high, and the attack's low technical barrier means it scales easily with a modest Google Ads budget.
CypherByte's Perspective
This campaign crystallizes a trend that CypherByte has been tracking with growing concern: the migration of malware delivery from infrastructure exploitation to platform trust exploitation. Attackers are increasingly abandoning the cat-and-mouse game of standing up malicious domains — which get flagged, taken down, and blocklisted — in favor of embedding their operations within legitimate platforms whose reputations they can borrow indefinitely. We have observed similar patterns with Google Sites, GitHub Gists, Notion pages, and Pastebin. The addition of AI assistant shared-chat features to this toolkit represents a natural and troubling evolution.
The broader implication for macOS security is that Gatekeeper and notarization, while valuable, are not sufficient defensive controls against socially engineered manual execution. Apple's security architecture assumes an adversarial binary attempting to run autonomously; it has fewer controls over a human who has been persuaded to type a command into Terminal themselves. Security teams should not interpret the absence of a CVE here as an absence of risk. The attack surface is human psychology, and it is being targeted with increasing precision and resource investment. As AI platforms proliferate and their sharing features become ubiquitous, we expect this class of attack to intensify significantly through 2025 and beyond.
Indicators and Detection
Given the legitimate-platform-hosted nature of this campaign, traditional IOC-based detection is limited. However, defenders can look for the following behavioral and contextual signals:
Network and DNS indicators: Unusual outbound connections from macOS endpoints to newly registered or low-reputation domains following user-initiated curl or wget activity. Monitor for DNS queries to domains registered within the past 30 days that are accessed immediately after claude.ai in browser history.
Endpoint behavioral indicators: Terminal.app or bash process spawned outside of normal developer workflows, particularly if followed by file writes to /tmp/, ~/Library/LaunchAgents/, or ~/Library/Application Support/. Watch for chmod +x operations on recently downloaded files and any process attempting to modify or query the macOS Keychain outside of known applications.
User-reported indicators: Employees reporting that a "Claude download page" instructed them to run Terminal commands. This social engineering vector requires security awareness training to be part of your detection strategy.
curl or bash -c is executed via Terminal within 10 minutes of a browser session visiting a claude.ai/share/* URL that was accessed via a Google Ads click-through redirect.
Recommendations
For security teams and IT administrators:
1. Deploy macOS-specific EDR with behavioral rules. Ensure your endpoint detection coverage on macOS includes rules for suspicious Terminal activity, LaunchAgent persistence modifications, and Keychain access by unknown processes. Generic EDR rules tuned for Windows may miss macOS-specific attacker tradecraft.
2. Implement software installation policies via MDM. Use tools like Jamf or Mosyle to enforce allowlisting of approved applications and restrict the ability of standard users to disable Gatekeeper via System Preferences. Require administrator approval for all new software installations on corporate-managed Macs.
3. Run targeted security awareness training immediately. Specifically brief your user base on the tactic of legitimate-looking pages hosting malicious instructions. Emphasize that no legitimate software vendor will ask users to run Terminal commands to install software. This single heuristic, if internalized, defeats the social engineering component entirely.
4. Enable Google SafeSearch and ad filtering at the network layer. While not a complete mitigation, DNS-layer filtering and network-level ad blocking reduce exposure to malvertising as an initial access vector across the entire organization.
5. Report abusive Claude.ai shared chat URLs to Anthropic. If your organization identifies a Claude.ai shared chat URL being used to host malicious instructions, report it directly to Anthropic's trust and safety team. Platform-level takedown of the shared chat removes one link in the attack chain for all potential victims.
6. Monitor and alert on Google Ads click-throughs to AI platform domains. Work with your secure web gateway vendor to flag and log all traffic that arrives at AI platform shared content URLs via advertising redirects. This traffic pattern has a very low legitimate use rate and a growing malicious one.
Source: Original reporting by Bleeping Computer. CypherByte's analysis is based on publicly available threat intelligence and our independent research team's assessment of the described attack chain and its implications.
How this article was produced
This analysis was produced by CypherByte's automated research pipeline, starting from the published summary of the original report credited below. Articles are published automatically. It can include context and recommendations that are not in the original report, so read the original for the researchers' own findings.
Sources
Spotted an error? Tell us on X (@cypherbyteio) with this page's address so we can fix it.
CypherByte Premium is coming soon, with deep-dive writeups and a weekly threat briefing. Join the waitlist for founding member pricing.