Cyber Security News

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

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 is a Security and privacy Reporter covering various data breach, cyber crime, malware, & vulnerability.

Recent Posts

Threat Actors Manipulate Search Results to Lure Users to Malicious Websites

Cybercriminals are increasingly exploiting search engine optimization (SEO) techniques and paid advertisements to manipulate search…

1 day ago

Hackers Imitate Google Chrome Install Page on Google Play to Distribute Android Malware

Cybersecurity experts have unearthed an intricate cyber campaign that leverages deceptive websites posing as the…

1 day ago

Dangling DNS Attack Allows Hackers to Take Over Organization’s Subdomain

Hackers are exploiting what's known as "Dangling DNS" records to take over corporate subdomains, posing…

1 day ago

HelloKitty Ransomware Returns, Launching Attacks on Windows, Linux, and ESXi Environments

Security researchers and cybersecurity experts have recently uncovered new variants of the notorious HelloKitty ransomware,…

1 day ago

RansomHub Ransomware Group Hits 84 Organizations as New Threat Actors Emerge

The RansomHub ransomware group has emerged as a significant danger, targeting a wide array of…

1 day ago

Threat Actors Leverage Email Bombing to Evade Security Tools and Conceal Malicious Activity

Threat actors are increasingly using email bombing to bypass security protocols and facilitate further malicious…

2 days ago