VSCode extensions pulled over security risks, but millions of users have already installed

hacker.jpeg
(Image credit: TR)

  • Security researchers found malicious code hiding in two VSCode extensions
  • Microsoft quickly pulled them and notifies users
  • The developer criticized Microsoft's move, saying they were never consulted

Microsoft has pulled two popular VSCode extensions from its marketplace after finding malicious code hiding inside. However, the original developers don’t seem to be the culprits, and have slammed Microsoft for its harsh reaction which, they claim, caused more harm than good.

Two security researchers - Amit Assaraf and Itay Kruk - used a specialized scanner to analyze extensions in Visual Studio Marketplace, and have found obfuscated malicious code in “Material Theme - Free” and “Material Theme Icons - Free”, two extensions built by one Mattia Astorino (AKA equinusocio).

BleepingComputer analyzed parts of the code and said that in the "release-notes.js" files in the theme, there was “heavily obfuscated JavaScript, which is always a red flag in open-source software.” Apparently, they managed to partially deobfuscate the code, which “showed numerous references to usernames and passwords”, but couldn’t determine the context in which they were being mentioned.

Microsoft's move

Assaraf added the malicious code was most likely added in an update, suggesting either the developer’s account was compromised, or the malware was added in a supply chain attack.

Since the two extensions have roughly nine million downloads, combined, Microsoft’s reaction was swift: "Microsoft removed both extensions from the VS Code marketplace and banned the developer," a Microsoft employee said in YCombinator's Hacker News.

"A member of the community did a deep security analysis of the extension and found multiple red flags that indicate malicious intent and reported this to us. Our security researchers at Microsoft confirmed this claims and found additional suspicious code."

"We banned the publisher from the VS Marketplace and removed all of their extensions and uninstalled from all VS Code instances that have this extension running. For clarity - the removal had nothing to do about copyright/licenses, only about potential malicious intent."

Astorino acknowledged the findings, but also criticized Microsoft for not reaching out to him first:

"Nothing harmful was ever shipped within Material Theme," he said in a post on Microsoft's VSMarketplace repository. "We just had an outdated sanity.io dependency used since 2016 to show release notes from sanity headless CMS, that was the only issue they found."

"That dependency has been there since 2016 and passed every check since then, now it looks compromised but NO ONE from Microsoft reached us to remove it. They just pulled down everything causing issues to millions of users, and causing a loop in vscode (yep, it's their fault)"

"They broke everything without ever reaching out to us for clarification. Removing the old dependency was a quick 30-second fix, but it seems that's just how Microsoft operates. We also ship an obfuscated index.js file that contains all the theme commands and logic. It's obfuscated because the extension is now closed-source; however, if you delete it, the extension will still function with plain JSON files."

In an even quicker counter-move, Astorino completely rewrote the extension without any dependencies, and named it “Fanny Themes”, but Microsoft allegedly removed that one too.

Via BleepingComputer

You might also like

Sead is a seasoned freelance journalist based in Sarajevo, Bosnia and Herzegovina. He writes about IT (cloud, IoT, 5G, VPN) and cybersecurity (ransomware, data breaches, laws and regulations). In his career, spanning more than a decade, he’s written for numerous media outlets, including Al Jazeera Balkans. He’s also held several modules on content writing for Represent Communications.

You must confirm your public display name before commenting

Please logout and then login again, you will then be prompted to enter your display name.

Read more
chrome firefox extensions
Google Chrome extensions hit in major attack - dozens of developers affected, so be on your guard
Pirate skull cyber attack digital technology flag cyber on on computer CPU in background. Darknet and cybercrime banner cyberattack and espionage concept illustration.
Microsoft reveals over a million PCs hit by malvertising campaign
HTTPS in a browser address bar
Malicious "polymorphic" Chrome extensions can mimic other tools to trick victims
An abstract image of digital security.
Hundreds of GitHub repositories hijacked to trick users into downloading malware
Chrome icon on Android
Google Chrome extensions hack may have started much earlier than expected
A graphic showing someone on a tablet working through a supply chain.
Security issue in open source software leaves businesses concerned for systems
Latest in Security
Isometric demonstrating multi-factor authentication using a mobile device.
NCSC gets influencers to sing the praises of 2FA
Sam Altman and OpenAI
OpenAI is upping its bug bounty rewards as security worries rise
A stylized depiction of a padlocked WiFi symbol sitting in the centre of an interlocking vault.
Dangerous new CoffeeLoader malware executes on your GPU to get past security tools
China
Notorious Chinese hackers FamousSparrow allegedly target US financial firms
A digital representation of a lock
NYU website defaced as hacker leaks info on a million students
NHS
NHS IT supplier hit with major fine following ransomware attack
Latest in News
Nintendo Switch 2 Joy-Con up-close from app store
Nintendo's new app gave us another look at the Switch 2, and there's something different with the Joy-Con
cheap Nintendo Switch game deals sales
Nintendo didn't anticipate that Mario Kart 8 Deluxe was 'going to be the juggernaut' for the Nintendo Switch when it was ported to the console, according to former employees
Three angles of the Apple MacBook Air 15-inch M4 laptop above a desk
Apple MacBook Air 15-inch (M4) review roundup – should you buy Apple's new lightweight laptop?
Witchbrook
Witchbrook, the life-sim I've been waiting years for, finally has a release window and it's sooner than you think
Amazon Echo Smart Speaker
Amazon is experimenting with renaming Echo speakers to Alexa speakers, and it's about time
Shigeru Miyamoto presents Nintendo Today app
Nintendo Today smartphone app is out now on iOS and Android devices – and here's what it does