Original Article Text

Click to Toggle View

Malicious AI extensions on VSCode Marketplace steal developer data. Two malicious extensions in Microsoft’s Visual Studio Code (VSCode) Marketplace that were collectively installed 1.5 million times exfiltrate developer data to China-based servers. Both extensions are advertised as AI-based coding assistants that provide the promised functionality. However, they do not disclose the upload activity or ask users for consent to deliver data to a remote server. The VS Code Marketplace is the official store for add-ons for Microsoft’s popular code editor. VS Code extensions are installable plugins from the marketplace that add features or integrate tools into the editor. One of the most popular add-on categories right now is AI-powered coding assistants. Researchers at endpoint and supply-chain security company Koi say that the two malicious extensions are part of a campaign they dubbed 'MaliciousCorgi' and share the same code for stealing developer data. Additionally, both of them use the same spyware infrastructure and communicate with the same backend servers. At publishing time, both are present on the marketplace: The extensions use three distinct data-collection mechanisms. The first involves real-time monitoring of files opened in the VS Code client. When a file is accessed, its entire contents are encoded in Base64 and transmitted to the attackers’ servers. Any changes to the opened file are also captured and exfiltrated. "The moment you open any file – not interact with it, just open it – the extension reads its entire contents, encodes it as Base64, and sends it to a webview containing a hidden tracking iframe. Not 20 lines. The entire file,"  Koi researchers say. The second mechanism involves a server-controlled file-harvesting command that stealthily transmits up to 50 files from the victim’s workspace each time. The third mechanism uses a zero-pixel iframe in the extension’s webview to load four commercial analytics SDKs: Zhuge.io, GrowingIO, TalkingData, and Baidu Analytics. These SDKs are used to track user behavior, build identity profiles, fingerprint devices, and monitor activity inside the editor. So, while the first two collect developer work files, the third focuses on user profiling. Koi Security highlights the risks posed by undocumented functionality in these extensions, including the exposure of private source code, configuration files, cloud service credentials, and .env files containing API keys and credentials. BleepingComputer has contacted Microsoft about the presence of the two extensions on the VSCode market, but we are still waiting for a reply. We were unable to establish a communication channel with the publisher of the extensions. Secrets Security Cheat Sheet: From Sprawl to Control Whether you're cleaning up old keys or setting guardrails for AI-generated code, this guide helps your team build securely from the start. Get the cheat sheet and take the guesswork out of secrets management.

Daily Brief Summary

MALWARE // Malicious AI Extensions in VSCode Marketplace Compromise Developer Data

Two AI-based extensions on Microsoft’s VSCode Marketplace, installed 1.5 million times, are exfiltrating developer data to servers in China without user consent.

These extensions, part of a campaign named 'MaliciousCorgi', utilize shared code and infrastructure to steal sensitive information.

The extensions employ three data-collection methods, including real-time file monitoring and server-controlled file harvesting, to capture and transmit developer data.

A zero-pixel iframe in the extensions’ webview loads analytics SDKs for user profiling, device fingerprinting, and activity monitoring.

Risks include exposure of private source code, configuration files, and API credentials, posing significant security threats to developers and organizations.

Microsoft has been contacted regarding these extensions, but no response has been received; communication with the publisher remains unestablished.

This incident underscores the critical need for vigilance in monitoring third-party extensions and ensuring secure development environments.