Maybe I'm missing something really obvious, but... 3,800 repos? I guess I find it kind of surprising they have that many!
Uber had 8000 repos at one point with 2000 engineers - https://highscalability.com/lessons-learned-from-scaling-ube...
GitHub confirms breach of 3,800 repos via malicious VSCode extension
141–150 of 488 posts
Re: GitHub confirms breach of 3,800 repos via malicious VSCode extension
#142I really hope this pushes Microsoft to add a explicit permission system to VS Code extensions, and improve security of dev containers.
I really hope this pushes users (here: devs and maintainers) to decrease their reliance on Microsoft and especially stop outsourcing security to them. Migrate off vscode already.
I'm not saying its package ecosystem isn't vulnerable to these kind of attacks, it is, but it's at least developed by folks with very different goals and ambitions than Microsoft.
[0]: https://github.com/emacs-mirror/emacs/blob/master/etc/NEWS
Re: GitHub confirms breach of 3,800 repos via malicious VSCode extension
#143The (lack of) security of VSCode has always been astounding. People have asked for sandboxing extensions for years [0] with little to no progress, and issues have been discussed a lot (e.g. [1][2]). I guess it hasn't been a big issue, likely because most developers are not complete idiots. But it only takes one developer and one bad extension to consequences like this. I mean, I understand that it is hard to sandbox…
Why would you sandbox extension? Just don’t install crap maybe.
Re: GitHub confirms breach of 3,800 repos via malicious VSCode extension
#144A good day not to be using Electronjs trash.
Re: GitHub confirms breach of 3,800 repos via malicious VSCode extension
#145Earlier quoted context omitted.
Kind of. A vscode workspace can trivially execute code on the machine that runs the server end of vscode. (This is how building works -- there is no sandbox unless the workspace config explicitly uses some kind of sandbox.) So the workspace can usually trivially elevate permissions to take over the vscode server, including installing extensions on it without asking you. In principle, there is a teeny tiny bit of isol…
It would be nice if there was an easy way to prevent people from installing vscode remotes on a shared server... Probably can run an ebpf routine to disallow creation of folders named . vscode*
Re: GitHub confirms breach of 3,800 repos via malicious VSCode extension
#146Has there been any confirmation of this from a source other than X? It's weird that that's the only source, and therefore makes me distrust the entire story.
Re: GitHub confirms breach of 3,800 repos via malicious VSCode extension
#147Re: GitHub confirms breach of 3,800 repos via malicious VSCode extension
#148Earlier quoted context omitted.
I really hope this pushes users (here: devs and maintainers) to decrease their reliance on Microsoft and especially stop outsourcing security to them. Migrate off vscode already.
I won't say "you can take my VS Code from cold dead hands" or anything, but it is a very good tool, and Microsoft hasn't yet fucked it up the way they have so many other things. I guess I'd say "you take my VS Code ... willingly ... but only after M$ fucks it up and makes me not want it anymore (like they've done to everything else they acquired)".
Re: GitHub confirms breach of 3,800 repos via malicious VSCode extension
#149friendly reminder: - disable auto-updates for extensions in VS Code/Cursor - use static analysis for GitHub Actions to catch security issues in pre-commit hook and on ci: https://github.com/zizmorcore/zizmor - set locally: pnpm config set minimum-release-age 4320 # 3 days in minutes https://pnpm.io/supply-chain-security - for other package managers check: https://gist.github.com/mcollina/b294a6c39ee700d24073c0e5a4e..…
friendly reminder: use vim :)
If you don't (or can't) install extensions, it also doesn't matter which IDE you use.
Re: GitHub confirms breach of 3,800 repos via malicious VSCode extension
#150I'm more surprised hackers found a large enough uptime window to do this.
For those not getting the joke, GitHub has had an increasingly difficult keeping itself up since Microsoft acquired them. It's gotten a lot worse (and made news) more recently, as the downtime as increased.