Technical Architecture and Execution of SilentXMRMiner
SilentXMRMiner is a compiled .NET binary built on the open-source XMRig cryptomining engine. It is engineered specifically for stealth, defense evasion, and persistence within standard Windows environments. Rather than running as a standalone, easily identifiable process, the malware utilizes an intricate execution chain to hide its activities.
Initial Staging and Defense Evasion
The attack typically begins when a dropper executable (such as a trojanized file masqueraded as utility software or media downloads) is executed on an endpoint. At runtime, the .NET assembly decrypts its primary payload using dynamically evaluated Base64 arrays. This technique successfully bypasses static file scanners that look for known XMRig signatures.
Immediately after execution, the staging binary attempts to impair local endpoint defenses. It runs obfuscated PowerShell scripts that modify Microsoft Defender preferences. By executing command strings to add specific folder or process exclusions, the malware ensures that its directories remain unmonitored by built-in security controls.
Process Hollowing Mechanics
To remain undetected by administrators viewing standard process lists, the malware relies on process hollowing. This injection technique replaces the code of a legitimate system utility with the decrypted cryptomining executable. The process hollowing sequence proceeds through the following precise steps:
Suspended Spawn: The parent dropper spawns a legitimate target process, such as svchost.exe or explorer.exe, in a suspended state by passing the CREATE_SUSPENDED flag during creation.
Memory Unmapping: The malware executes the ZwUnmapViewOfSection system call to release the memory allocated for the original, legitimate executable image within the target process's virtual address space.
Memory Allocation: The dropper calls VirtualAllocEx to allocate a new block of read, write, and execute memory inside the hollowed target process to accommodate the malicious payload.
Payload Injection: The decrypted XMRig mining code is written into the newly allocated memory space using the WriteProcessMemory API call, matching the alignment of the new portable executable headers.
Thread Redirection and Execution: The main thread's context is updated to point to the entry point of the injected cryptomining code, and ResumeThread is called to begin execution within the context of the trusted system process.
Watchdog Persistence and Evasion
To maintain long-term resource hijacking, the malware configures a secondary persistence daemon masqueraded as a legitimate Windows component, such as sihost64.exe. This watchdog process continuously monitors the active PID of the hollowed svchost.exe. If an administrator terminates the hollowed mining process, the watchdog immediately detects the exit and spawns a fresh instance.
Furthermore, the malware monitors active diagnostic utilities on the host operating system. It scans running processes for names associated with administrative tools, including Taskmgr.exe, ProcessHacker.exe, perfmon.exe, and procexp.exe. If any of these monitoring tools are detected, SilentXMRMiner immediately pauses all mining operations or forcefully terminates the analyst utility. This prevents the system's fans from spinning down or showing 100 percent CPU utilization while the administrator is actively looking, maintaining long-term stealth.