React Native Supply Chain Attack Infects Thousands via npm Packages

Listen to this Post

Featured Image

A Silent Threat Hidden in Everyday Installs

Modern development workflows rely heavily on open source packages, often installed in seconds with a single command. But that convenience can quickly turn into a serious security risk. On March 16, 2026, researchers uncovered a coordinated supply chain attack that exploited this exact trust model, targeting widely used React Native npm packages and silently infecting developers’ environments during routine installations.

A Coordinated Strike on Popular Packages

Security researchers identified that two popular React Native packages had been compromised almost simultaneously. The attacker targeted packages maintained by AstrOOnauta and released malicious versions within minutes of each other. This level of coordination strongly suggests deliberate planning rather than opportunistic compromise.

The affected packages included react-native-international-phone-number and react-native-country-select, both widely used in mobile development projects. With tens of thousands of monthly downloads, the potential reach of this attack was significant.

Malicious Versions Replace Clean Releases

The attackers replaced legitimate versions of the packages with malicious updates. These altered releases contained a payload that was byte-identical across both packages, indicating a shared attack infrastructure.

The infected versions appeared harmless at first glance, maintaining expected functionality while embedding hidden malicious behavior. Developers installing these updates had no immediate indication that anything was wrong.

Infection Begins at Installation

The attack was triggered during a standard npm install process. The malicious packages introduced a preinstall script into their configuration files, ensuring the attack executed automatically before the installation completed.

This script ran a hidden JavaScript file that initiated the first stage of the attack. Because preinstall hooks are a legitimate feature of npm, this method allowed the malware to operate without raising suspicion.

Multi-Stage Payload Delivery

Once executed, the initial script contacted a remote endpoint using the Solana blockchain infrastructure. Specifically, it queried a remote procedure call endpoint to retrieve a transaction memo containing a concealed URL.

This indirect method of retrieving instructions added an extra layer of stealth. Instead of hardcoding malicious URLs, the attacker dynamically fetched them, making detection and takedown more difficult.

Decryption and Final Payload Execution

After retrieving the second-stage payload, the malware obtained decryption keys required to unlock its final component. This final stage consisted of a Windows-focused stealer designed to extract sensitive data from the infected system.

The use of staged payloads ensured that even if one layer was detected, the full attack chain would remain partially hidden.

Persistence Mechanisms Embedded in the System

To maintain long-term access, the malware modified scheduled tasks and registry keys on the victim’s machine. These changes allowed it to persist even after system reboots.

In addition, the malware used a Google Calendar URL as another layer of indirection to fetch instructions. This tactic helped it blend in with normal traffic and avoid detection by traditional security tools.

Targeting Cryptocurrency and Developer Credentials

The primary goal of the malware was data theft. It scanned the system for browser profiles associated with Chromium and Firefox, focusing on extracting stored credentials and session data.

Particular attention was given to cryptocurrency wallets, including MetaMask, Phantom, and Trust Wallet. These targets suggest a strong financial motivation behind the attack.

Beyond crypto assets, the malware also executed commands to steal npm registry tokens and GitHub credentials. This created the possibility of further supply chain attacks, amplifying the impact.

Geographic Evasion Tactics

Interestingly, the malware included checks for system language and timezone settings. If it detected indicators associated with Russia, such as “ru_RU,” it would terminate immediately.

This behavior is commonly associated with Russian-speaking threat actors who avoid targeting systems within their own region to reduce legal risk.

Immediate Risk to Developers

Developers who installed the compromised versions of these packages were exposed to credential theft without any visible warning. Because the infection occurred during installation, even secure coding practices could not prevent the initial compromise.

The attack highlights how deeply supply chain vulnerabilities can penetrate development environments.

Recommended Mitigation Steps

Security experts recommend that developers immediately audit their environments if they have used the affected packages. The first step is to revert to the last known clean versions of the dependencies.

Additionally, all potentially exposed credentials should be rotated, including GitHub tokens, npm credentials, and any sensitive API keys stored on the system.

The Broader Implications of Supply Chain Attacks

