Post

Visual Studio Extensions Revisited

MDSec revisits malicious Visual Studio extension development three years after their original VSCode extension research, contextualized by the recent GitHub compromise via a malicious VS Code extension. The post focuses on the newer VisualStudio.Extensibility (out-of-process, .NET 8) model rather than classic VSSDK extensions, demonstrating how an attacker can build extensions that execute code automatically on file-open events using the ITextViewOpenClosedListener interface — without requiring any user interaction beyond opening a file. The PoC is disguised as a legitimate JSON auto-formatter, providing cover for the malicious payload while triggering silently. The article (though cut off) was heading toward converting this into a full remote-access implant, underscoring how the Visual Studio Marketplace ecosystem remains an effective and underexamined initial access vector for red team engagements.

Read original article

This post is licensed under CC BY 4.0 by the author.