GlassWorm: Self-Propagating Malware Targets Developer Environments via VS Code and OpenVSX Extensions

GlassWorm, a self-propagating worm active since October 2025, compromised tens of thousands of developer environments via malicious VS Code and OpenVSX extensions, harvesting GitHub tokens, AI API keys, and cryptocurrency wallets.

Omar Al-Hakeem
Senior Cyber Threat Analyst | MENA Region3 min read
Developer workstation showing VS Code editor compromised by GlassWorm malware through a malicious extension

Developer workstation showing VS Code editor compromised by GlassWorm malware through a malicious extension

A highly sophisticated self-propagating worm known as GlassWorm has been actively targeting software developer environments through malicious extensions distributed via the Visual Studio Code Marketplace and the OpenVSX Registry. First identified in October 2025, the campaign compromised tens of thousands of developer workstations before a coordinated disruption operation brought its primary communication infrastructure offline in late May 2026.

GlassWorm represents a significant escalation in software supply chain attack methodology, specifically targeting the trust developers place in integrated development environment plugins. IDE extensions typically operate without strict sandboxing, granting them broad access to environment variables, local project files, and, increasingly, AI API keys stored in development configurations.

The malware's evasion technique sets it apart from conventional supply chain threats. Rather than embedding malicious code in ways that standard diff tools would flag, GlassWorm's authors concealed execution logic inside extension source files using invisible Unicode characters, specifically variation selectors and Private Use Area characters. To any reviewer examining the code manually or through automated diff tooling, the malicious lines appeared as empty whitespace. This approach allowed the malware to pass marketplace security reviews without triggering standard detection controls.

Once a developer installed a poisoned extension, GlassWorm initiated a broad credential harvesting sequence. It scanned the local environment for GitHub tokens, npm authentication tokens, OpenVSX tokens, and cryptocurrency wallet credentials. Modern development environments frequently store API keys for services such as OpenAI, Anthropic, and DeepSeek, and GlassWorm harvested these systematically to enable attackers to consume expensive AI inference compute at the victim's expense.

Following initial compromise, the malware used the stolen GitHub credentials to force-push malicious code into every repository the affected account had write access to. This self-propagating mechanism ensured that any developer subsequently cloning or updating those repositories would also become infected, dramatically accelerating the campaign's spread without requiring additional distribution infrastructure.

GlassWorm also built unusually resilient command-and-control infrastructure to resist takedown attempts. The attackers encoded server addresses into Solana blockchain transaction memo fields, stored configuration data on the BitTorrent network, and used Google Calendar event titles as covert dead drops. Later variants deployed GlassWormRAT, a remote access Trojan capable of capturing keystrokes, recording desktop screenshots, and installing a malicious Google Chrome extension to enable ongoing browser credential theft.

A coordinated disruption effort led by cybersecurity providers and international partners successfully neutralised GlassWorm's primary communication channels in late May 2026. However, the downstream risk remains active: compromised extensions may still reside on local developer machines that have not been fully audited since the disruption.

Security teams should treat any developer workstation where unverified VS Code or OpenVSX extensions were installed between October 2025 and May 2026 as potentially compromised. All AI API keys, GitHub tokens, npm tokens, and cloud infrastructure secrets associated with those environments should be rotated immediately. Organisations should also enforce an extension allowlist policy, prohibiting installation of extensions that have not been formally approved, and migrate plaintext credentials out of IDE plugin settings and into vault-backed secrets management systems where they can be retrieved securely at runtime.

The GlassWorm campaign is part of a broader and accelerating pattern of supply chain attacks targeting developer tooling. Earlier this year, Trellix confirmed unauthorised access to its own source code repository, while separate campaigns targeted npm packages and PyPI to deliver persistent implants across crypto and AI development environments. For GCC enterprises managing developer teams or software pipelines, these incidents reinforce that software supply chain security requires structured, proactive controls, not reactive responses to known indicators of compromise.

Omar Al-Hakeem

Senior Cyber Threat Analyst | MENA Region

Omar Al-Hakeem is a cybersecurity researcher specializing in threat intelligence, ransomware trends, and nation-state activity across the Middle East and North Africa. With over 12 years of experience in SOC operations and incident response, he provides deep technical breakdowns of emerging attacks and regional cyber risks. At MENA Cyber Wire, Omar focuses on real-world threat analysis and actionable defense strategies for enterprises and startups.

Intelligence Focus Areas

Threat IntelligenceSupply Chain SecurityDeveloper Security GCCMalware AnalysisCredential Theft