Socket Firewall Protection for VS Code and Open VSX Extensions Is Now Generally Available

Socket Firewall Enterprise now protects VS Code and Open VSX extensions with granular security policies, malware blocking, cooldowns, and enforcement telemetry.

  • John Tuckner
8 min read
Socket Firewall Protection for VS Code and Open VSX Extensions Is Now Generally Available

We've spent much of this year investigating malicious code editor extensions and building better ways to prevent them from reaching developers' machines. Today, I'm excited to announce that Socket Firewall protection for VS Code and Open VSX extensions is generally available to Enterprise customers.

With this release, organizations can enforce security policies, block malicious extensions and compromised updates, apply cooldowns to newly published versions, and monitor extension security events through their existing Socket Firewall deployment. We're extending the protection available for open source packages to the extensions developers install in VS Code, Grok Build (formerly Cursor), Devin (formerly Windsurf), VSCodium, and other popular code editors.

Installing software from inside a code editor has become incredibly convenient. For the security teams responsible for managing that software across an organization, the experience has been considerably less so.

In May, a compromised version of the popular Nx Console VS Code extension led to the compromise of a GitHub employee's machine and the exfiltration of approximately 3,800 internal GitHub repositories. The malicious version was available on Microsoft's marketplace for just 18 minutes. Developers who already had the extension installed could receive the malicious code through automatic updates without taking any action.

In October, the Socket Threat Research Team uncovered a GlassWorm-linked cluster spanning four VS Code Marketplace and six Open VSX extensions, including two confirmed malicious extensions. Several presented themselves as ordinary color themes while containing executable JavaScript unnecessary for their advertised functionality.

In late October, attackers compromised Cursor's extension marketplace to distribute malicious versions of the Claude Code extension, demonstrating that even when the upstream registry is unaffected, the infrastructure serving extensions can become an attack vector.

Extensions can have access to much of the same information developers do, including source code, credentials, and environment variables. We want organizations to have more control over what gets installed in these environments without having to maintain exhaustive lists of approved extensions and versions.

Enterprise Security Controls for Editor Extensions

#

When we first introduced extension blocking in closed beta in June, we focused on preventing malicious extensions from reaching developers' machines. In October, we expanded our coverage with Socket's native security scanning for VS Code Marketplace extensions. There were still two major pieces we wanted to deliver: the ability for organizations to configure their own security policies and the visibility to understand what those policies were blocking.

If you've ever been responsible for managing extensions at an organization with hundreds or thousands of developers, you probably have some appreciation for how quickly an extension allowlist can turn into a full-time job. There are a lot of extensions out there, and their code can change considerably between versions. We'd much rather give security teams the ability to manage the risks they care about than have them spend their days reviewing extension IDs.

With today's release, we're bringing configurable policy enforcement and centralized telemetry to both extension marketplaces through Socket Firewall Enterprise's self-hosted Registry Mode. Customers now have access to the following capabilities:

  • Registry Mode support: Protect both VS Code Marketplace and Open VSX through a single self-hosted Firewall deployment, with support for serving extensions directly from Open VSX to Grok Build (formerly Cursor) through its custom marketplace configuration.
  • Malware and threat prevention: Block malicious extensions and compromised updates before installation.
  • Granular security policies: Enforce 22 security alert types, including extension-specific capabilities and manifest attributes, with ecosystem-specific triage rules.
  • Extension cooldowns: Enforce minimum publication age requirements for newly released extension versions.
  • Marketplace filtering: Automatically exclude extensions and versions that violate organizational security policies from marketplace results.
  • Enforcement telemetry: Monitor extension security events through the Socket dashboard, Firewall logs, webhooks, and SIEM integrations.

Granular Security Policies for Editor Extensions

#

Looking at extension manifests can be a surprisingly entertaining exercise. How many extensions need to activate every time you open your editor? Does that extension really need to run when you open an untrusted workspace? And why is your color theme executing shell commands?

There are often perfectly reasonable answers to these questions (perhaps less so for that last one). Having the information available makes it much easier to establish sensible policies around extension usage.

With Socket Firewall, organizations can make policy decisions based on these capabilities. They can block extensions that exhibit certain behaviors and use triage rules to accommodate legitimate development tools that require them.

Socket security policies can block extensions based on known malware detections as well as extension-specific security risks, such as broad activation events.

There are 22 security alert types available for policy enforcement across VS Code Marketplace and Open VSX:

Capabilities

  • Filesystem access
  • Network access
  • Shell access
  • Environment variable access
  • Uses eval
  • URL strings
  • Install scripts

Extension Manifest

  • VS Code: Proposed APIs Enabled
  • VS Code: Broad activation events
  • VS Code: Workspace file pattern activation
  • VS Code: Untrusted workspaces support
  • VS Code: Virtual workspaces support
  • VS Code: Webview contribution
  • VS Code: Debugger contribution
  • VS Code: Extension dependency
  • VS Code: Extension pack

