GlassWorm Malware Targets Developers via VS Code

New 'GlassWorm' Malware Spreads Via VS Code Extensions

HIGH
October 23, 2026
5m read
MalwareSupply Chain AttackThreat Intelligence

Related Entities

Organizations

Products & Tech

Other

GlassWormVeracodeKoi Security

Full Report

Executive Summary

A new malware strain named GlassWorm is targeting the developer community through malicious extensions for Microsoft's popular Visual Studio (VS) Code editor. Security researchers report that GlassWorm is a multi-functional threat, combining the capabilities of a worm and an information stealer. Its primary goal is to exfiltrate sensitive data from developer workstations, including browser passwords, API tokens, and cryptocurrency wallets. The malware's ability to self-propagate raises serious concerns about its potential to initiate broader software supply chain attacks by compromising code repositories and development pipelines.


Threat Overview

  • Malware Name: GlassWorm
  • Malware Type: Worm, Information Stealer
  • Delivery Vector: Malicious Visual Studio Code extensions, primarily distributed through third-party marketplaces like Open VSX.
  • Targets: Software developers and their workstations.
  • Primary Goal: Steal credentials, developer tokens, and cryptocurrency wallet data.

GlassWorm represents a sophisticated threat tailored to its target environment. By embedding itself in VS Code extensions, it exploits the trust developers place in their tools and the ecosystem's extensibility. Once an infected extension is installed, the malware activates and begins its data theft and propagation routines.


Technical Analysis

GlassWorm's dual nature makes it particularly dangerous.

As an Information Stealer:

  • It systematically scans the infected machine for sensitive data.
  • Browser Data: Targets saved logins, cookies, and browsing history from popular web browsers.
  • Developer Tokens: Searches for hardcoded API keys, access tokens, and secret keys in configuration files (.env), shell history (.bash_history), and specific application directories (e.g., .aws/credentials, .git-credentials).
  • Cryptocurrency: Looks for wallet files (e.g., wallet.dat) and browser extensions associated with crypto wallets.

As a Worm:

  • The exact propagation mechanism is still under analysis, but it likely involves one of two methods:
    1. Project Contamination: The worm could inject malicious code into the projects the developer is working on. When another developer pulls the code and builds the project, their machine becomes infected.
    2. Network Spreading: It may attempt to spread across the local network by exploiting weak permissions on file shares or using stolen credentials to access other machines.

The malware has also been observed in campaigns targeting macOS users with trojanized cryptocurrency wallet applications, indicating the actors behind it are versatile.

MITRE ATT&CK Techniques:


Impact Assessment

The potential impact of a GlassWorm infection is severe. For an individual developer, it means the loss of personal and financial data. For an organization, a compromised developer machine is a critical security incident. The stolen developer tokens could give attackers access to:

  • Source Code Repositories (GitHub, GitLab): Allowing theft of intellectual property or injection of malicious code into products.
  • Cloud Infrastructure (AWS, Azure, GCP): Leading to a full cloud environment compromise, data breaches, and cryptojacking.
  • CI/CD Pipelines: Enabling attackers to poison the software build process, creating a widespread supply chain attack affecting all downstream customers.

IOCs — Directly from Articles

No specific, actionable IOCs like hashes or C2 domains were provided in the source articles.


Cyber Observables — Hunting Hints

  • Extension Auditing: Regularly audit installed VS Code extensions. Look for extensions with few downloads, no reviews, or from unknown publishers. Check the permissions they require.
  • Network Traffic: Monitor for outbound connections from Code.exe or node.exe processes to unusual or non-whitelisted IP addresses. This could indicate data exfiltration.
  • File System: Monitor for unexpected modifications to project source files or the creation of suspicious files in developer home directories, especially hidden ones.

Detection & Response

  • EDR and Antivirus: Ensure endpoint protection is running and up-to-date on all developer workstations. Create custom detections for processes reading sensitive files like .aws/credentials.
  • Immediate Response: If an infection is suspected, the security advice is critical: DO NOT try to remove the malware from the infected machine first. Instead:
    1. Isolate the machine from the network.
    2. From a separate, clean device, change all passwords for critical services (email, GitHub, AWS, etc.).
    3. Rotate all API keys, tokens, and secrets.
    4. Only then, proceed to re-image the compromised machine from a known-good state.
  • D3FEND Techniques: Employ D3-SFA - System File Analysis to monitor for unexpected reads/writes to credential files like ~/.ssh/id_rsa or .git-credentials.

Mitigation

  • Extension Vetting: Create an organizational policy for vetting and approving VS Code extensions. Maintain an internal allowlist of trusted extensions.
  • Use Official Marketplaces: Encourage developers to download extensions only from the official Microsoft VS Code Marketplace, which has more rigorous security scanning than some third-party alternatives.
  • Secrets Management: Do not store secrets (passwords, tokens, keys) in code or configuration files. Use a dedicated secrets management solution like HashiCorp Vault or AWS Secrets Manager.
  • Principle of Least Privilege: Ensure developer accounts (both human and service accounts) have only the minimum permissions necessary to perform their roles. This limits the damage an attacker can do with stolen tokens.

