5 minhigh
Unknown APT uses NetamLoader to attack a Win10 OS customized for governments in Asia
Unknown APT deploys NetamLoader via supply-chain attack on custom Asian government Windows 10, using XAML-based loading framework with AMSI/ETW bypass to execute .NET plugins in dllhost.exe. The loading chain uses a CAB archive with seven files, exploiting a design flaw in DataCacheFactoryConfiguration to trigger deserialization. Payloads are AES-encrypted across multiple XAML layers with SHA-256 keys derived from command-line arguments. C2 communicates with openaigpt4v.com using 22-28 hour polling intervals and AES-128-CBC with HMAC-SHA256.
Sens:■ Immediate
Detection / HunterZ.ai
Immediate Actions
- Block openaigpt4v[.]com and 104[.]18[.]14[.]219 at network perimeter and proxy
- Hunt for .config files with AppDomainManagerType in SoftwareDistribution paths
- Isolate hosts running PatchMyPC-ScriptRunner.exe from SoftwareDistribution\Download\Install
Key Takeaways
- Discovered first half of 2026 via KSN detection of .config file in Windows SoftwareDistribution
- CAB contains seven files; only Resources.resx contains malicious code
- AMSI bypass patches Console.Clear() method bytes and AMSI COM vtable pointer
- C2 uses AES-128-CBC with HMAC-SHA256 for encrypted, authenticated traffic
- Single victim identified in Asia; targets government-only custom Windows 10 build
Attack Chain
- Initial Access: Supply-chain attack delivers CAB to Windows update package directory
- Execution: PatchMyPC-ScriptRunner.exe loads .config triggering AppDomainManager injection
- Defense Evasion: BinaryFormatter deserialization loads XAML payloads via TypeConfuseDelegate
- Defense Evasion: AMSI patched via COM vtable modification; ETW disabled via environment variable
- Process Injection: RPC-created COM object loads XAML-3 into dllhost.exe process
- Command and Control: .NET 2 Plugin beacons to openaigpt4v[.]com over HTTPS with AES-encrypted traffic
Affected Systems
- Custom Windows 10 builds for Asian government entities
- Systems running Patch My PC patch management tool
- .NET Framework 4.6 or later
Detection Engineering Assessment
Hunting Hypotheses
| Hypothesis | Telemetry | Stage | FP Risk |
|---|---|---|---|
| .config files specifying AppDomainManagerType in C:\Windows\SoftwareDistribution\ indicate AppDomainManager injection (T1218) | File creation and modification events | Execution | Low — AppDomainManager types in update paths are anomalous |
| Processes setting COMPlus_ETWEnabled to 0 disable .NET ETW logging (T1562.002) | Environment variable modification events | Defense Evasion | Low — legitimate .NET apps rarely disable ETW |
| dllhost.exe making HTTPS connections to openaigpt4v.com indicates C2 beaconing (T1071.001) | DNS queries and network connection logs | Command and Control | Low — domain is not known legitimate infrastructure |
Required Log Sources
- Sysmon Event ID 1 process creation
- Sysmon Event ID 11 file creation
- Sysmon Event ID 12 13 14 registry
- Windows Security 4688 process creation
- DNS query logs
- HTTPS proxy logs
Control Gaps
- AMSI vtable patching evades signature-based antivirus scans
- ETW disablement via COMPlus_ETWEnabled suppresses .NET runtime telemetry
- Process migration to dllhost.exe breaks parent-child process correlation
- Multi-layer payload encryption defeats static file analysis
- Long polling intervals evade time-window sandbox analysis
Recommendations
Infrastructure Hardening
- Restrict write access to C:\Windows\SoftwareDistribution\Download\ directories
- Alert on COMPlus_ETWEnabled environment variable modifications across endpoints
- Block network connections from dllhost.exe to unknown external domains
User Protection
- Update Patch My PC to latest version and verify installation integrity
- Enable AMSI integration with endpoint protection solutions
- Deploy EDR with behavior-based process injection detection capabilities
MITRE ATT&CK Mapping
MITRE ATT&CK Mapping16 techniques
Tactic
Initial Access
Tactic
Execution
Tactic
Privilege Escalation
Tactic
Stealth
Tactic
Defense Impairment
Tactic
Command and Control
Showing defanged values
- domainopenaigpt4v[.]comC2 domain registered with Cloudflare, first seen Sep 27 2023
- file_pathC:\Windows\SoftwareDistribution\Download\e4537a1762fcafd2fd96bfc825bad34f9db9a24dCAB archive in Windows update package directory
- file_pathC:\Windows\SoftwareDistribution\Download\Install\fabric.configDropped fabric config triggering DataCacheFactoryConfiguration abuse
- file_pathC:\Windows\SoftwareDistribution\Download\Install\PatchMyPC-ScriptRunner.exe.configDropped .config file enabling AppDomainManager injection
- file_pathC:\Windows\SoftwareDistribution\Download\Install\Resources.resxDropped .resx file containing embedded malicious payloads
- ip104[.]18[.]14[.]219C2 IP address on Cloudflare CDN
- md54f28622c5e60c01319bf48cf742fe1a5MD5 hash of XAML-2-2 loader payload
- md5514117d536e347560d049cfe0c609632MD5 hash of XAML-1 loader payload
- md5514ac0d73b8a1b73488ef5e2e55a75c3MD5 hash of PatchMyPC-ScriptRunner.exe.config
- md567e3617f8709d34f806f8e02badba8a5MD5 hash of fabric.config file
- md59000820d8153c24cd60d53001d3a97b6MD5 hash of XAML-2 payload
- md5ab81564bcb8ca7e710c66832de747556MD5 hash of .NET 1 Loader module
- md5b3c4a635179680edafb5d006cf0cffc6MD5 hash of XAML-2-1 AMSI bypass payload
- md5c86d53392a87dd3f3e62d62c9b92a9bdMD5 hash of XAML-3 final payload
- md5cfb8b281bdf5d9390e64b10c312fb2c1MD5 hash of .NET 2 Plugin payload
- md5e1dc6f1ed193594f2284be22ae08dfa4MD5 hash of Resources.resx payload file
- md5f2458ed133f8d0ca19e22c10f577e98eMD5 hash of malicious CAB archive
- registry_keyHKLM\SOFTWARE\Classes\appid\{bde7ddc2-1f6f-4397-a0df-ae7c7d67d65a}Exception-state logging subkey created by malware
- registry_keyHKLM\SOFTWARE\Classes\appid\{ff259bcd-2f0a-44de-b34a-0092fec1d8a2}DllSurrogate key created by .NET 2 Plugin
- sha1e4537a1762fcafd2fd96bfc825bad34f9db9a24dSHA1 hash of malicious CAB archive
- urlhxxps://openaigpt4v[.]com/model_v4/C2 server URL endpoint for beaconing
- urlhxxps://openaigpt4v[.]com/model_v4/94aafd58-c00c-402a-aae6-858b4486a1a4Full C2 beacon URL with malware instance ID