The images in this article were generated with artificial intelligence. How we publish
Microsoft has with high confidence attributed to the operation the recent commitment of the supply chain of Mastra in npm to the North Korean threat known as Sapphire Sleet (BlueNoroff), after a malicious actor took control of a maintenance account and published updates that introduced a malicious dependence. The exploited vector combines classic techniques of typosquating- the fraudulent dependence "easy-day-js" imitated the popular dayjs bookstore - with the abuse of the installation hook to run a dropper looking for credentials and cryptomoneda keys in development environments.
The technical mechanism is especially harmful to developer environments: the installation of compromised packages triggered a post-install hole which deployed a dropper opfuscado, deactivated the TLS verification, contacted control and control servers and downloaded a second multiplatform stage. That second binary acts as a stealer able to cover Windows, macOS and Linux, list processes and browser extensions and check the presence of up to 166 extensions of wallets(MetaMask, Phantom, Coinbase Wallet, among others), as well as establishing persistence through registration keys, LaunchAgens or systemd services according to the system.

The activity profile and re-use of tactics, techniques and procedures - including a backdoor in PowerShell and the creation of exclusions in Microsoft Defender - are consistent with previous campaigns attributed to Sapphire Sleet, and fit the group's known motivation: the theft of critical assets and credentials. This incident is not isolated: Microsoft had already identified other commitments in the npm ecosystem during 2026, which shows a trend of state actors exploiting confidence in maintainers and open source packages.
The implications are multiple. In technical terms, compromising a maintainer account or a wide scope like @ mastra allows to distribute malicious code to many projects practically automatically, turning developers into vectors for the exfiltration of secrets and tokens. At the organizational level, it erodes confidence in the software supply chain: organizations that incorporate units without additional controls risk introducing back doors, loss of funds and exposure of corporate credentials.
The immediate measures that teams and developers should take include revoking tokens and credentials that may have been exposed, audiating development machines and CI by persistencies and commitment indicators, and rebuilding from clean artifacts if there is a suspicion of infection. It is also critical to remove or freeze compromised versions in the records and to communicate to the affected community to avoid further facilities.
In parallel, controls should be applied to reduce the likelihood and impact of future incidents: multifactor authentication and minimum access policies in publishing accounts, limit and rotate publication tokens with attached privileges, and deploy package integrity verification (Lockfiles and Checksums) in CI pipelines. Disable post-install hooks in automated environments or run them in controlled sandboxes reduces the exploitable surface by malicious packages.

Software composition analysis tools (SCA), package signing, access control private records and SBOMs generation help to detect and contain compromised dependence before they reach production. In addition, attack simulation tests and outbound traffic monitoring can identify communications with C2 infrastructure and early exfiltration patterns. For practical guidance on supply chain security, organizations can review the official recommendations of specialized agencies such as CISA: https: / / www.cisa.gov / supply-chain.
Packaging maintainers and administrators are also responsible: using robust passwords and 2FA, reviewing account activity with publication permits and auditioning unit changes before accepting updates is essential. npm publishes guides and good practices that any computer that depends on the Javascript ecosystem should follow: https: / / docs.npmjs.com /.
This episode reiterates that the security of modern software depends on both individual hygiene (credentials, MFA, isolated environments) and organizational controls (dependency policies, safe CI, monitoring and response). To adopt an in-depth defence and to prepare response procedures that include the rotation of secrets and the reconstruction of assets is committed to the ability to contain sophisticated campaigns such as those attributed to Sapphire Sleet.
Related
More news on the same subject.

Campaign at Hugging Face Spaces and GitHub uses game traps to steal passwords and sessions
A massive campaign has used Hugging Face Spaces pages and GitHub repositories to attract players with supposed traps and bots and push them to install malware that steals browse...

Canada detects NEXCOL intrusion and suspension of export permits
The Canadian government confirmed that its online system to manage permits for the export of military material and strategic goods, known as NEXCOL, suffered an intrusion detect...

CertiK shows Weight2Shell: identical weights, different outputs by inference environment
CertiK security researchers have demonstrated a technique - called Weight2Shell in their report - that allows two instances of the same artificial intelligence model, carrying i...

RabbitMQ: critical failure in the management interface exposes tokens OAuth2; patches 4.4.1 / 4.3.8
A critical vulnerability in RabbitMQ allows an attacker who has access to the management interface to get tokens OAuth2 signed by the identity provider without credentials and t...

Critical Vulnerability in Erlang / OTP client TLS allows MITM without certificate (CVE-2026-124286)
A critical vulnerability to the client implementation of TLS within Erlang / Open Telecom Platform (OTP) allows a malicious server to complete a TLS 1.2 handshake without presen...

pCloud Pass: cyber attack exposes emails from few users; undecipher encrypted vaults
This week pCloud Pass, the password manager integrated into the Swiss pCloud service, confirmed that it was the target of a "cyber attack" after several users reported early log...

SOCRadar identifies WeaveLotus / RedOps campaign in intrusions to Thailand and the Philippines
SOCRadar has published an analysis that attributes a series of intrusions to military, government and legislative institutions in South-East Asia to a set of tools and activitie...