Massive VS Code Supply Chain Disaster: Popular Nx Console Extension Hijacked to Steal Developer Secrets Worldwide

Listen to this Post

Featured ImageIntroduction: A Silent Attack Hidden Inside a Trusted Developer Tool

A major cybersecurity incident has shaken the open-source development ecosystem after researchers uncovered a compromised version of a widely used Visual Studio Code extension. The attack targeted the Nx Console extension, a tool trusted by millions of developers worldwide to simplify and manage complex code workflows. What makes this breach especially dangerous is its stealth: the malicious code executed silently the moment a developer opened a workspace, turning a routine coding session into a full-scale credential theft operation.

Security researchers revealed that the compromised extension was not just a simple malware injection but a sophisticated, multi-stage supply chain attack. It leveraged GitHub infrastructure, obfuscated payloads, and advanced persistence mechanisms to extract sensitive developer data, including cloud credentials, API keys, and even enterprise secrets. The incident highlights the growing risk of software supply chain attacks targeting developer environments as a high-value entry point for cybercriminals.

📌 the Original Incident (Nx Console Supply Chain Attack Breakdown)

The cybersecurity breach involved a compromised version of the Nx Console VS Code extension, specifically version 18.95.0 of rwl.angular-console, which has over 2.2 million installations worldwide. While the Open VSX version remained unaffected, the VS Code Marketplace distribution was infected.

Researchers found that the malicious extension executed immediately after a developer opened any workspace. It silently downloaded a 498 KB obfuscated payload hidden in an orphan commit inside the official nrwl/nx GitHub repository. This payload functioned as a multi-stage credential stealer designed to harvest sensitive information and exfiltrate it through HTTPS requests, GitHub API abuse, and DNS tunneling techniques.

The malware went further by installing a Python-based backdoor on macOS systems, which used GitHub’s Search API as a hidden command-and-control mechanism. It collected credentials from sources such as 1Password vaults, npm tokens, AWS keys, GitHub authentication data, and even AI development tools like Anthropic Claude Code configurations.

To avoid detection, the malware included geographic exclusion rules, avoiding systems located in Russian and CIS regions. It also ran as a detached background process, ensuring persistence without user awareness.

Investigators discovered that the compromise originated from a developer whose machine had been previously breached, leading to leaked GitHub credentials. Attackers used these credentials to push a malicious orphan commit into the nx repository. The extension then triggered the payload automatically using the Bun JavaScript runtime.

Nx maintainers confirmed that some users were affected and advised immediate upgrades to version 18.100.0 or later. They also issued indicators of compromise, including suspicious files, processes, and system artifacts linked to “kitty-monitor” and hidden Python scripts.

This incident is not isolated. It follows a previous attack in 2025 known as the “s1ngularity” campaign, which also targeted the Nx ecosystem through npm packages, marking a continued pattern of supply chain exploitation.

At the same time, additional malicious npm packages were discovered across open-source ecosystems, including trojanized libraries that steal browser cookies, SSH keys, crypto wallets, Kubernetes secrets, and even inject remote access tools. Some packages impersonated legitimate SDKs, while others used post-install scripts to deploy hidden malware or LLM proxy hijacking tools.

What Undercode Say:

🧠 The Rise of Developer-Centric Cyber Warfare

This incident reinforces a major shift in cybercrime strategy: developers are now the primary target. Instead of attacking end users directly, threat actors are infiltrating tools like VS Code extensions, npm packages, and CI/CD pipelines. These environments hold the “keys to the kingdom,” making them far more valuable than individual devices.

🔗 Supply Chain Attacks Are Becoming the Default Entry Point

The Nx Console compromise demonstrates how attackers no longer need to brute-force systems. Instead, they exploit trust relationships in software ecosystems. A single compromised developer account was enough to inject malicious code into a widely trusted repository, proving how fragile modern open-source supply chains have become.

⚙️ Execution at Workspace Load: A Dangerous New Tactic

Triggering malware immediately when a workspace opens is particularly alarming. This eliminates the need for user interaction and ensures instant execution. By leveraging Bun runtime and obfuscated scripts, attackers ensured that the payload runs faster than most security tools can react.

🧩 Multi-Stage Payload Complexity Signals Advanced Threat Actors

The attack was not a simple credential grabber. It used layered execution stages, obfuscation, and environmental checks. This level of sophistication suggests well-resourced threat actors capable of maintaining long-term infrastructure for stealth operations and repeated exploitation.

🌍 Geo-Blocking Shows Intentional Target Selection

By avoiding systems in Russian and CIS regions, the malware reveals deliberate targeting behavior. This is a common tactic among organized cybercriminal groups to reduce exposure to local law enforcement or geopolitical retaliation.

🔐 Cloud and AI Credentials Become High-Value Targets

The malware’s focus on AWS, GitHub, npm, and AI tools like Claude Code highlights a shift in what attackers consider valuable. Modern development environments now integrate AI, cloud APIs, and automation tools—each becoming a potential entry point for large-scale compromise.

🧬 GitHub as a Weaponized Infrastructure Layer

Using GitHub’s Search API as a command-and-control channel is a notable evolution. It blends malicious traffic with legitimate developer activity, making detection extremely difficult for traditional security systems.

📦 Open-Source Ecosystem Contamination Is Expanding

The discovery of additional malicious npm packages confirms that this is not an isolated attack. Instead, it is part of a broader ecosystem-level contamination effort targeting JavaScript and DevOps supply chains.

⚠️ Trust Collapse in Extension Ecosystems

VS Code extensions are often installed without deep scrutiny due to their convenience. This incident exposes how that trust can be weaponized, turning productivity tools into stealth malware delivery systems.

🧨 Long-Term Risk: Persistent Developer Environment Compromise

Because the malware targets credentials, tokens, and system-level secrets, the impact extends far beyond a single machine. Compromised credentials can lead to downstream attacks on cloud infrastructure, production systems, and enterprise repositories.

🔍 Fact Checker Results

🔍 Extension Compromise Confirmed

✔ The Nx Console extension (rwl.angular-console v18.95.0) was confirmed to be compromised in the VS Code Marketplace.

🔍 Multi-Stage Credential Theft Verified

✔ Researchers verified that the payload exfiltrated secrets using HTTPS, GitHub API abuse, and DNS tunneling methods.

🔍 Broader npm Malicious Package Campaign Exists

✔ Multiple npm packages were independently confirmed to contain credential stealers, RATs, and data exfiltration tools.

📊 Prediction

📊 Expansion of Developer Supply Chain Attacks

The attack pattern strongly indicates that similar breaches will increase across VS Code extensions, npm libraries, and AI development tools. Attackers will continue exploiting trust-based ecosystems rather than direct system infiltration.

📊 Increased Security Enforcement in Package Registries

Platforms like npm, GitHub, and VS Code Marketplace are likely to implement stricter verification, signed commits, and real-time behavioral scanning to prevent similar incidents.

📊 Shift Toward AI-Assisted Malware Detection Arms Race

As attackers increasingly use obfuscation and AI-related tools, defensive systems will also evolve toward AI-driven threat detection capable of analyzing runtime behavior rather than static code alone.

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

References:

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