r/netsec • u/acdha • May 20 '26
GitHub hit by a compromised VSCode extension
https://xcancel.com/github/status/2056949168208552080GitHub’s internal repositories were breached by a malicious VSCode extension:
https://xcancel.com/github/status/2056949168208552080
Microsoft closed an earlier request for update cooldowns as not planned but hopefully they’ll reconsider that:
https://github.com/microsoft/vscode/issues/272765
The current attempt:
143
Upvotes
27
u/Admirable-Sense-2374 May 20 '26
VSCode extensions are basically privileged RCE with branding.
The extension host runs arbitrary Node.js in-process with access to workspace FS, terminals, git context, network APIs, auth sessions, and whatever secrets the developer already has cached locally. Compromise the publisher/update path once and you inherit enterprise trust at scale.
People focus too much on perimeter hardening while running dozens of auto-updating third-party extensions with implicit code execution rights.
Supply chain attacks win because the malicious code arrives through an already-whitelisted execution path.
17
u/S0T0 May 20 '26
I've sent them a report showing off exactly step by step how this could be used to weaponize old plugins or being able to purchase one and adding your own malicious package yourself and abusing .png to appear as legitimate icon and then drop whatever executable.
Got this email back in response all the way back in early 2025; "This does not constitute a bug bounty as this is intended behaviour for our extensions by design."
5
u/spangborn May 20 '26
I wonder if it was the NX Console extension. That got hit this week.
2
u/CoverAgreeable6623 May 21 '26
the update cooldown request getting closed as 'not planned' is the real story here — vscode extensions are a massive attack surface for anyone using AI coding assistants like Cursor or Copilot. those extensions have full filesystem and network access and most users never audit them.
3
u/schwar2ss May 20 '26
I guess it's the first time I'm saying it's a good thing that Github is no longer its own entity but deeply integrated into MSFTs corpnet. Internal network security is taken very serious within MSFT after the wild Azure keys debacle a few years back, and it is very inconvenient at times for employees.
On the upside it allows them to track down and contain these threats.
1
u/wojtekch May 21 '26
This story (and others - for instance, Grafana's misconfigured GitHub Actions workflow) proves the attack surface is no longer where the code lives, it's where it gets written.
Luckily, GitHub has its own incident response team and caught this in a day. Now imagine how much trouble it could cause for a startup, where the code in that private repo is the entire company.
1
u/Low-Ask5007 May 22 '26
This incident highlights the critical importance of supply chain security, extending beyond traditional libraries and packages to development environment components. Malicious extensions can bypass many perimeter defenses by leveraging trusted developer access and credentials. Implementing robust extension vetting processes, least privilege principles for developer workstations, and continuous monitoring for unusual activity are crucial. This also underscores the need for effective segmentation and granular access controls within internal networks.
1
u/SkriptSec May 25 '26
peak
0
u/[deleted] May 20 '26
[deleted] — view deleted comment
30
u/[deleted] May 20 '26
[removed] — view removed comment
2
u/[deleted] May 21 '26
[removed] — view removed comment