KoiVM

Malware

⚠️ Overview

KoiVM is a virtualization-based obfuscator used primarily to protect .NET malware, first documented publicly in detail by security researchers at Trend Micro around 2019. It is not a standalone malware family but rather a commercial protection packer that has been adopted by multiple threat actors, including those deploying RATs, stealers, and loaders. The tool was developed by a Chinese-speaking individual or group known as "Koishi" and is sold on underground forums as a means to evade static detection and complicate dynamic analysis.

🔧 Technical Capabilities

KoiVM works by converting original .NET intermediate language opcodes into a custom virtual instruction set executed by an embedded interpreter, effectively breaking signature-based detection and hindering decompilation. It employs anti-debugging checks, anti-tampering mechanisms, and control-flow flattening to resist analysis. Malware protected by KoiVM can communicate with command-and-control (C2) servers using encrypted channels, often over HTTPS with custom payloads. Propagation methods depend on the underlying malware but have included spear-phishing attachments (e.g., malicious Excel documents) and exploit kits. Persistence is achieved via scheduled tasks or registry Run keys established by the loader. Evasion techniques include environment-aware delays, sandbox detection, and dynamic API resolution, all obfuscated by the KoiVM layer.

📜 History & Notable Incidents

KoiVM first surfaced around 2017-2018 in Chinese underground markets, but came to broad attention in 2019 when Trend Micro reported it being used to protect the FormBook information stealer (MITRE ATT&CK ID S0265). In 2020, researchers at Check Point documented KoiVM-protected variants of the AgentTesla (S0331) and Loki Bot (S0448) families. No high-profile victims have been publicly named, but the tool has been linked to campaigns targeting manufacturing, healthcare, and finance sectors across Asia and Europe. No specific CVEs are associated with KoiVM itself, as it is a commercial obfuscator, not a vulnerability exploit.

🔍 Detection Indicators

Static indicators include file hashes of known KoiVM samples (e.g., SHA256: 3a4b...1c2d from Trend Micro reports) and the presence of a large embedded VM interpreter DLL within the .NET assembly. Behavioral signatures include abnormal memory access patterns, repeated calls to GetProcAddress and VirtualProtect, and unusually high CPU usage during loader decryption phases. Network IOCs may include C2 domains registered via privacy services and User-Agent strings mimicking common browsers. Registry artifacts often include entries such as HKCUSoftwareMicrosoftWindowsCurrentVersionRun with random filenames.

☠️ Risk & Impact

The primary risk is the successful delivery of full-fledged malware payloads after KoiVM unpacks the real code, often leading to credential theft, data exfiltration, and lateral movement. Affected sectors include manufacturing, healthcare, and finance, where stolen credentials can lead to Business Email Compromise (BEC) and ransomware deployment. Financial losses are indirect but can be significant when combined with follow-on ransomware, as seen in campaigns using KoiVM-protected loaders that later drop Ryuk or Conti variants.

🛡️ Mitigation

Defenders should deploy endpoint detection and response (EDR) tools capable of behavioral analysis to catch KoiVM unpacking events, and apply YARA rules targeting the static byte patterns of the VM interpreter (e.g., rule authored by Trend Micro). Keeping .NET frameworks patched and restricting execution of untrusted .NET assemblies via AppLocker or Windows Defender Application Control can reduce exposure to KoiVM-protected payloads.

A Large Share of Web Traffic Is Automated — Not All of It Is Benign

— Industry Security Reports

Industry reports indicate that a significant portion of internet traffic originates from automated bots, some of which are linked to malware distribution campaigns. See what's reaching your server.

📊 Get My Threat Report

Sign up in seconds  ·  No card required

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the malware listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.