North Korea's Sapphire Sleet poisoned the Mastra AI developer toolkit
According to Bleeping Computer, Microsoft has confirmed that the North Korean hacking group Sapphire Sleet — also known as BlueNoroff — carried out a supply chain attack (where attackers tamper with software before it reaches the end user, rather than hacking users directly) against Mastra AI, a framework developers use to build AI-powered applications.
The attackers first compromised a legitimate npm account — npm being the package registry where JavaScript developers download code libraries. With that account's publishing rights in hand, they pushed malicious updates to more than 140 packages. Each poisoned package quietly installed a fake dependency called easy-day-js, designed to look like the real and widely-trusted dayjs date library. It is the software equivalent of swapping out a jar of coffee for one laced with something worse, then putting it back on the shelf.
Once a developer installed any of the affected packages, the malicious code ran automatically during setup, disabled security certificate checks, contacted attacker-controlled servers, and dropped a second-stage payload. That payload ran invisibly in the background and went hunting: browser history, installed apps, running processes, and 166 cryptocurrency wallet browser extensions including MetaMask, Coinbase Wallet, and Binance Wallet.
The malware targeted Windows, macOS, and Linux. On compromised machines, Microsoft also observed a PowerShell backdoor and a malicious Windows service granting the highest level of system access. Microsoft attributes this attack to Sapphire Sleet with high confidence, noting the same group carried out a separate npm supply chain attack against the Axios HTTP client in April 2026.
What to do: If you work with JavaScript or AI development tools, audit your recent npm installs for any @mastra scoped packages. Rotate any API keys, authentication tokens, or credentials stored on affected machines. Check whether Microsoft Defender has had any exclusions added that you did not authorise.
Sources

