Description
This module installs a malicious VS Code extension into the target's VS Code extensions directory. The extension executes the payload each time VS Code is launched, providing persistent code execution. Supports VS Code, VS Code Insiders, VSCodium, VS Code Server, and Cursor.
Tested against 1.120.0 on Kali and Windows 10
Module options
To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':
msf > use exploit/multi/persistence/vscode_extensionmsf undefined(vscode_extension) > show actions ...actions...msf undefined(vscode_extension) > set ACTION < action-name >msf undefined(vscode_extension) > show options ...show and set options...msf undefined(vscode_extension) > runPrioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub