← Google News

Malicious npm Package Stole Files From Claude AI User Directory via GitHub - The Hacker News

Google News · May 27, 2026
Malicious npm Package Stole Files From Claude AI User Directory via GitHub The Hacker News [truncated: Google News RSS provides only a snippet, not full article

Detailed Analysis

A malicious npm package discovered targeting Claude AI users represents a notable evolution in software supply chain attacks, specifically weaponizing the growing adoption of AI development tools. The package was designed to identify and exfiltrate files from the Claude AI user directory — a local directory typically containing sensitive data such as API keys, configuration files, session tokens, and potentially conversation history — using GitHub infrastructure as the exfiltration channel, likely to blend malicious traffic with legitimate developer activity.

The attack methodology reflects a sophisticated understanding of developer workflows. By distributing the payload through npm, the world's largest software registry with millions of daily downloads, attackers positioned themselves to compromise developers who integrate Claude's capabilities into their projects. GitHub served as an attractive exfiltration vehicle because outbound traffic to GitHub is rarely blocked by corporate firewalls or flagged by security tools, making the data theft difficult to detect through standard network monitoring. This technique of abusing trusted platforms for command-and-control or data exfiltration has become a hallmark of advanced supply chain campaigns.

The targeting of Claude-specific directories signals that AI tool users are increasingly attractive targets for threat actors. Claude's API keys, in particular, carry significant monetary value — they can be resold or used to run large-scale inference operations at the victim's expense. As enterprises accelerate their adoption of AI assistants and coding tools like Claude, the credentials and configurations stored locally by those tools represent a new and underappreciated attack surface. The specificity of this attack suggests adversaries are actively mapping the file system footprints of popular AI platforms.

This incident fits within a broader and accelerating trend of malicious packages targeting developer toolchains. Security researchers have documented thousands of malicious npm packages in recent years, with targets expanding from cryptocurrency wallets and cloud credentials to CI/CD pipeline secrets. The emergence of AI-specific targeting marks a logical next phase of this threat landscape. For Anthropic, the incident underscores the need for guidance to users about credential hygiene, local file permissions, and the risks of installing third-party packages that interact with Claude's environment. For the wider AI industry, it signals that the security community must begin treating AI tool directories with the same sensitivity historically reserved for SSH keys and cloud provider credentials.

Read original article →