Show HN: VSCan - Detect Malicious VSCode Extensions
23 comments
·June 24, 2025Groxx
It is beyond madness and well into "intentionally negligent" to release a plugin system without a permissions model in, like, the last 20 years. Can't believe people aren't up in arms about how wide open vscode and similar things are, particularly now that docker is widespread.
Thanks for building a scanner! I wish it wasn't necessary :/
Sytten
IDK, I have built a plugin system myself. It is very hard to have a plugin system that is both powerful, versatile and sandboxed. Like with with anything you can pick 2. Most of the plugins I use in vscode like prettier, rust analyzer, etc all need file access and process spawn. So if you sandbox it they would all need max access anyway which kind of defeats the purpose.
Groxx
There is an enormous amount of space between "it must be written in lua for safety" and "leftpad can upload your entire hard drive and then ransom it back to you".
Right now we have the latter.
greggsy
It’s not entirely unreasonable for VSCode to implement and enforce the same user acceptance controls that are currently ubiquitous on mobile platforms.
notnullorvoid
There's a big difference between max access and giving permission to run a specific binary which itself has no restrictions.
The difference does matter less when the binary and plugin are produced by the same group or individual though.
airstrike
Sure but it would be nice to differentiate the permissions given to rust-analyzer and, say, "TODO Highlight"
null
CGamesPlay
You should definitely show the vulnerabilities you found on the front page, instead of showcasing low scores given to popular extensions. Claiming that "rust-analyzer" is "High Risk" is a strong turn-off from me thinking your service is useful (why? because it contains shell commands in the form of "taskDefinitions", and because it uses a dependency to parse ANSI sequences that hasn't received a commit in the past 90 days).
shadow-ninja
Thanks for the feedback. I am constantly trying to refine the scoring metrics to make sure that these popular extensions that often need high permissions aren't flagged as a lower score than they should receive. It is a bit difficult though as higher permissions do indicate a higher potential for abuse so its a balancing act. As for showcasing the vulnerabilities that's a good idea I'll definitely implement.
staticshock
I'd love a version of this where I can paste my full list of extensions, instead of a box where I can only paste one. The latter is tedious, so I'm not that likely to do it.
xsc
A lot of directions you could take this. Free/Commercial. Thoughts?
Would be interesting to get more details on the sandbox.
meander_water
Nice work! This has actually been an open feature request since 2018 [0]. I've been wanting something like this for a while.
ruined
i wish the detail links on each analysis tile were real links, instead of some apparently weird javascript. seems broken in firefox
it would also be nice if i could expand all the analysis detail at once, instead of just one section at a time.
shadow-ninja
Hm all the links seem to work for me on chrome. Could you let me know which specific link isn't working (is it just for that extension or for all extensions?).
I restricted it to one expanded at a time since more than one felt a bit crowded but that's something I might look into.
dlalchandani
Finally we have something like this. This is very good work
tonymet
vscodevim got 71/100 high risk. That's a pretty common one.
sunilagrawal
That's concerning. What is Microsoft doing about it? Have you contacted them?
1oooqooq
honestly, expecting safe software from Microsoft is like expecting a private browser from an advertising company .... oh.
rafaelgoncalves
lol, so true, and that both are really good malware attack vectors (chrome/vscode extensions, etc.)
whalesalad
Using this is kind of a pain in the butt (looking thru all installed extensions and pasting in the raw name one by one). Could this be packaged as an extension itself, that scans other extensions? Or provide a CLI command to export all of your installed extensions as a list, which you can then upload? Or better, a one liner that will export your extensions to stdin, POST them to your API, and it will return a URL that you can click and load in the browser to explore the breakdown of (potential) issues.
shadow-ninja
Thanks for the suggestion. I was thinking about making this into a chrome web extension that people can use on a marketplace page or even using MCP to make this tool really accessible for Cursor and Windsurf users.
As for the raw name, most extensions should work if you just put the display name. The search algorithm directly pulls from the vscode marketplace.
whalesalad
I have 70 extensions installed though. Turns out there is a cli flag to print them, though: "code --list-extensions"
If you update your UI to accept a "bulk analyze" mode where a list of newline extensions could be submitted and rendered out on a page, that would be pretty cool.
shadow-ninja
Oh yeah that's a really good idea. That would make it much easier for someone to use, though that many extensions would take a while. I would need to build up some more robust architecture before I could implement that.
Did you know that VSCode extensions run with full access to your system—including file system, network, and credentials? Worse, dozens of malicious extensions have already made it into the marketplace, silently compromising devices.
I am a security researcher and student developer who ran into this problem myself. To help tackle this, I built a 100% free tool (no login required) that scans VSCode (and Cursor/Windsurf) extensions for:
- Hidden malware and obfuscated code
- Dangerous permissions and API misuse
- Vulnerable dependencies and suspicious network connections
Users have already found hundreds of vulnerabilities in extensions. VSCan generates a clean, developer-friendly security report to help you understand what you're installing.
Try it out: https://www.vscan.dev
I have also developed custom sandboxing security architecture to restrict extensions from malicious activity during runtime. There is no existing technology that does this, so if you would be interested in trying it out or learning more, please reach out!
I would greatly appreciate any feedback and thanks for your help!
_______________________________________________________________________________
Here are some numbers as to what I have detected from a sample of 1077 extensions that are available on the Marketplace:
- 3 extensions are marked as malicious by VirusTotal - 7 extensions use malicious network connections (verified by VirusTotal) - 33 extensions have dependencies with critical vulnerabilities - 39 extensions have sensitive information (I have seen api keys, usernames, passwords, etc.) - 204 extension have poor development practices as marked by OSSF - 71 extensions have very high permissions (while not bad can be indicator of potential malicious activity)
As an example here is the link to an extension analysis with malicious network endpoints: https://vscan.dev/?analysisId=9e6c1849-3973-402b-a4ff-3b4023...