Cyber Risks · The Hacker News

Malicious npm Packages Harvest Crypto Keys, CI Secrets, and API Tokens

Summary: Socket disclosed an active supply chain campaign it codenamed SANDWORM_MODE, using at least 19 malicious npm packages published under the aliases official334 and javaorg to harvest credentials, environment secrets, API keys, and cryptocurrency keys from developer environments. The malware propagates through stolen npm and GitHub identities, includes a weaponized GitHub Action that exfiltrates CI/CD secrets, and carries an McpInject module that targets Claude Code, Claude Desktop, Cursor, VS Code Continue, and Windsurf and harvests API keys for nine LLM providers.

What's compelling: The second stage stays dormant for 48 hours plus up to 48 more hours of per-machine jitter, so a package that looks clean at install time has already had two days to spread through your npm and GitHub tokens before deeper harvesting begins. The embedded prompt injection reads ~/.ssh/id_rsa, ~/.aws/credentials, ~/.npmrc, and .env files through AI coding assistants your developers already trust.

Read the original at The Hacker News ↗

Topics
AI Security
Related