Material theme compromised?

· GitHub ·

13 min read Original article ↗

Activity

  1. callistoprime commented on Feb 26, 2025

    @callistoprime

    Posted 8 hours ago at the above link is this message from Microsoft below; reposting here to provide context missing from above.

    Hi - Isidor here from the VS Code team.
    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.
    Expect an announcement here with more details soon https://github.com/microsoft/vsmarketplace/

  2. equinusocio commented on Feb 26, 2025

    @equinusocio

    Dear Gegtor (@gegtor) nothing harmful was ever shipped within Material Theme.
    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)

    SEE
    Image

    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.

    We have now published a new theme that should have originally been called Material Theme Pro. This is a completely rewritten extension, offering more features and icons, and it has zero dependencies. Feel free to check it out to enjoy the same look and feel as the old Material Theme.

    Reacted by Kevin, MicroBlock, Scot_Survivor, taskylizard, Tim, Michelle, ゆそら, Gyungchae Han, Matías Juarez, Claudio Wunder and 31 more

    Reacted by Matthew Bricker, Pascal Höhnel and r✦n

  3. std-microblock commented on Feb 26, 2025

    @std-microblock

    We also ship an obfuscated index.js file which includes all the theme commands and logic. Is obfuscated only because the extension is "now" closed-source, but if you delete it, the extension still works with plain json files.

    LMAO that sounds even more suspicious. Why should the js ever exists and even obfuscated if most of user are not using it?

    and do you mean that someone accuse you for distributing virus in your open-sourced code and your response is removing all the open-sourced code, even clearing commit history and after all these chaos claiming your plugin is completely safe?

    I do not believe the discovery of malicious code in Material Theme at first, but now it seems reasonable just because you are having a guility conscience.

    Disclaimer: I didn't checked any code yet, and I hope it's just a misunderstanding so that none of us would be in danger.

    Reacted by Jonathan Salomo, Cameron Harbrecht, Scot_Survivor, bunnyhero, Raúl Esteban, Michelle, ゆそら, Alison M, Victor Ireri, Matías Juarez and 24 more

    Reacted by BestCodes and Lucas Oliveira

  4. riverar commented on Feb 26, 2025

    @riverar

    Theo states that he has "thoroughly audited the code base (nothing seemed malicious)" (source). Perhaps this is about an earlier commit tree, but it's unclear.

    This raises questions about what led Microsoft to pull the extension and ban the user. It's also concerning that the original author claims Microsoft has not reached out to him directly.

    Eager to hear more!

  5. equinusocio commented on Feb 26, 2025

    @equinusocio

    Theo states that he has "thoroughly audited the code base (nothing seemed malicious)" (source). Perhaps this is about an earlier commit tree, but it's unclear.

    This raises questions about what led Microsoft to pull the extension and ban the user. It's also concerning that the original author claims Microsoft has not reached out to him directly.

    Eager to hear more!

    Spoiler: the person who posted on hackernews and member of the vscode team is a friend or a direct contact of Theo, probably. They banned us directly, even the extensions that were not using the souspicius old dependency (Ian Clarke (@sanity)).

    Reacted by Gabs Simonetti, Eduardo Cereto Carvalho, MicroBlock, BestCodes, Shawn Huang, Aozaki, ChouUn, 馆长缠流子, Reece Butler, Echo1 and 1 more

    Reacted by Vamist and r✦n

  6. ovflowd commented on Feb 26, 2025

    @ovflowd

    With all due respect, you created an open-source theme. I won't comment on the true effort and hours it takes to develop something like this, but it's only a few hundred lines of code that rarely need maintenance. After that, you transformed it into closed-source and made a scandal out of it.

    In the meantime, thousands of people who genuinely contribute to open-source projects do so without drama and never ask for anything in return. If you believe the universe is conspiring against you, perhaps it's time to take a breather and get some fresh air.

    Reacted by ooheunda, flakey5, Skyslycer, Gabs Simonetti, Isaac, Yunus, Kevin, Pascal Höhnel, Nate, MicroBlock and 14 more

  7. MrSubidubi commented on Feb 26, 2025

    @MrSubidubi

    Rafael Rivera (@riverar) Theo audited only the parts of the extension that were previously open-source. That is, before the author of the extension started rewriting the git history and made the actual extension closed-source. So, in fact, it is about the previous commit tree (which you can still find in plenty of the material theme forks).

    Additionally, you can find some more information about the original theme and it's author in https://github.com/t3dotgg/vsc-material-but-i-wont-sue-you?tab=readme-ov-file#material-theme-but-i-wont-sue-you -TL;DR: He removed the Apache-License and then claimed it does not apply anymore (which it does), rewrote the Git-history multiple times (the last time today) and made multiple false claims based upon these rewrites.

    Lastly, only today he moved the corresponding repository from the material-theme organization to the fanny-theme organization (which at the time of writing is already deleted, but you can still find plenty of the elements in the now moved-back repository and the so-called initial commit), moved back the repo to the old organization whilst disabling issues and discussions in its entirety and, lastly, created a third organization for his theme (see also his update to his readme: equinusocio/equinusocio@bed6c1a). All this whilst still being officially banned from the extension-store according to this Microsoft-comment.

    I think all this should give a good perspective on who to trust here, how this all came together and played out.

    Reacted by Claudio Wunder, flakey5, Bond, Gabs Simonetti, Isaac, E O, Hikmet Altıntaş, mazmap, Kevin, YouKindaSus and 13 more

  8. ovflowd commented on Feb 26, 2025

    @ovflowd

    That is an excellent write up, Finn Evers (@MrSubidubi) -- as someone that has also been doing open source for a long time; actions from people like the author of Material Theme severely hinder the trust people have with open source. These are unfortunate and selfish actions.

    I don't know the author nor know their intents or if they are suffering of any conditions, hence Ill abstain from judging their character, but those actions are definitely not something we'd expect from open source maintainers.

    Reacted by Finn Evers, flakey5, BestCodes, SamiNassim and ChouUn

  9. riverar commented on Feb 26, 2025

    @riverar

    Microsoft explicitly stated that the licensing dispute between the author and the community did not influence their decision. While the situation isn't ideal, I still believe we're missing critical information that justifies removing or banning the content/user.

    Isidor Nikolic (@isidorn) do you have a timeline for when Microsoft will share more information?

    Reacted by Yuriy Burychka, Marcus Barczak, BestCodes and bnmy6581

  10. archanyhm commented on Feb 26, 2025

    @archanyhm

    And of course Equinusocio (@equinusocio) re-uploaded the compromised extension for the second time after being banned from the Marketplace here: https://marketplace.visualstudio.com/publishers/vira-theme

    If there's nothing wrong with the extension, surely you could wait until the dust has settled and some communication has been established with Microsoft explaining the supposed "suspicious dependency" and getting the ban lifted instead of circumventing the ban repeatedly.

    Reacted by Finn Evers, flakey5, Gabs Simonetti, Brett Houtz, Kevin, ensemblebd, Victoria Silver, BestCodes, Kamil Monicz, A Mont and 4 more

  11. xetrics commented on Feb 26, 2025

    @xetrics

    Where can I find the latest version of the extension pre-removal to do my own investigation into the source?

  12. gegtor commented on Feb 26, 2025

    @gegtor

    Reacted by ensemblebd, meowmix7, George Kenneally and wes goodwin

  13. slickdomi commented on Feb 26, 2025

    @slickdomi

    Reacted by meowmix7, neopythe, BestCodes, Kevin, Agustín, George Kenneally, ChouUn and Zingzy

  14. meowmix7 commented on Feb 27, 2025

    @meowmix7

    Same Gegtor (@gegtor) and slickdomique, i de-obfuscated it from the original marketplace zip prior to this event, and ran some scans on it with multiple tools - yielded no results.
    Other than improper usage of variables (injection potential) in path.join, which is silly.

    (js files only in this zip)
    Equinusocio.vsc-material-theme-34.7.9.zip

    I'm not sure why it got flagged, but assume there was good reason.
    Hope someone with more time and brain power can run through the code manually to identify whatever it is.
    I'm very keen to learn what exactly it was doing that was malicious.

    Original author mentioned that a dependency was to blame, https://www.npmjs.com/package/@sanity/client/v/2.1.0
    I scanned that too and found nothing.

    Reacted by Domi and George Kenneally

  15. 4 remaining items

  16. Yash-Singh1 commented on Feb 27, 2025

    @Yash-Singh1

    Reacted by Frank Maximilian, annextuckner and ChouUn

    Reacted by annextuckner

    Reacted by annextuckner

  17. riverar commented on Feb 27, 2025

    @riverar

    Sean here from VS Code Marketplace. We take the decision to remove seriously and thoroughly verify any reports. To protect developers, we also prioritize speedy removal of positives. We've posted the reason for removal in RemovedPackages, where we plan to add any future removals as well. Thanks for helping to keep the marketplace safe for everyone.

    Sean (@seaniyer) Hi Sean, I appreciate the team's work here, but I'm very concerned about the lack of substantial information. Your team cited a 'deep security analysis of the extension' finding 'multiple red flags that indicate malicious intent' and 'additional suspicious code.' Yet the only published reasoning mentions 'obfuscated code and unreasonable dependencies.' This disconnect is frustrating to say the least. Could you please share more specific findings to substantiate these serious claims?

    Reacted by MicroBlock, Jesse Buonanno, George Kenneally, annextuckner, Dan Salmon, Guilherme Vasconcelos, Jeremy Parr, ooheunda, Marcus Barczak, Rabin Shrestha and 9 more

  18. std-microblock commented on Feb 27, 2025

    @std-microblock

    MS should have claim the plugin as "possibly malicious" instead of stating this heavy condemn if you only have unclear proof like this. Announcing it, a plugin used by millions, as malicious have already caused panic in the community.

    Reacted by arrio, George Kenneally, annextuckner, rafaelgoncalves, ChouUn and MarkoDaro123

  19. atericparker commented on Feb 27, 2025

    @atericparker

    Also took a look. This is almost certainly a false positive and the 'scanner' that started this whole controversy seems quite ineffective (it puts the same security risk for ublock origin and an infostealer extension).

    Developer seems to have blown the benefit of the doubt with the apache shenanagins, but that led to this being blown out of proportion.

    Reacted by Agustín, annextuckner, George Kenneally, Yash Singh, rafaelgoncalves, sweet, Taylor Font and MarkoDaro123

  20. gabs-invoicesimple commented on Feb 27, 2025

    @gabs-invoicesimple

    After being targeted for a removal, the reasonable, good faith action that the developer should have taken would be to reach out to the VS Code team, putting himself at their disposal to address any issues they have identified. Instead, he created multiple different accounts in order to submit the same extensions in an attempt to circumvent the restrictions, and implicated the VS Code devs in a conspiracy to personally censor him.

    Even though it can be argued that there is no malicious code after deobfuscation (and I would argue that having obfuscated code which spawns child processes to download data for unnecessary reasons is malicious enough to warrant at least a preemptive removal and trigger an investigation), I think it's self-evident that not a single action taken by the developer after having his extension taken down was made in good faith with the goal to reinstate it for the millions of users it had.

    Reacted by Matt Cowley, bnmy6581, rafaelgoncalves, Claudio Wunder, Daphne Pfister, Daniel Toledano, Sung Jeon, ChouUn, iBug, Ivy and 5 more

  21. ovflowd commented on Feb 27, 2025

    @ovflowd

    Gabs Simonetti (@gabs-invoicesimple) take is exactly what I believe should be the direction people should be thinking of.

    To be fair, I'd really appreciate if the VS Code Marketplace team provided a deep postmortem, but having that said, the actions from the author of the extension alone are extremely concerning and outright violation of the terms of use.

    Reacted by ChouUn, Echo1 and Ivy

  22. max-frank commented on Feb 27, 2025

    @max-frank

    @gabs-invoicesimple take is exactly what I believe should be the direction people should be thinking of.

    To be fair, I'd really appreciate if the VS Code Marketplace team provided a deep postmortem, but having that said, the actions from the author of the extension alone are extremely concerning and outright violation of the terms of use.

    CC: Sean (@seaniyer)

    At this point I believe its a necessity for the VS Code Marketplace team to provide more details about their claims and clarify what actual malicious code they observed. We have articles, blog posts, etc. about this popping up in various places this extension is/was installed on millions of devices.

    IF there was any malicious code actually executed then this would have serious security implications for anyone affected. As MicroBlock (@std-microblock) put it this is causing a panic, its also potentially wasting a bunch of time for people having to work on securing systems.

  23. Jasonlhy commented on Feb 27, 2025

    @Jasonlhy

  24. useEffects commented on Feb 27, 2025

    @useEffects

    Why do you all wanna waste time on the current maintainer if they aint the one created this!!!!!!

  25. locked

    as too heated

    and limited conversation to collaborators

    on Feb 27, 2025
  26. shanselman commented on Mar 12, 2025

    @shanselman

    False positives suck, and it hurts when it happens.
    The publisher account for Material Theme and Material Theme Icons (Equinusocio) was mistakenly flagged and has now been restored. In the interest of safety, we moved fast and we messed up. We removed these themes because they fired off multiple malware detection indicators inside Microsoft, and our investigation came to the wrong conclusion. We care deeply about the security of the VS Code ecosystem, and acted quickly to protect our users.

    I understand that the "Equinusocio" extensions author's frustration and intense reaction, and we hear you. It's bad but sometimes things like this happen. We do our best - we're humans, and we hope to move on from this We will clarify our policy on obfuscated code and we will update our scanners and investigation process to reduce the likelihood of another event like this. These extensions are safe and have been restored for the VS Code community to enjoy.

    LINKS: Material Theme https://marketplace.visualstudio.com/items?itemName=Equinuso... Material Theme Icons https://marketplace.visualstudio.com/items?itemName=Equinuso...

    Again, we apologize that the author got caught up in the blast radius and we look forward to their future themes and extensions. We've corresponded with him to make these amends and thanked him for his patience.

    Scott Hanselman and the Visual Studio Code Marketplace Team - Scott Hanselman (@shanselman)

    Reacted by Claudio Wunder