A recent discovery made by a group of security researchers revealed that Microsoft’s Visual Studio Code (VSCode) Marketplace hosts thousands of malicious extensions, which can easily spread due to the company’s lack of control. The specialists experimented by uploading a malicious extension to the VSCode Marketplace and succeeded in “infecting” over a hundred companies and users, including a major publicly traded company, several security providers, and a government judicial system.
The extension used in the experiment was a “typosquat” version of the popular theme “Dracula Official,” a color scheme that allows developers to add a dark mode to applications. This modified version included a script linked to a fake website that collected system information, such as the hostname, number of installed extensions, device domain name, and operating system. The data was sent to a remote server through an HTTPS POST request.
The spread of this extension was facilitated because Microsoft marked it as “legitimate,” which allowed endpoint detection and response (EDR) tools to not detect its malicious nature, as they generally allow this type of extension from the VSCode Marketplace.
A deeper investigation revealed that the VSCode Marketplace contains thousands of public extensions with malicious code. Of these, 1,283 have known malicious code and have already been installed 229 million times. In addition, 8,161 extensions communicate with encoded IP addresses, 1,452 execute unknown .exe files, and 2,304 use repositories on GitHub from other editors, and are considered imitations.

Researchers have expressed concern about Microsoft’s lack of control over the code and extensions available in the VSCode Marketplace. The Redmond company has already received criticism for several security issues in VSCode, including vulnerabilities that allowed cybercriminals to impersonate legitimate extensions in order to steal authentication tokens.
To address these issues, security researchers are developing a free tool called “ExtensionTotal,” which will allow developers to scan their environments for malicious extensions in VSCode. So far, Microsoft has not made any statement regarding this.