Binaries, Malware, and Threats

  • Native code
  • Known malware
  • AI-detected potential malware
  • AI-detected potential security risk
  • AI-detected potential code anomaly

Publication Age

  • Recently published

In addition to analyzing the code distributed with an extension, Socket analyzes its manifest. There is quite a bit we can learn about how an extension interacts with the editor from this file alone, including when it activates, which editor features it contributes to, and which other extensions it brings into the environment.

Extension packs and dependencies are especially interesting from a supply chain security perspective. In March, we identified 72 malicious Open VSX extensions linked to the GlassWorm campaign, where attackers were exploiting these relationships to distribute malware. An extension could establish a user base with seemingly harmless code and subsequently introduce a malicious extension dependency through an update.

Socket's analysis of a malicious Solidity language extension identifies malware alongside shell access, dynamic code execution, broad activation events, and other security risks.

These alerts can be managed through an organization's existing Socket security policies, with ecosystem-specific triage rules for exceptions.

Cooldowns Now Available for VS Code and Open VSX Extensions

#

One of the nice things about code editor extensions is that I rarely have to think about updating them. One of the unfortunate costs associated with that convenience is that attackers can distribute malicious code to an established user base without asking anyone to install anything new.

We've had cooldowns in Socket Firewall for open source packages for some time, and I'm happy to say we now support them for code editor extensions as well.

Organizations can configure a minimum publication age through Socket's Recently published security policy. When a cooldown is enforced, newly released extension versions are blocked until the configured period has elapsed.

With metadata filtering enabled, developers can continue installing older versions that satisfy the organization's security policies while newer releases remain unavailable.

Although this extension was updated four hours earlier, the newest version available for installation through Socket Firewall is three days old.

I'm generally quite happy running a three-day-old version of an extension if the alternative is having my syntax highlighter make off with my AWS credentials and SSH keys.

Given that the malicious Nx Console release was available for just 18 minutes, even a one-hour cooldown could have prevented its installation.

Giving a new extension version some time before it reaches your developers' machines creates an opportunity for automated malware detection, security researchers, maintainers, and marketplace operators to identify and respond to malicious releases.

Cooldowns are particularly valuable because they provide a layer of protection against attacks we don't know about yet.

Security Enforcement at the Registry Level

#

This release also brings extension protection to Socket Firewall in much the same way that customers already use it to protect their open source package installations.

Socket Firewall operates between developers' code editors and the upstream extension marketplaces. Organizations configure their editors to retrieve extensions through the Firewall, where requests are evaluated against their security policies.

Socket Firewall rewrites marketplace download URLs so extension artifacts are retrieved through the Firewall. Downloads are evaluated against the specific extension, version, and platform build being requested, including requests for pinned versions and direct VSIX downloads routed through the Firewall.

Extensions published under the same name can contain different code across marketplaces, versions, and operating system builds. Socket evaluates these artifacts independently.

Organizations can choose how they want blocked extensions to appear within developers' editors:

  • With metadata filtering enabled, extensions and versions that violate security policies are excluded from the marketplace results presented to developers.
  • With metadata filtering disabled, extensions remain discoverable, but download requests that violate security policies are blocked. The editor displays its native error message.

In both configurations, the Firewall enforces security policies before serving extension artifacts.

This also covers extension updates and centrally provisioned extensions when their download requests are routed through Socket Firewall. IT teams can continue managing developer environments through their existing provisioning workflows, with Socket enforcing security policies as extensions are downloaded.

Centralized Visibility Into Extension Security Events

#

Blocking malware is great, but as someone investigating an incident, I'd also like to know that 15 developers tried to install it that morning.

With this release, extension-related enforcement events are available through the same reporting infrastructure customers already use for Socket Firewall.

Blocked extension requests appear in the Events page of the Socket dashboard, alongside security events from other software ecosystems. Organizations can also consume extension enforcement data through existing Firewall logs, webhooks, and SIEM integrations.

Blocked VS Code extension requests appear alongside other Firewall events in the Socket dashboard.

Security teams can investigate attempted downloads, review the policies responsible for blocking them, and identify where potentially malicious extensions are being requested within their organization.

For teams already monitoring open source supply chain risks through Socket Firewall, editor extension security can now become part of those same workflows.

Getting Started With Extension Protection

#

VS Code Marketplace and Open VSX protection is available today in Socket Firewall Enterprise's self-hosted Registry Mode.

Existing customers can protect both marketplaces through a single Firewall deployment by updating to version 2.16.0 or later and configuring the appropriate registry routes. Organizations can centrally manage extension marketplace routing through editor settings or network-level configuration.

I've spent a fair amount of time talking to security teams about the challenges of managing extensions, and I'm excited about bringing this functionality into a product that's already protecting developers from malicious open source packages.

If you're already using Socket Firewall Enterprise, check out our configuration reference for VS Code and Open VSX extension routes to get started.

If you're interested in deploying Socket Firewall across your organization, we'd love to hear from you.

Stay ahead of threats

Subscribe to our newsletter

Get notified when we publish new security blog posts!