Timeline of Events

1
October 21, 2026
A threat intelligence platform observes an indicator related to GlassWorm activity.
2
October 23, 2026
This article was published

MITRE ATT&CK Mitigations

Restrict developers from installing unvetted VS Code extensions. Maintain an internal repository or allowlist of approved, secure extensions.

Implement and enforce the use of secrets management tools. Prohibit storing credentials and tokens in plaintext files.

Apply the principle of least privilege to developer accounts and API tokens to limit the impact of a credential theft incident.

Utilize containerized development environments to isolate projects and prevent malware from accessing the host system or other projects.

D3FEND Defensive Countermeasures

The core defense against threats like GlassWorm is to eliminate the target: unsecured credentials. Organizations must enforce a strict policy against storing secrets (API keys, tokens, passwords) in source code, configuration files, or environment variables. Instead, developers should be required to use a centralized secrets management solution like HashiCorp Vault, AWS Secrets Manager, or Azure Key Vault. These tools provide secure storage, fine-grained access control, auditing, and dynamic rotation of secrets. VS Code extensions for these services allow developers to securely access secrets at runtime without ever exposing them in plaintext on their workstation. This removes the primary objective of GlassWorm and renders its information-stealing capabilities largely ineffective.

To prevent the initial infection, organizations should apply the concept of allowlisting to the VS Code ecosystem. Instead of letting developers install any extension from public marketplaces, the company should maintain a private, internal repository of vetted and approved extensions. A security team would be responsible for analyzing new extensions for malicious behavior before adding them to the allowlist. This can be enforced via policy and tooling, preventing VS Code from installing extensions from any other source. This approach directly counters GlassWorm's delivery mechanism and significantly reduces the attack surface presented by the highly extensible developer environment.

For advanced threat hunting, security teams can deploy decoy developer environments, or honeypots. These would be virtual machines set up to look like a real developer's workstation, complete with fake source code projects and decoy credentials (e.g., fake AWS keys, GitHub tokens). These decoy tokens would be monitored by a service like Canary Tokens. If GlassWorm infects this honeypot and exfiltrates and uses a decoy token, the security team receives an immediate, high-fidelity alert that they are being targeted. This provides invaluable early warning and intelligence on the attacker's TTPs and infrastructure, allowing the team to build proactive defenses before real developer machines are compromised.

Timeline of Events

1
October 21, 2026

A threat intelligence platform observes an indicator related to GlassWorm activity.

Sources & References

Article Author

Jason Gomes

Jason Gomes

• Cybersecurity Practitioner

Cybersecurity professional with over 10 years of specialized experience in security operations, threat intelligence, incident response, and security automation. Expertise spans SOAR/XSOAR orchestration, threat intelligence platforms, SIEM/UEBA analytics, and building cyber fusion centers. Background includes technical enablement, solution architecture for enterprise and government clients, and implementing security automation workflows across IR, TIP, and SOC use cases.

Threat Intelligence & AnalysisSecurity Orchestration (SOAR/XSOAR)Incident Response & Digital ForensicsSecurity Operations Center (SOC)SIEM & Security AnalyticsCyber Fusion & Threat SharingSecurity Automation & IntegrationManaged Detection & Response (MDR)

Editorial Standards & Analyst Review

CyberNetSec.io uses automation to assist source monitoring, deduplication, observable extraction, and structured intelligence generation. Published analysis follows human-defined editorial standards and adds defensive context including MITRE ATT&CK, D3FEND, STIX, and Sigma where applicable. Read our editorial policy.

Tags

malwareglasswormvisual studio codevs codesupply chain attackdeveloper securitycredential theft

📢 Share This Article

Help others stay informed about cybersecurity threats

🎯 MITRE ATT&CK Mapped

Every tactic, technique, and sub-technique used in this threat has been identified and mapped to the MITRE ATT&CK framework for consistent, actionable threat language.

🧠 Enriched & Analyzed

Observables and indicators of compromise (IOCs) have been extracted and cataloged. Risk has been assessed and correlated with known threat actors and historical campaigns.

🛡️ Actionable Guidance

Detection rules, incident response steps, and D3FEND-aligned mitigation strategies are included so your team can act on this intelligence immediately.

🔗 STIX Visualizer

Structured threat data is packaged as a STIX 2.1 bundle and can be visualized as an interactive graph — relationships between actors, malware, techniques, and indicators.

⚡ Sigma Generator

Sigma detection rules are derived from the threat techniques in this article and can be converted for deployment across any major SIEM or EDR platform.