Malicious Actor Uses Anthropic’s Claude to Generate Over 670 Poisoned npm Packages
A recent security incident reveals how an attacker leveraged Anthropic’s Claude AI model to automate the creation of malicious npm packages, threatening the open-source software supply chain and highlighting growing AI-driven cybersecurity risks.

AI-Powered Malware Campaign Targets npm Ecosystem
A recent cybersecurity incident has exposed a growing threat at the intersection of artificial intelligence and open-source software supply chains. Security researchers have identified a coordinated campaign in which a malicious actor leveraged Anthropic’s Claude large language model to automate the creation and distribution of over 670 poisoned npm packages.
How the Attack Works
Monitored by security analyst Sibi Moosa, the campaign was orchestrated by a developer operating under the handle “mousie-5212-super-formatter.” By utilizing Claude’s code generation capabilities, the attacker rapidly produced highly structured malicious scripts. These packages were designed to silently harvest sensitive developer credentials, including npm authentication tokens and GitHub access keys, as well as exfiltrate source code from private corporate repositories. Stolen data was automatically routed to attacker-controlled remote servers.
Lowering the Barrier to Cybercrime
This incident underscores a critical shift in the threat landscape: generative AI is acting as a force multiplier for cybercriminals. Historically, crafting sophisticated supply chain malware required advanced programming expertise and significant time investment. AI coding assistants have dramatically lowered this barrier, enabling threat actors to automate vulnerability exploitation, generate polymorphic code, and scale attacks at unprecedented speeds.
Implications for Software Supply Chain Security
Traditional security defenses, particularly those relying on static signature-based detection, are increasingly ineffective against AI-generated malware. The high variability and contextual adaptability of LLM-produced code make it difficult for automated scanners to flag malicious payloads before they reach end users. Security experts warn that this marks the beginning of an intelligent era for software supply chain attacks, where AI-driven automation will likely become standard practice for threat actors.
The Path Forward
As AI programming tools become ubiquitous across the development community, the tech industry faces an urgent mandate to establish robust AI security governance. This includes implementing stricter package verification protocols, enhancing behavioral analysis for dependency managers, and developing detection frameworks specifically tuned to identify AI-generated malicious patterns. The npm ecosystem incident serves as a stark reminder that while AI accelerates legitimate innovation, it simultaneously demands a parallel evolution in defensive cybersecurity strategies.