Malicious VS Code Extension Delivers Anivia Loader and OctoRAT

· Original article ↗

Summary

Researchers analyzed a fake Prettier VS Code extension that delivered Anivia and OctoRAT through a multi-stage chain, enabling remote control, credential and data theft, persistence, and evasion. The extension was removed after several installs.

Key points

  • The fake prettier-vscode-plus extension appeared on the official VS Code Marketplace on November 21, 2025, and was removed within four hours; the article reports six downloads and three installs.
  • A VBScript dropper launched encrypted PowerShell payloads, leading to the Anivia loader and then OctoRAT.
  • Anivia decrypted its payload in memory and used process hollowing to run it inside the legitimate Windows process vbc.exe.
  • OctoRAT can steal browser credentials, cookies, autofill data, files, and cryptocurrency wallet data, and provides remote desktop, keylogging, and command execution.
  • The malware uses scheduled-task persistence, attempts a FodHelper UAC bypass, and can disable Windows security controls.
  • Researchers identified seven OctoRAT control panels using an HTML title fingerprint and reported a shared TLS certificate across 93 servers.
  • The article provides detection opportunities, control-panel IPs, and hashes for the malware components.

Article Details

Attack Vectors
  • A fake Prettier extension, prettier-vscode-plus, was published to the official Visual Studio Code Marketplace and used to initiate a multi-stage malware chain.
  • A VBScript dropper wrote and ran a PowerShell payload that decrypted and executed code in memory.
  • The Anivia loader decrypted a payload and used process hollowing to run it inside vbc.exe.
  • OctoRAT attempted a FodHelper UAC bypass and used a scheduled task named WindowsUpdate for persistence.
  • OctoRAT harvested browser data and cryptocurrency-wallet data, then communicated with control-panel infrastructure identified in the article.
Defensive Notes
  • Monitor for installations of prettier-vscode-plus and unusual extension additions.
  • Investigate repeated downloads from vague GitHub repositories such as vscode, especially when associated with VBScript or encrypted payloads.
  • Detect suspicious vbc.exe activity, including unusual network connections or child processes that may indicate process hollowing.
  • Monitor VBScript-launched PowerShell and Base64/AES-related execution patterns.
  • Detect external servers returning the HTML title OctoRAT Center - Login and investigate the identified OctoRAT infrastructure.

Indicators of compromise

TypeIndicatorContext
IPV4158[.]94[.]210[.]52Identified OctoRAT control-panel server.
IPV4158[.]94[.]210[.]76Identified OctoRAT control-panel server.
IPV4178[.]16[.]55[.]109Host identified as running an active OctoRAT control panel.
IPV451[.]178[.]245[.]127Identified OctoRAT control-panel server.
IPV451[.]38[.]250[.]193Identified OctoRAT control-panel server.
IPV491[.]206[.]169[.]80Identified OctoRAT control-panel server.
SHA256279f7ab5979e82caa75ac4d7923ee1f3d76fe8c3edc6cc124d619a8f7441eb5eTLS certificate fingerprint associated with a cluster of OctoRAT infrastructure.
SHA256360e6f2288b6c8364159e80330b9af83f2d561929d206bc1e1e5f1585432b28fHash of the OctoRAT payload identified in the campaign.
SHA2569a870ca9b0a47c5b496a6e00eaaa68aec132dd0b778e7a1830dadf1e44660febHash of the embedded PowerShell loader identified in the campaign.
SHA256b8bc4a9c9cd869b0186a1477cfcab4576dfafb58995308c1e979ad3cc00c60f2Hash of the Anivia loader identified in the campaign.
SHA256f4e5b1407f8a66f7563d3fb9cf53bae2dc3b1f1b93058236e68ab2bd8b42be9dHash of the VBScript dropper identified in the campaign.

MITRE ATT&CK

T1041 · Exfiltration Over C2 ChannelOctoRAT uploaded stolen browser data to its C2 server.T1053.005 · Scheduled TaskOctoRAT created a Windows scheduled task named WindowsUpdate to run every minute.T1055.012 · Process HollowingAnivia injected its decrypted payload into vbc.exe using process hollowing.T1056.001 · KeyloggingOctoRAT included a command to capture keystrokes.T1057 · Process DiscoveryOctoRAT included a command to list running processes.T1059.001 · PowerShellThe VBScript dropper launched PowerShell to decrypt and execute the payload.T1059.005 · Visual BasicThe initial dropper was a VBScript payload.T1071 · Application Layer ProtocolOctoRAT communicated with a configured C2 server and exchanged reconnaissance and heartbeat packets.T1082 · System Information DiscoveryOctoRAT sent system information, including the Windows version and build, in a reconnaissance packet.T1083 · File and Directory DiscoveryOctoRAT included commands to list directory contents and inspect file-system locations.T1113 · Screen CaptureOctoRAT could capture and stream the victim's screen.T1115 · Clipboard DataOctoRAT included commands to monitor clipboard data.T1195.002 · Compromise Software Supply ChainThe fake extension was published through the Visual Studio Code Marketplace and used to deliver the malware chain.T1548.002 · Bypass User Account ControlOctoRAT used the FodHelper UAC bypass by manipulating the ms-settings registry key.T1555 · Credentials from Password StoresThe article maps OctoRAT's collection of saved browser credentials to this technique.T1555.003 · Credentials from Web BrowsersOctoRAT extracted saved passwords and other data from browser databases.T1562.004 · Disable or Modify System FirewallOctoRAT could disable Windows Firewall across network profiles.T1564.001 · Hidden Files and DirectoriesOctoRAT could hide its executable by setting hidden and system file attributes.

Malware

Vendors

Products

Countries

Industries

Related Articles