Turning Modern Day IDEs Into Attack Vectors Via Malicious Extensions

Debjeet Banerjee (Researcher · Black Hills Information Security)

Insomni'hack 2026 · Day 1 · Main Track

Overview

Modern Integrated Development Environments (IDEs) have evolved far beyond simple text editors into powerful, feature-rich ecosystems powered by extensions, plugins, and integrated AI coding assistants. This talk by Debjeet Banerjee, a malware researcher and developer with Black Hills Information Security, explores how developers' workstations have become prime targets for initial access. Because developers possess high-value credentials, access to production environments, and proprietary source code, threat actors increasingly view their IDEs as high-return attack vectors capable of bypassing traditional Endpoint Detection and Response (EDR) solutions.

Watch on YouTube

Visual summary for Turning Modern Day IDEs Into Attack Vectors Via Malicious Extensions by Debjeet Banerjee
Visual summary for Turning Modern Day IDEs Into Attack Vectors Via Malicious Extensions by Debjeet Banerjee

Key moments

  1. 0:00 Introduction and spotting the difference exercise
  2. 2:05 Why target developers and rise of AI coding agents
  3. 4:32 Malicious campaigns: Malicious Corgi and Solidity extensions
  4. 11:15 Glass Form malware campaign and invisible Unicode characters
  5. 14:15 Going native with NodeJS add-ons and Rust
  6. 20:30 Backdooring a legitimate extension like live preview
  7. 28:30 Airport idea: Spoofing marketplace metadata and extension IDs
  8. 35:45 Indicators of compromise, detection, and prevention
  9. 38:00 Audience Q&A and sandbox discussion

Turning Modern Day IDEs Into Attack Vectors Via Malicious Extensions

Speakers: Debjeet Banerjee (Researcher, Black Hills Information Security)

Conference: Insomni'hack

YouTube: https://www.youtube.com/watch?v=vFNVZFfL3hw

Overview

Modern Integrated Development Environments (IDEs) have evolved far beyond simple text editors into powerful, feature-rich ecosystems powered by extensions, plugins, and integrated AI coding assistants. This talk by Debjeet Banerjee, a malware researcher and developer with Black Hills Information Security, explores how developers' workstations have become prime targets for initial access. Because developers possess high-value credentials, access to production environments, and proprietary source code, threat actors increasingly view their IDEs as high-return attack vectors capable of bypassing traditional Endpoint Detection and Response (EDR) solutions.

The presentation examines the evolution of malicious extensions from simple JavaScript-based data exfiltrators to sophisticated, native-code-executing backdoors. Banerjee demonstrates how threat actors impersonate legitimate tools—such as Solidity development packages and the Microsoft Live Preview extension—using typosquatting, invisible Unicode characters, and weaponized binary modules. Furthermore, the talk reveals a novel technique discovered by the speaker during a 16-hour flight: spoofing extension metadata on disk to inherit the Microsoft "blue tick of approval" and bypass visual detection cues entirely.

Understanding these mechanics is critical for security teams and defenders. As AI-assisted coding tools like Windsurf and Cursor proliferate—often drawing from alternative marketplaces like Open VSX that may lack the rigorous vetting of the official Visual Studio Marketplace—the attack surface expands. This article delves into the technical methodologies used to weaponize IDE extensions, execute native shellcode via Node.js add-ons, and detect these insidious threats.

Background

▶ Watch: Introduction and spotting the difference exercise (0:00)

Visual Studio (VS) Code has dominated the developer landscape for over a decade. Built on Electron, VS Code inherits the architecture of the Chromium rendering engine and the V8 JavaScript engine. While this framework provides cross-platform flexibility and a robust extension API, it also introduces specific architectural constraints—particularly regarding security boundaries.

Historically, red teams utilized Foreign Function Interface (FFI) libraries within Node.js to bridge JavaScript and operating system APIs. However, following Electron version 20 and subsequent V8 engine hardening, strict sandboxing and address sanitization broke many legacy FFI capabilities, forcing attackers to adapt. Concurrently, security telemetry often treated code originating from IDE processes as benign, creating a significant EDR blind spot. Attackers quickly realized that compromising a developer yields access to API keys, cloud secrets, and source code repositories, making initial access via IDE extensions vastly superior to traditional phishing payloads that trigger immediate behavioral alerts.

The rise of AI-driven coding agents (such as Cursor and Windsurf) has exacerbated this problem. These tools rely heavily on alternative extension registries like Open VSX due to Microsoft's strict licensing terms governing the official VS Code marketplace. Open VSX, while fostering developer productivity, lacks the massive multi-billion-dollar automated and manual malware-triage infrastructure of Microsoft, leading to recurring supply-chain incidents where malicious packages slip past review.

Key Findings

▶ Watch: Malicious campaigns: Malicious Corgi and Solidity extensions (4:32)

