Skip to main content
Mallory
← Back to News
extension-plugin-hijackpackage-repository-poisoningloader-delivery-mechanismdependency-confusion-typosquat

Malicious Visual Studio Code Extensions Distribute Trojan via Fake PNG Files

Supply Chain Risk · 3 sources · Updated 5mo ago · First seen Dec 11, 2025

Malicious Visual Studio Code Extensions Distribute Trojan via Fake PNG Files

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
Does this reach your builds?Trace attribution and downstream blast radius.
Trace the chain
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

5 events · Feb 1, 2025 – Dec 11, 2025
  1. Dec 11, 20251y ago

    Microsoft removes the identified malicious extensions

    Following the report, all identified malicious extensions were removed from the VS Code Marketplace. Users who had installed them were advised to scan their systems for signs of compromise.

  2. Dec 10, 20251y ago

    ReversingLabs reports 19 malicious extensions to Microsoft

    After identifying the campaign, ReversingLabs reported all 19 malicious extensions to Microsoft. The researchers also published indicators of compromise to help defenders investigate potential infections.

  3. Dec 1, 20251y ago

    ReversingLabs discovers the malicious extension campaign

    In December 2025, ReversingLabs researchers identified the long-running campaign affecting the VS Code Marketplace and analyzed how the extensions hid malware in dependency folders. The researchers also noted a broader rise in malicious VS Code extensions during 2025 compared with 2024.

  4. Feb 1, 20252y ago

    Attackers weaponize bundled npm dependencies to deploy trojan

    The malicious extensions bundled modified dependency folders, including trojanized versions of the npm packages 'path-is-absolute' and in some cases '@actions/io'. When VS Code started, the altered code executed a JavaScript dropper that deployed malware, including binaries disguised as a PNG file, a Rust-based trojan, and use of LOLBINs such as cmstp.exe.

  5. Feb 1, 20252y ago

    Malicious VS Code extension campaign begins on Marketplace

    A campaign involving 19 malicious Visual Studio Code Marketplace extensions became active in February 2025, targeting developers through trojanized extensions. The extensions were published as version 1.0.0 and included names such as Malkolm Theme, PandaExpress Theme, Prada 555 Theme, and Priskinski Theme.

Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

1 linked
Visual Studio Code
Do you run this?See attribution and downstream blast radius, and whether this package or vendor reaches your builds.
Trace the Supply Chain
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.