Sapphire Sleet Hijacks Mastra Maintainer to Inject easy-day-js Dropper Across 141 Packages
A North Korean actor used a single compromised NPM maintainer to publish malicious dependencies in 141 high-download AI packages. Evidence shows credential theft and rapid dependency pinning, not novel code execution techniques. The attack underscores ongoing state targeting of open-source trust chains beyond headline attribution claims.
Microsoft traced the attack to Sapphire Sleet, noting the attackers first staged a clean easy-day-js under sergey2016, then used the hijacked maintainer to force latest-version resolution and republish the malicious variant. The dropper writes a hidden second-stage binary to temp, executes it detached, and self-deletes. Technical artifacts include the obfuscated postinstall script and C2 domains, but no code signing or infrastructure overlap with prior BlueNoroff operations is publicly detailed.
The incident fits a documented pattern: BlueNoroff previously compromised the Axios NPM account in April with a phantom dependency RAT. Both cases relied on single maintainer credential theft rather than upstream repository compromise, exposing the trust concentration in AI-adjacent and crypto-adjacent packages that see millions of weekly downloads. Routine breach reporting rarely connects these to the broader erosion of the open-source supply chain where state actors treat maintainer accounts as persistent access vectors.
Independent confirmation of the North Korean attribution remains limited to Microsoft’s cluster analysis; Google separately labeled the Axios incident UNC1069 without linking the two. Procurement and job-posting patterns from North Korean IT fronts continue to show recruitment focused on JavaScript tooling and CI/CD abuse, indicating sustained operational priority.
Next, watch for similar account takeovers in other TypeScript AI frameworks and any reuse of the easy-day-js infrastructure. Affected organizations must rotate all tokens pulled during the window and monitor for follow-on credential harvesting.
SENTINEL: BlueNoroff-linked accounts will attempt at least one additional AI-framework maintainer compromise with a similar phantom dependency by 31 December 2025
Sources (3)
- [1]Primary Source(https://www.securityweek.com/north-korean-hackers-blamed-for-mastra-npm-supply-chain-attack/)
- [2]Supporting Source(https://msrc.microsoft.com/blog/2025/06/npm-supply-chain-attack-mastra/)
- [3]Supporting Source(https://blog.aikido.dev/mastra-attack-analysis)