Banerjee highlights several prominent real-world malware campaigns that abused IDE extensions to target developers:

  • The Malicious Corgi Campaign: Early ChatGPT-era productivity extensions promised "10X coding" capabilities. Instead, malicious scripts in these extensions read opened and updated files, Base64-encoded the contents, and exfiltrated them to hidden tracking servers in China. They also established Command and Control (C2) channels capable of recursively harvesting workspace files while respecting .gitignore rules.
  • Solidity/Crypto Impersonation Attacks: Blockchain developers hold significant cryptocurrency assets, making them lucrative targets. Attackers repeatedly cloned a legitimate, 10-year-old Solidity extension written by Joan Fran Blanco. Documented campaigns by Kaspersky and others uncovered malicious clones that stole over half a million dollars by executing obfuscated PowerShell commands or establishing persistent C2 channels directly over the blockchain. Threat actors utilized classic typosquatting techniques, such as substituting lowercase l with uppercase I.
  • Glass Form Campaign: Moving beyond readable JavaScript and obfuscated PowerShell, the Glass Form malware campaign utilized invisible Unicode characters within extension source files. Researchers at Koi discovered that the extension source appeared blank to human reviewers, yet rendered executable malicious logic natively.
  • Material Icon Theme & Native Node Modules: Later iterations shifted toward loading compiled binary modules, forcing analysts into reverse-engineering native code using IDA Pro.

Technical Deep Dive

▶ Watch: Going native with NodeJS add-ons and Rust (14:15)

The technical core of modern malicious extension development centers around Node.js add-ons (.node files). Node.js add-ons are dynamically linked shared objects written in C++ (or Rust) that can be loaded into Node.js using the standard require() function.

On Windows, a .node file is structurally identical to a Dynamic Link Library (.dll). When Node.js executes require('module.node'), the underlying execution flow resolves through process.dlopen, uv_dlopen, and ultimately boils down to a native LoadLibraryExW OS API call. This allows an extension to bypass JavaScript-level sandboxes entirely by executing native OS-level instructions.

To simplify the creation of these native modules without wrestling with complex C++ build prerequisites and Visual Studio command prompts, Banerjee utilizes Rust paired with Neon RS (neon-rs). Rust provides a superior build system, seamless crate importing, and robust tradecraft capabilities.

Within a Rust-based Neon project, developers can write native functions (such as shellcode loaders utilizing Windows Win32 APIs) and export them directly to JavaScript:

Once built using npm install and npm run build, the resulting binary (index.node) is packaged into a .vsix extension bundle. When VS Code activates the extension via triggers defined in package.json, the malicious native module is loaded into memory, executing shellcode in a separate background process without disrupting the IDE's primary UI thread.

Demo / Proof of Concept

▶ Watch: Airport idea: Spoofing marketplace metadata and extension IDs (28:30)

Banerjee demonstrated a complete end-to-end attack lifecycle by backdooring a legitimate, open-source Microsoft extension: Live Preview.

  1. Target Selection: The Live Preview extension was chosen because it interacts directly with HTML files and runs in a separate process within VS Code, ensuring that crashes in the extension process do not crash the entire editor.
  2. Project Restructuring: The attacker matches the name of the custom Rust crate to the target extension module name, configures Webpack with custom loaders to handle native .node binaries without throwing build errors, and updates package.json activation events.
  3. Compilation & Packaging: Running npm install, npm run compile, and utilizing the Visual Studio Code Extension Packaging tool (vsce package) yields a weaponized .vsix file.
  4. Black Box Modification: Alternatively, if source code is unavailable, an attacker can download a .vsix file (which is fundamentally a .zip archive) via the Marketplace API, unzip it, drop in a malicious .node file, re-zip it, and distribute the modified package.

The resulting extension runs silently in the background, executing native shellcode while maintaining normal developer functionality.

Defensive Implications

▶ Watch: Audience Q&A and sandbox discussion (38:00)

Defending against malicious IDE extensions requires a multi-layered approach across endpoint, network, and administrative controls:

  • Monitor Native Binary Loading: Security teams should configure EDR solutions to flag .node files being loaded by Electron processes, treating them with the same scrutiny applied to unauthorized .dll injections.
  • Restrict VSIX Side-Loading: Organizations should restrict or audit the manual installation of extensions from .vsix files on developer workstations. Legitimate enterprise workflows rarely require ad-hoc side-loading from unverified sources.
  • Inspect Extension Source and Dependencies: Software Bill of Materials (SBOM) tooling must cover developer tooling and IDE extensions. Supply-chain attacks frequently target downstream dependencies within popular themes and icon packs rather than the primary extension codebase.
  • Enforce Marketplace Whitelisting: Organizations should restrict developers to a curated, pre-approved list of extensions sourced strictly from the official Visual Studio Marketplace, while implementing heightened monitoring for alternative registries.

Key Takeaways

  • High-Value Attack Surface: Developers possess production credentials, API keys, and repository access, making their IDEs prime initial access vectors that routinely evade legacy EDR detection.
  • Native Code Execution: Modern extension malware has evolved beyond simple JavaScript scripts and obfuscated PowerShell to loading compiled .node binaries (written in C++ or Rust) that execute native OS APIs.
  • Marketplace Risks: Alternative extension registries like Open VSX face fewer rigorous automated and manual malware vetting controls than the official Microsoft marketplace.
  • Metadata Spoofing: Attackers can manipulate local extension configuration files (extension.json and package.json) on disk to spoof source identifiers and inherit trusted publisher markers, bypassing visual inspection cues.
  • Defensive Visibility: Security teams must audit .node file loading within Electron applications and restrict the manual side-loading of .vsix packages in corporate environments.

About the Speaker(s)

  • Debjeet Banerjee (Researcher, Black Hills Information Security): Debjeet is a researcher at Black Hills Information Security who develops malware and builds automation pipelines for engagements. As a hobby, he dives into IDA disassemblies and WinDBG to find complex ways to evade EDRs and challenge reverse engineers.

Reviews

→ Top-rated talks at Insomni'hack 2026

All talks from Insomni'hack 2026