Malicious AI extensions on VSCode Marketplace steal developer data
嗯,用户让我帮忙总结一篇文章的内容,控制在100字以内,而且不需要特定的开头。首先,我需要理解文章的主要内容。文章讲的是微软VS Code市场上的两个恶意扩展,安装量高达150万次,这些扩展窃取开发者的数据传送到中国的服务器。 接下来,我得找出关键点:恶意扩展、VS Code市场、安装量、数据窃取、目标国家。然后,我需要把这些信息浓缩到100字以内,同时保持语句通顺。可能的结构是先说明问题,再描述行为和影响。 还要注意用户的要求是直接写描述,不需要“这篇文章”这样的开头。所以我会直接从事件本身开始。最后检查一下字数是否符合要求,并确保没有遗漏重要信息。 </think> 微软 VS Code 市场上发现两个恶意扩展,合计被安装 150 万次。这些扩展伪装成 AI 编码助手,在未告知用户的情况下窃取开发者数据并传送到中国服务器。它们实时监控文件内容,并通过多种机制收集敏感信息,包括源代码和配置文件。 2026-1-23 20:15:21 Author: www.bleepingcomputer.com(查看原文) 阅读量:3 收藏

Malicious AI code extensions in VSCode Marketplace steal dev 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.

Wiz

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:

  • ChatGPT – 中文版 (publisher: WhenSunset, 1.34 million installs)
  • ChatMoss (CodeMoss) (publisher: zhukunpeng, 150k installs)
Malicious extension on the VSCode marketplace
Malicious extension on the VSCode marketplace
Source: BleepingComputer

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.

Function that performs the file theft
Function that performs the file theft
Source: Koi Security

"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.

Exfiltrating up to 50 files from the workspace
Exfiltrating up to 50 files from the workspace
Source: Koi Security

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.

Wiz

7 Security Best Practices for MCP

As MCP (Model Context Protocol) becomes the standard for connecting LLMs to tools and data, security teams are moving fast to keep these new services safe.

This free cheat sheet outlines 7 best practices you can start using today.


文章来源: https://www.bleepingcomputer.com/news/security/malicious-ai-extensions-on-vscode-marketplace-steal-developer-data/
如有侵权请联系:admin#unsafe.sh