← Google News

Malware dev tries to steal Claude users' secrets, writes npm slop, leaks own GitHub private token - The Register

Google News · May 27, 2026
Malware dev tries to steal Claude users' secrets, writes npm slop, leaks own GitHub private token The Register [truncated: Google News RSS provides only a snippet, not full article

Detailed Analysis

A malware developer targeting users of Anthropic's Claude AI assistant created malicious npm packages designed to harvest sensitive secrets, only to expose their own GitHub private token in the process — an embarrassing operational security failure that likely compromised the attacker's own infrastructure. The incident, reported by The Register, represents a growing category of threat in which bad actors attempt to exploit the expanding ecosystem of developer tools built around large language model APIs. Claude users, particularly developers integrating the assistant into workflows via API keys and programmatic tooling, represent an attractive target given that stolen credentials can enable costly unauthorized usage or expose sensitive data processed through the model.

The attack vector — malicious npm packages — is consistent with a well-documented pattern of supply chain poisoning that has accelerated alongside the proliferation of AI development tooling. As developers increasingly build Claude-integrated applications using JavaScript and Node.js ecosystems, they naturally seek npm packages that promise to streamline authentication, context management, or API interaction. Attackers exploit this demand by publishing typosquatted or deceptively named packages that appear legitimate but contain credential-harvesting payloads. The characterization of the packages as "npm slop" in The Register's headline suggests the code quality was poor, possibly generated hastily or with AI assistance itself, which did not prevent it from posing a real threat to unsuspecting developers.

The attacker's self-inflicted leak of a GitHub private token is both ironic and instructive. Private tokens embedded in source code or configuration files — even accidentally committed to repositories — are among the most common and consequential secrets exposed in modern software development. The fact that a threat actor engaged in credential theft made precisely this mistake underscores that operational security failures are universal, transcending the attacker-defender divide. It also potentially handed investigators or security researchers a significant lead, as GitHub tokens can be traced to specific accounts, repositories, and associated identities.

The broader significance of this incident lies in what it reveals about the threat landscape surrounding AI platforms. As Claude and similar assistants gain adoption among enterprise developers and individual power users, the associated API keys and secrets become high-value targets. Anthropic and the wider AI industry face increasing pressure to educate users about securing credentials, implement anomaly detection for unusual API usage patterns, and coordinate with package registries like npm to detect and remove malicious tooling. The incident also reinforces calls for automated secret scanning in development pipelines, a practice that would have protected both the targeted Claude users and, somewhat fittingly, the attacker themselves.

This episode fits into a broader trend of AI-adjacent supply chain attacks that have intensified since 2023, as the commercial success of large language model APIs created an entirely new class of developer credential worth stealing. Security researchers have documented numerous campaigns targeting OpenAI, Anthropic, and other AI provider credentials via malicious packages, fake SDKs, and phishing infrastructure. The combination of high monetary value — unauthorized API usage can incur significant charges — and the sensitive nature of data often passed through AI systems makes these credentials uniquely attractive, ensuring that such attacks will continue to evolve in sophistication even as individual campaigns, like this one, are undone by their authors' own carelessness.

Read original article →