Thursday, February 27, 2025
Homecyber securityVS Code Extension with 9 Million Installs Attacks Developers with Malicious Code

VS Code Extension with 9 Million Installs Attacks Developers with Malicious Code

Published on

SIEM as a Service

Follow Us on Google News

Microsoft has removed two widely-used Visual Studio Code (VS Code) extensions, “Material Theme Free” and “Material Theme Icons Free,” from its marketplace after cybersecurity researchers discovered malicious code embedded within them.

These extensions, developed by Mattia Astorino (also known as equinusocio), had amassed nearly 9 million installations combined, with Astorino’s total extension downloads exceeding 13 million.

Following the removal, users received alerts notifying them that the extensions had been disabled for security reasons.

The investigation revealed that the malicious code was likely introduced through a compromised dependency or during a recent update.

This suggests a possible supply chain attack or unauthorized access to the developer’s account.

Researchers noted that themes like these should typically consist of static JSON files and not execute any code, making the presence of obfuscated JavaScript in the extensions a significant red flag.

Malicious Intent Uncovered

The malicious behavior was initially flagged by cybersecurity experts Amit Assaraf and Itay Kruk, who specialize in detecting harmful VS Code extensions.

The analysis revealed heavily obfuscated JavaScript code in the extensions, which included references to usernames and passwords.

Although the exact purpose of this code remains unclear due to its complexity, its presence was sufficient to warrant immediate action by Microsoft.

Astorino has denied any intentional wrongdoing, attributing the issue to an outdated Sanity.io dependency used since 2016.

He criticized Microsoft for not notifying him before removing the extensions, claiming that fixing the dependency would have been a quick process.

However, Microsoft’s independent analysis corroborated the researchers’ findings, leading to the removal of all extensions associated with Astorino from the marketplace.

Potential Risks and Recommendations

The incident underscores the risks posed by malicious components in software supply chains.

Threat actors often exploit open-source platforms like VS Code Marketplace to distribute harmful code under the guise of legitimate extensions.

In this case, developers who installed these compromised extensions may have unknowingly exposed sensitive information or systems to potential breaches.

To mitigate risks, developers are advised to uninstall all extensions published by equinusocio, including:

  • equinusocio.moxer-theme
  • equinusocio.vsc-material-theme
  • equinusocio.vsc-material-theme-icons
  • equinusocio.vsc-community-material-theme
  • equinusocio.moxer-icons.

This incident highlights the importance of scrutinizing third-party dependencies and maintaining robust supply chain security practices.

Developers should regularly audit their tools and avoid extensions with suspicious or obfuscated code.

Collect Threat Intelligence on the Latest Malware and Phishing Attacks with ANY.RUN TI Lookup -> Try for free

Aman Mishra
Aman Mishra
Aman Mishra is a Security and privacy Reporter covering various data breach, cyber crime, malware, & vulnerability.

Latest articles

Lotus Blossom Hacker Group Uses Dropbox, Twitter, and Zimbra for C2 Communications

The Lotus Blossom hacker group, also known as Spring Dragon, Billbug, or Thrip, has...

Squidoor: Multi-Vector Malware Exploiting Outlook API, DNS & ICMP Tunneling for C2

A newly identified malware, dubbed "Squidoor," has emerged as a sophisticated threat targeting government,...

Unpatched Vulnerabilities Attract Cybercriminals as EDR Visibility Remains Limited

Cyber adversaries have evolved into highly organized and professional entities, mirroring the operational efficiency...

Threat Actors Attack Job Seekers of Fortune 500 Companies to Steal Personal Details

In Q3 2024, Cofense Intelligence uncovered a targeted spear-phishing campaign aimed at employees working...

Supply Chain Attack Prevention

Free Webinar - Supply Chain Attack Prevention

Recent attacks like Polyfill[.]io show how compromised third-party components become backdoors for hackers. PCI DSS 4.0’s Requirement 6.4.3 mandates stricter browser script controls, while Requirement 12.8 focuses on securing third-party providers.

Join Vivekanand Gopalan (VP of Products – Indusface) and Phani Deepak Akella (VP of Marketing – Indusface) as they break down these compliance requirements and share strategies to protect your applications from supply chain attacks.

Discussion points

Meeting PCI DSS 4.0 mandates.
Blocking malicious components and unauthorized JavaScript execution.
PIdentifying attack surfaces from third-party dependencies.
Preventing man-in-the-browser attacks with proactive monitoring.

More like this

Lotus Blossom Hacker Group Uses Dropbox, Twitter, and Zimbra for C2 Communications

The Lotus Blossom hacker group, also known as Spring Dragon, Billbug, or Thrip, has...

Squidoor: Multi-Vector Malware Exploiting Outlook API, DNS & ICMP Tunneling for C2

A newly identified malware, dubbed "Squidoor," has emerged as a sophisticated threat targeting government,...

Unpatched Vulnerabilities Attract Cybercriminals as EDR Visibility Remains Limited

Cyber adversaries have evolved into highly organized and professional entities, mirroring the operational efficiency...