Security Community Warns of Malicious VS Code Extension

A malicious extension for the popular code editor VS Code has been discovered posing as a legitimate tool. A social media user warned that the discovery has shocked the security community, highlighting the financial and operational risks associated with unverified software in development environments.

- One recent malicious extension, "prettier-vscode-plus," impersonated the popular "Prettier" code formatter. It served as an entry point for a multi-stage malware attack that deployed a remote access trojan (RAT) named OctoRAT, capable of file theft, surveillance, and privilege escalation. - Attackers frequently disguise malicious extensions as productivity tools, AI assistants, or themes to lure developers. In one campaign, a threat actor known as TigerJack distributed 11 malicious extensions, including "C++ Playground" and "HTTP Format," which were downloaded by over 17,000 developers to steal source code and mine cryptocurrency. - The VS Code Marketplace is a primary vector for these attacks, as threat actors exploit the trust developers place in the official repository. In one experiment, researchers successfully uploaded a typo-squatted copy of a popular extension that collected and exfiltrated system information, highlighting potential gaps in the review process. - The impact of these extensions goes beyond individual developer machines, representing a significant supply chain risk. By compromising a developer's environment, attackers can inject malicious code into legitimate software, potentially affecting thousands of downstream users and organizations. - Malicious extensions have been used to exfiltrate a wide range of sensitive data, including source code, API keys, cryptocurrency wallets, browser sessions, and Slack messages. Some malware even captures screenshots of the developer's machine, providing attackers with a direct view of their activity. - In February 2025, Microsoft removed two popular extensions, 'Material Theme – Free' and 'Material Theme Icons – Free,' which had been collectively installed nearly 9 million times, after malicious code was discovered within them. The code was suspected to have been introduced through a compromised dependency, a common supply chain attack technique. - Security researchers have also identified vulnerabilities in highly popular, legitimate extensions that could be exploited for remote code execution and file theft. Flaws in extensions like "Live Server" and "Code Runner," with a combined download count of over 100 million, exposed developers to significant risks. - The Visual Studio Marketplace does employ security measures such as malware scanning for each extension package, signature verification to ensure integrity, and secret scanning to prevent credentials from being published. However, the scale of the marketplace presents an ongoing challenge.

Get your own daily briefing

Scout delivers personalized news, insights, and conversations tailored to your role and industry.

Download on the App Store

Shared from Scout - Be the smartest in the room.