Malicious Visual Studio Code Extensions Distribute Trojan via Fake PNG Files
Supply Chain Risk · 3 sources · Updated 5mo ago · First seen Dec 11, 2025

Security researchers at ReversingLabs have identified a sophisticated campaign in which 19 malicious Visual Studio Code (VS Code) extensions were uploaded to the VS Code Marketplace, targeting developers by hiding a Trojan within their dependency folders. The attackers modified a widely trusted npm package, path-is-absolute, to include malicious code that executed upon VS Code startup, ultimately decoding a JavaScript dropper concealed in a file named lock. The final payload was disguised as a banner.png file, which, despite its image extension, was actually an archive containing two malicious binaries. This campaign, active since February 2025 and discovered in December, highlights the risks of supply chain attacks in developer ecosystems.
The malicious extensions either impersonated popular packages or claimed to offer new functionalities, but in reality, they executed harmful code on developers' machines. The use of legitimate dependencies as a vector for malware delivery demonstrates an evolution in threat actor tactics, making detection more difficult. Researchers also noted a broader trend of increasing malware submissions to the VS Code Marketplace, including incidents where legitimate extensions were compromised through malicious pull requests that added harmful dependencies. This incident underscores the need for heightened scrutiny of third-party code and dependencies in development environments.
Why it matters
Impact assessment
This campaign affects software developers, engineering workstations, and organizations that allow Visual Studio Code extensions from the public Marketplace or side-loaded .VSIX packages. The impact is potentially severe because the malicious extensions execute code at VS Code startup, deliver a Trojan to developer endpoints, and create a path to credential theft, source code exposure, and downstream software supply-chain compromise.
The exposure is broader than a single targeted intrusion because 19 malicious extensions were publicly distributed through the VS Code Marketplace and had been active since February 2025 before discovery in December 2025. There is confirmed malicious distribution in the wild through the marketplace, though the full post-compromise capabilities of the Rust-based Trojan remain under investigation.
Supporting facts
- Affected population: VS Code users, especially developers installing public Marketplace extensions or .VSIX packages.
- Affected ecosystem: Visual Studio Code Marketplace, bundled extension dependencies, npm package trust relationships.
- Scope: 19 malicious extensions identified and removed after reporting to Microsoft.
- Timeline: campaign active since February 2025; discovered on December 2, 2025; research published December 10, 2025.
- Severity drivers:
- Code execution on developer endpoints at IDE startup.
- Trojan delivery to systems likely holding source code, secrets, tokens, and signing material.
- Supply-chain risk if compromised developer environments are later used to modify code or publish packages.
- Known in-the-wild activity: yes, malicious extensions were uploaded to and distributed via the VS Code Marketplace.
- Trend context: malicious VS Code extension detections increased from 27 in 2024 to 105 in the first 10 months of 2025.
- Entity names observed in reporting:
- ReversingLabs
- Microsoft
- Visual Studio Code Marketplace
- npm package path-is-absolute
- npm package @actions/io


