Socket Firewall blocks malicious updates to VS Code extensions

This article has been automatically translated.
Loading article...
Merry Christmas & Happy New Year!
Loading article...
Teams usually lock down npm dependency installs tightly, yet few people manage editor extension auto-updates. But extensions get roughly the same permissions as the developer: source code, credentials, and environment variables are all within their view. Socket is a software supply chain security vendor, and on December 1, 2026, its Socket Firewall Enterprise announced that protection for VS Code and Open VSX extensions is generally available (GA). The takeaway is direct: extension installs and updates can now be blocked by policy, delayed by a cooldown period, and recorded in audit logs, just like dependency packages.
In its announcement, Socket looked back at the Nx Console incident in May of this year: a poisoned version of a VS Code extension compromised the machine of a GitHub employee, and about 3,800 internal repositories were exfiltrated. That malicious version was live on the Microsoft marketplace for only 18 minutes.
The key point is that developers who already had the extension installed didn't need to do anything—auto-update would deliver the malicious code to their machines. That means the gates you set at the npm layer do nothing here: the attack goes through the editor's own update channel.
There were two other notable cases in October. Socket's threat research team found a cluster linked to GlassWorm spanning four VS Code Marketplace extensions and six Open VSX extensions, two of which were confirmed malicious; several masqueraded as ordinary color themes but carried executable JavaScript unrelated to any theme functionality. At the end of the month, attackers compromised Cursor's extension marketplace and distributed a malicious version of the Claude Code extension—showing that even when the upstream registry itself is fine, the infrastructure that distributes extensions can still be an attack surface.
To understand how this works, think of it like a company mailroom: every package delivered to the office gets opened and inspected, rather than waved through based on the sender's name alone. The limit of this analogy is that the inspection only holds if all mail really does go through the mailroom.
Specifically, Socket Firewall is deployed between the developer's code editor and the upstream extension marketplace. Organizations configure their editors to fetch extensions through the firewall, and the firewall rewrites the marketplace download URL so that extension artifacts are retrieved through it. Requests are evaluated per specific extension, version, and platform build, including version-pinned requests and direct VSIX downloads.
There's an easily overlooked detail here: an extension with the same name may be completely different code across marketplaces, versions, and operating system builds, and Socket evaluates each artifact separately. So coverage is per artifact, not per name.
If you can only add one rule first, cooldown offers the best value. It defends against attacks no one has discovered yet: it holds back newly published versions for a period, giving automated detection, security researchers, maintainers, and marketplace operators time to find and respond.
Socket's announcement notes that against the Nx Console malicious version that existed for only 18 minutes, even a one-hour cooldown could have prevented installation. Once enabled, newly published extension versions are blocked until the configured time has passed; if metadata filtering is also enabled, developers can still install older versions that comply with policy.
The other category is manifest rules. Socket provides 22 types of security alerts that can be used for policy enforcement, covering capabilities and manifest attributes, for example:
Why are manifests worth watching? Extension packs and dependencies are especially sensitive from a supply chain perspective. In March, Socket found 72 malicious Open VSX extensions linked to GlassWorm, and attackers used exactly this kind of dependency relationship to distribute malware: an extension can first build a user base with seemingly harmless code, then introduce a malicious dependency extension through some update.
The announcement also acknowledges that the manifest questions like "why does a color theme need to run shell commands" often have legitimate explanations. So policies need to be paired with ecosystem-specific triage rules that carve out exceptions for legitimate tools, and that manual cost is real.
Organizations can choose how blocked extensions appear in the editor:
In both configurations, the firewall enforces policy before serving the artifact. The same mechanism also covers extension updates and extensions distributed centrally through existing configuration flows—as long as the download request goes through the firewall.
Below is an actionable checklist; note that it checks whether the configuration is in effect, not an independent test of the product's effectiveness.
A few limitations are worth thinking through in advance. First, this is an Enterprise feature and depends on self-hosted Registry Mode, so small teams or organizations not using Socket Firewall can't just flip a switch. Second, upgrading versions and configuring routing is operations work in itself, not a single click.
Someone on the team always wants to use new versions the moment they come out; manifest rules will hit legitimate tools and require ongoing triage. Most important: the firewall only protects traffic that goes through it, and direct marketplace connections remain a gap. The compromised Cursor marketplace shows that an intact upstream registry isn't enough, but it also means the protection only holds if every editor hands its requests to the firewall.
If the team is very small, extensions are manually reviewed by a few people, or editors are already centrally managed some other way, this may not be the top priority right now. But for organizations already using Socket Firewall to manage open source dependencies and with hundreds or thousands of developers, bringing extensions into the same policy and alerting workflow is a sensible way to close a long-neglected path.