This incident underscores a growing trend in cyber threats. Attackers are increasingly targeting the software supply chain because it provides access to a large number of victims through a single compromise.

Instead of attacking individual systems, adversaries compromise trusted tools and let the infection spread organically through developer workflows.

Trust as the Weakest Link

The npm ecosystem is built on trust. Developers assume that popular packages are safe, especially those with high download counts and active maintenance.

This attack demonstrates that even well-known packages can become attack vectors if their publishing process is compromised.

What Undercode Say:

The Shift Toward Developer-Focused Attacks

The attack reflects a clear shift in cybercriminal strategy toward targeting developers instead of end users. By compromising development tools, attackers gain access to multiple layers of the software ecosystem at once.

Blockchain as a Stealth Infrastructure

Using Solana RPC endpoints to deliver payload instructions is a clever evolution. Blockchain infrastructure is decentralized and difficult to shut down, making it an attractive channel for command and control operations.

Multi-Stage Payloads Increase Survivability

The layered design of this malware significantly improves its chances of success. Even if one stage is detected or blocked, the remaining stages can continue operating independently.

Living Off Trusted Services

The use of Google Calendar URLs adds another level of stealth. By leveraging trusted platforms, attackers reduce the likelihood of triggering security alerts.

Credential Theft as a Gateway

Stealing npm and GitHub credentials is not just about immediate gain. It enables attackers to propagate further supply chain attacks, turning victims into new distribution points.

Geographic Filtering Reveals Intent

The deliberate avoidance of Russian systems suggests the attackers are aware of jurisdictional risks. This behavior provides indirect clues about the origin or operational base of the threat actors.

The Weakness of Automated Install Processes

Automated installation scripts are a major vulnerability. Developers rarely inspect lifecycle scripts, allowing malicious code to execute unnoticed.

The Illusion of Popularity Equals Safety

High download numbers often create a false sense of security. This incident proves that popularity does not guarantee integrity.

Detection Challenges in Modern Attacks

Traditional security tools struggle to detect attacks that rely on obfuscation, staged payloads, and legitimate infrastructure. This requires a shift toward behavior-based detection.

Supply Chain Security Must Evolve

Organizations need stricter controls over dependency management. This includes version pinning, integrity checks, and continuous monitoring of third-party packages.

Developer Education Is Critical

Many developers are unaware of how npm lifecycle scripts work. Increasing awareness can help reduce the success rate of similar attacks.

The Expanding Attack Surface

As development ecosystems grow, so does the attack surface. Every dependency introduces potential risk, making supply chain security a top priority.

Attack Automation Is Increasing

The speed and coordination of this attack suggest automation. Attackers are likely using scripts to compromise and publish packages rapidly.

Future Attacks Will Be More Sophisticated

This incident is likely just the beginning. Future attacks may incorporate AI-driven obfuscation and even more advanced evasion techniques.

Security Must Be Built Into the Workflow

Reactive measures are no longer enough. Security needs to be integrated directly into development pipelines to detect threats before they execute.

Fact Checker Results

✅ The attack used npm preinstall scripts to execute malicious code during installation.

✅ The malware targeted cryptocurrency wallets and developer credentials.

❌ There is no confirmed attribution to a specific threat group yet.

Prediction

🔮 Supply chain attacks will increasingly target smaller maintainers with high-impact packages.
🔮 Blockchain-based command channels will become more common due to resilience.
🔮 Development environments will require built-in security scanning by default.

🕵️‍📝✔️Let’s dive deep and fact‑check.

References:

Reported By: cyberpress.org
Extra Source Hub (Possible Sources for article):
https://stackoverflow.com
Wikipedia
OpenAi & Undercode AI

Image Source:

Unsplash
Undercode AI DI v2
Bing

🔐JOIN OUR CYBER WORLD [ CVE News • HackMonitor • UndercodeNews ]

💬 Whatsapp | 💬 Telegram

📢 Follow UndercodeNews & Stay Tuned:

𝕏 formerly Twitter 🐦 | @ Threads | 🔗 Linkedin | 🦋BlueSky | 🐘Mastodon