Hijacked account compromises Mastra npm packages
A supply chain attack compromised over 140 @mastra/* npm packages after an attacker hijacked a former contributor's account to inject a malicious dependency, easy-day-js. The malware acts as a cross-platform information stealer targeting browser data and cryptocurrency wallets on Windows, macOS, and Linux.
Supply chain security remains the soft underbelly of open-source development, and even modern frameworks like Mastra are highly vulnerable to contributor-focused credential hijacking.
- –**Hijacked Credentials over Direct Compromise:** Attackers bypassed source code audits by compromising a former contributor's npm account, highlighting that developer account hygiene is as critical as code reviews.
- –**Sophisticated Multi-Stage Payload:** Using `easy-day-js` as a typosquatted middleman shows attackers are using indirect dependencies to evade detection by scanners that only inspect primary codebase changes.
- –**Cross-Platform Persistence & Stealer Activity:** The malware's ability to target Windows, macOS, and Linux, while harvesting credentials and crypto wallets, shows a high level of preparation and coordination.
DISCOVERED
3d ago
2026-06-17
PUBLISHED
4d ago
2026-06-17
RELEVANCE
AUTHOR
SocketSecurity