Axios Supply Chain Attack: Malicious npm Versions Linked to North Korean Hackers

Listen to this Post

Featured Image

Introduction: When Trusted Code Turns Against You

Open-source software has long been the backbone of modern development, powering everything from startups to enterprise systems. But what happens when one of the most trusted libraries becomes a weapon? On March 31, 2026, the widely used Axios HTTP client, downloaded over 70 million times weekly, became the center of a sophisticated supply chain attack. Two seemingly legitimate updates were quietly weaponized, turning routine package installations into gateways for remote system compromise. This incident highlights a growing and dangerous trend in cybersecurity, where attackers exploit trust rather than vulnerabilities.

Summary: A Silent and Sophisticated Breach

On March 31, 2026, two malicious versions of Axios, specifically 1.14.1 and 0.30.4, were released to npm. These versions appeared legitimate but secretly included a harmful dependency called [email protected]. This dependency was not used in the application logic but instead executed automatically during installation via a post-install script. Without requiring any user interaction, it connected to a command-and-control server controlled by a threat group known as Sapphire Sleet.

Once connected, the malicious code downloaded a second-stage payload tailored to the victim’s operating system, targeting Windows, macOS, and Linux environments. Each platform received a different form of malware: PowerShell scripts on Windows, native binaries on macOS, and Python scripts on Linux. These payloads enabled remote access, allowing attackers to monitor systems, execute commands, and maintain persistent control.

The attack was carefully engineered to avoid detection. The malicious dependency was introduced in stages to build legitimacy, starting with a clean version before adding hidden functionality. The Axios packages themselves were only modified in their dependency lists, leaving their core code untouched. This made the compromise extremely difficult to detect through normal code reviews.

Execution occurred silently during npm install or update processes, meaning developers and CI/CD pipelines were equally vulnerable. Once installed, the malware used obfuscation techniques to hide its behavior and connected to a single command-and-control endpoint that dynamically delivered payloads based on the operating system.

Persistence mechanisms were implemented differently across platforms. On Windows, registry keys ensured the malware ran on startup. On macOS, binaries were stored in system cache directories and executed in the background. On Linux, scripts were dropped in temporary directories and executed silently. After deployment, the installer removed traces of its activity and restored clean-looking files to evade forensic analysis.

Microsoft attributed the attack to Sapphire Sleet, a North Korean state-sponsored group known for targeting financial and cryptocurrency sectors. Their goal is typically financial gain through theft of sensitive data, credentials, and digital assets.

To mitigate the damage, users were urged to downgrade Axios immediately to safe versions, rotate all credentials, and disable automatic package updates. Additional recommendations included auditing systems for indicators of compromise, blocking suspicious network traffic, and reviewing CI/CD logs for unauthorized installations.

What Undercode Say: The Real Danger Behind Dependency Trust

This attack is not just about Axios. It represents a deeper and more systemic weakness in the modern software ecosystem. Developers have become heavily reliant on automated dependency management, trusting that package registries are inherently safe. This assumption is no longer valid.

The brilliance of this attack lies in its subtlety. Instead of modifying Axios directly, the attackers inserted a malicious dependency that executed during installation. This bypassed traditional code reviews and static analysis tools, which typically focus on runtime behavior rather than installation scripts. It is a reminder that the software supply chain includes not just code, but the entire lifecycle of how that code is delivered and installed.

Another critical issue is the widespread use of version ranges in package.json files. Symbols like ^ and ~ allow automatic updates, which are convenient but dangerous. In this case, they enabled the malicious versions to propagate rapidly across thousands of systems without any deliberate action from developers. Convenience became the attack vector.

The cross-platform nature of the malware also demonstrates a high level of sophistication. By delivering tailored payloads for Windows, macOS, and Linux, the attackers maximized their reach. This is no longer a targeted attack. It is scalable, automated, and designed for mass compromise.

The use of a single command-and-control endpoint with dynamic responses further simplified the attacker’s infrastructure while maintaining flexibility. This approach reduces operational complexity and makes detection harder, as all traffic appears to go to a single source.

From a defensive standpoint, this incident reinforces the importance of zero trust in software dependencies. Organizations must treat third-party packages as potential threats, not just tools. This includes auditing dependencies, disabling automatic updates, and using tools that can detect anomalous behavior during installation.

Another overlooked risk is CI/CD pipelines. These systems often run automated installs and have access to sensitive credentials. Compromising a pipeline can lead to widespread damage across an organization’s infrastructure. This attack specifically targeted that weakness.

The cleanup process is also more complex than it appears. Simply removing the malicious package is not enough. Systems must be thoroughly audited for persistence mechanisms, hidden files, and unauthorized network connections. Credentials must be rotated, and trust must be re-established across all affected systems.

Ultimately, this attack is a wake-up call. The open-source ecosystem is powerful, but it is also fragile. Trust is its foundation, and once that trust is exploited, the consequences can be severe.

Fact Checker Results

✅ Malicious Axios versions (1.14.1 and 0.30.4) were confirmed to include a harmful dependency triggering remote payload downloads.
✅ The attack has been attributed to the Sapphire Sleet group based on infrastructure and behavioral analysis.
❌ No evidence suggests Axios core source code itself was directly modified beyond dependency injection.

Prediction

🔮 Supply chain attacks will increasingly target installation processes rather than runtime logic, making them harder to detect.
⚠️ Developers and organizations will shift toward strict dependency pinning and reduced reliance on auto-updates.
🚨 Security tools will evolve to monitor npm install behaviors in real time, not just application execution.

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

References:

Reported By: www.microsoft.com
Extra Source Hub (Possible Sources for article):
https://www.stackexchange.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