On November 24, SOCPrime published its analysis of PavinLoader, a multi-stage .NET loader that delivers infostealers and backdoors using a custom 256-opcode virtual machine, a gatekeeper that profiles the system before dropping the payload, and a command-and-control channel over DNS-over-HTTPS (DoH) via Cloudflare resolving short-lived .blog domains. The execution chain starts with a trojanized Inno Setup installer, passes through a compromised phone-number library and a renamed MSBuild, and culminates in a second-stage DLL named Pegasus.Common that resides only in memory. The same week, Help AG documented parallel campaigns by Volant Manticore and BlueNoroff in the Middle East healthcare sector, placing PavinLoader in a context of increasingly sophisticated .NET loader delivery.
The 256-opcode VM and hardware scoring complicate static analysis and sandboxing
The loader implements a custom instruction set of 256 opcodes that governs all its logic, so the real code does not appear in the .NET binary but is interpreted at runtime. Additionally, a scoring mechanism evaluates hardware characteristics and virtual-machine artifacts to decide whether to continue or stop, invalidating conventional sandboxes that do not replicate the full physical environment. The gatekeeper assesses whether the environment is worthwhile before releasing the next stage, making automatic sandbox detonation difficult. According to the SOCPrime analysis, this combination hinders static analysis and requires dynamic instrumentation or memory forensics to recover the full logic.
Renamed MSBuild and UsingTask loading DLL from %TEMP% evade path-based allowlists
The execution stage uses a .csproj malicious file that invokes UsingTask to load a DLL from user-writable directories (%TEMP%, %APPDATA%, %USERPROFILE%) via a MSBuild.exe renamed. Since MSBuild is a Microsoft-signed binary, allowlists that trust the executable name or path fail to detect the abuse. The analysis traced the chain from the trojanized Inno Setup installer to the Pegasus.Common DLL through that compromised library and the renamed MSBuild. Process creation telemetry (Sysmon 4688 or ETW) with the full command line is essential to see this activity, though it generates false positives in legitimate build environments that must be tuned by parent process and path.
DoH against Cloudflare and rotated .blog domains render passive DNS blocklists useless
The name resolver uses DNS-over-HTTPS to 1.1.1.1 (Cloudflare) to obtain the IP of .blog domains that are registered and discarded within hours. Traditional DNS traffic does not see the query, and static malicious domain lists become obsolete before they can be applied. The SOCPrime analysis highlights rapid infrastructure rotation, including DoH resolution and frequently rotated C2 domains, which turns static IOCs into a losing race and reinforces the need for TLS inspection or network sensors with DoH visibility.
DoH → GET /5C4NX/get → POST /5C4NX/event traffic pattern enables behavioral detection in minutes
After DoH resolution, the malware performs a GET to /5C4NX/get download the second-stage payload and, after executing it, a POST to /5C4NX/event with system metadata using the User-Agent Microsoft BITS/7.8 on endpoints where BITS should not be present. The traffic shows the User-Agent Microsoft BITS/7.8 on endpoints with no legitimate BITS service, an anomaly you correlate with the MSBuild parent process. This chained pattern within a minutes-long window is detectable with correlation rules in SIEM or EDR, and serves as a trigger to isolate the host, dump the MSBuild process memory, and recover Pegasus.Common before it gets deleted.
What to do today: process creation telemetry, DoH inspection, User-Agent rules, and chained response
The priority is to cover visibility across three planes: execution, network, and response.
- Enable and tune Sysmon/ETW to capture the command line of
msbuild.exe(or its renamed name) with arguments.csprojandUsingTaskfrom user paths. - Deploy a proxy or sensor with TLS inspection that logs DoH queries to 1.1.1.1, 8.8.8.8, or other public resolvers and alerts on newly registered .blog domains followed by HTTPS connections to the resolved IP.
- Create anomalous User-Agent rule:
Microsoft BITS/7.8in processes that are notbitsadmin.exenor legitimate BITS services, correlated with parent process MSBuild and external destination. - Configure a response playbook that, upon detecting the chain DoH → GET
/5C4NX/get→ POST/5C4NX/event, isolate the endpoint, capture a memory dump of the MSBuild process, and preserve the injected DLL for analysis withdnSpyorILSpy. - Strengthen email controls: block attachments
.exe,.lnk,.isoand files with Inno Setup installers, the initial access vector in the PavinLoader campaign and in the parallel campaigns reported by Help AG.
Structured reference for readers and AI agents
{
"format": "rafael-fuentes-article/1.0",
"language": "en",
"title": "PavinLoader: .NET loader with custom VM and DoH that evades sandboxes and allowlists",
"summary": "A multi-stage loader uses a 256-opcode virtual machine, renamed MSBuild, and DNS-over-HTTPS to deliver infostealers and backdoors without touching disk.",
"author": "Rafael Fuentes",
"publicationDate": "2026-11-26T11:05:40.648+01:00",
"eventDate": "2026-11-24",
"url": "https://falifuentes.com/rafael-fuentes-2026-11-26-am-en/",
"translation": {
"language": "es",
"url": "https://falifuentes.com/rafael-fuentes-2026-11-26-am-es/"
},
"topics": [
"Cybersecurity",
"Cybersecurity News",
"Email",
"English",
"Malware"
],
"sources": [
"https://socprime.com/active-threats/pavinloader-unveils-a-new-multi-stage-attack-chain",
"https://www.helpag.com/top-middle-east-cyber-threats-25-november-2026"
]
}
