Vibe-Coded Malicious VS Code Extension Found with Built-In Ransomware Capabilities
嗯,用户让我总结这篇文章,控制在一百个字以内。首先,我需要通读全文,抓住主要信息。文章提到了两个主要的网络安全问题:一个是恶意的VS Code扩展,另一个是被篡改的npm包。 对于VS Code扩展,它带有勒索软件功能,并且似乎是用AI生成的。这个扩展会在第一次启动时自动加密和上传文件。微软已经将其从市场移除。此外,这个扩展还利用GitHub作为命令控制中心,这可能意味着攻击者可以远程控制它。 接下来是关于npm包的部分,这些包伪装成正常的SDK,实际上在安装后会执行 Vidar Stealer。这些包已经被下载了超过2000次,尽管账户已被封禁。攻击链涉及到在postinstall脚本中下载并执行恶意软件。 用户的需求是总结内容,所以我要把这两个主要事件都涵盖进去,并且保持简洁。确保不超过100个字,同时不使用“文章内容总结”之类的开头。 可能的结构是:恶意VS Code扩展和被篡改的npm包分别导致勒索软件和信息窃取软件的问题。这样既涵盖了两个事件,又说明了它们的影响。 最后检查字数是否符合要求,并确保信息准确无误。 </think> 文章描述了网络安全研究人员发现的恶意Visual Studio Code扩展和被篡改的npm包问题。恶意VS Code扩展具备基本勒索软件功能,并利用GitHub作为命令控制中心;被篡改的npm包伪装成SDK,在安装时执行Vidar Stealer信息窃取软件。 2025-11-7 06:48:0 Author: thehackernews.com(查看原文) 阅读量:13 收藏

Cybersecurity researchers have flagged a malicious Visual Studio Code (VS Code) extension with basic ransomware capabilities that appears to be created with the help of artificial intelligence – in other words, vibe-coded.

Secure Annex researcher John Tuckner, who flagged the extension "susvsex," said it does not attempt to hide its malicious functionality. The extension was uploaded on November 5, 2025, by a user named "suspublisher18" along with the description "Just testing" and the email address "donotsupport@example[.]com."

"Automatically zips, uploads, and encrypts files from C:\Users\Public\testing (Windows) or /tmp/testing (macOS) on first launch," reads the description of the extension. As of November 6, Microsoft has stepped in to remove it from the official VS Code Extension Marketplace.

According to details shared by "suspublisher18," the extension is designed to automatically activate itself on any event, including installing or when launching VS Code, and invoke a function named "zipUploadAndEncrypt," which creates a ZIP archive of a target directory, exfiltrates it to a remote server, and replaces the files with their encrypted versions.

"Fortunately, the TARGET_DIRECTORY is configured to be a test staging directory so it would have little impact right now, but is easily updated with an extension release or as a command sent through the C2 channel covered next," Tuckner said.

DFIR Retainer Services

Besides encryption, the malicious extension also uses GitHub as command-and-control (C2) by polling a private GitHub repository for any new commands to be executed by parsing the "index.html" file. The results of the command execution are written back to the same repository in the "requirements.txt" file using a GitHub access token embedded in the code.

The GitHub account associated with the repository – aykhanmv – continues to be active, with the developer claiming to be from the city of Baku, Azerbaijan.

"Extraneous comments which detail functionality, README files with execution instructions, and placeholder variables are clear signs of 'vibe coded' malware," Tuckner said. "The extension package accidentally included decryption tools, command and control server code, GitHub access keys to the C2 server, which other people could use to take over the C2."

Trojanized npm Packages Drop Vidar Infostealer

The disclosure comes as Datadog Security Labs unearthed 17 npm packages that masquerade as benign software development kits (SDKs) and provide the advertised functionality, but are engineered to stealthily execute Vidar Stealer on infected systems. The development marks the first time the information stealer has been distributed via the npm registry.

The cybersecurity company, which is tracking the cluster under the name MUT-4831, said some of the packages were first flagged on October 21, 2025, with subsequent uploads recorded the next day and on October 26. The names of the packages, published by accounts named "aartje" and "saliii229911," are below -

  • abeya-tg-api
  • bael-god-admin
  • bael-god-api
  • bael-god-thanks
  • botty-fork-baby
  • cursor-ai-fork
  • cursor-app-fork
  • custom-telegram-bot-api
  • custom-tg-bot-plan
  • icon-react-fork
  • react-icon-pkg
  • sabaoa-tg-api
  • sabay-tg-api
  • sai-tg-api
  • salli-tg-api
  • telegram-bot-start
  • telegram-bot-starter

While the two accounts have since been banned, the libraries were downloaded at least 2,240 times prior to them being taken down. That said, Datadog noted that many of these downloads could likely have been the result of automated scrapers.

CIS Build Kits

The attack chain in itself is fairly straightforward, kicking in as part of a postinstall script specified in the "package.json" file that downloads a ZIP archive from an external server ("bullethost[.]cloud domain") and execute the Vidar executable contained within the ZIP file. The Vidar 2.0 samples have been found to use hard-coded Telegram and Steam accounts as dead drop resolvers to fetch the actual C2 server.

In some variants, a post-install PowerShell script, embedded directly in the package.json file, is used to download the ZIP archive, after which the execution control is passed to a JavaScript file to complete the rest of the steps in the attack.

'

"It is not clear why MUT-4831 chose to vary the postinstall script in this way," security researchers Tesnim Hamdouni, Ian Kretz, and Sebastian Obregoso said. "One possible explanation is that diversifying implementations can be advantageous to the threat actor in terms of surviving detection."

The discovery is just another in a long list of supply chain attacks targeting the open-source ecosystem spanning npm, PyPI, RubyGems, and Open VSX, making it crucial that developers perform due diligence, review changelogs, and watch out for techniques like typosquatting and dependency confusion before installing packages.

Found this article interesting? Follow us on Google News, Twitter and LinkedIn to read more exclusive content we post.


文章来源: https://thehackernews.com/2025/11/vibe-coded-malicious-vs-code-extension.html
如有侵权请联系:admin#unsafe.sh