How Malicious Extensions Turn IDEs Into Attack Vectors
· 1:09:15 · Watch on YouTube ↗
Summary
A Black Hills Information Security researcher demonstrates how malicious VS Code extensions can execute code and impersonate legitimate extensions, and discusses detection and prevention measures.
Key points
- The presenter describes malicious Solidity extensions that impersonated legitimate offerings; one used PowerShell to download and execute a script on Windows.
- The webcast discusses compromised extensions and malicious automatic updates as supply-chain attack paths, including a reported GitHub compromise.
- A demonstration used a native Node add-on in an extension to run shellcode, then modified local metadata to impersonate a legitimate extension and obscure its installation source.
- Potential warning signs include mismatched extension names, local VSIX installation and native .node files, although the presenter cautions that legitimate applications also use native add-ons.
- Suggested defenses include restricting local extension installation, maintaining an approved extension list and keeping a software bill of materials.
- In a separate authorized engagement, the presenter said an MCP server and Claude were used to identify sensitive files and shares after other tools were detected.
Article Details
- Topics
- [03:03] Why VS Code and developer environments are attractive targets
- [08:48] VSIX extension structure and installation metadata
- [10:09] Malicious extension and supply-chain case studies
- [21:44] Native Node add-ons and a shellcode execution demonstration
- [32:02] Impersonating extensions and modifying installation metadata
- [46:29] Detection indicators and defensive controls
- [55:52] Using an MCP server for enumeration during an authorized engagement
MITRE ATT&CK
T1027 · Obfuscated Files or InformationA described extension campaign used unprintable Unicode characters to conceal code.T1036.005 · Match Legitimate Resource Name or LocationMalicious extensions impersonated legitimate offerings using similar names and publisher details.T1059.001 · PowerShellA malicious Solidity extension reportedly invoked PowerShell to download and execute a script on Windows.T1195.002 · Compromise Software Supply ChainThe presenter described malicious updates to compromised extensions being distributed to existing users.
