What's Happening?
The North Korean state-sponsored hacking group, Sapphire Sleet, has been identified as the perpetrator behind a recent supply chain attack on the Mastra NPM packages. This attack, which took place on June 17, involved the publication of 141 malicious
packages containing a dependency named easy-day-js, a typosquat of the legitimate dayjs library. The attack targeted the Mastra ecosystem, an open-source TypeScript framework used for building AI agents and workflows. The compromised packages, which have around 8 million weekly downloads, were designed to execute a payload during installation, potentially affecting any developer workstation or CI/CD pipeline that ran npm install or npm update. The malware targeted Windows, macOS, and Linux systems, collecting system information and targeting over 160 cryptocurrency-related browser extensions.
Why It's Important?
This attack highlights the vulnerabilities in software supply chains, particularly in open-source ecosystems. The ability of hackers to compromise widely-used packages poses significant risks to developers and organizations relying on these tools. The attack's focus on cryptocurrency extensions underscores the financial motivations behind such cyber threats, as these extensions often manage sensitive data and assets. The incident serves as a reminder of the importance of securing software supply chains and the potential consequences of failing to do so. Organizations using the affected packages are advised to take immediate action to mitigate the risks, including removing compromised versions and securing their systems.
What's Next?
Affected users are urged to remove the compromised package versions, check their systems for malware, and secure their credentials and crypto-wallets. Cybersecurity firms have provided technical details and indicators of compromise to assist in these efforts. The incident may prompt further scrutiny and improvements in supply chain security practices, as well as increased collaboration between cybersecurity firms and developers to prevent similar attacks in the future.













