








Aryaka Threat Research Lab examined a highly obfuscated Windows batch script that delivers Donut shellcode and installs a memory-resident .NET implant inside a legitimate Windows process.
The infection begins with a malicious batch script that uses variable substitution, randomized labels, control-flow obfuscation, and junk instructions to hide its behavior. It performs environment checks to evade analysis systems before creating a hidden staging directory at C:\ProgramData\IntelDriver. The malware reconstructs embedded payloads and uses a renamed copy of powershell.exe, named HDVz.exe, to execute subsequent stages. Persistence is established via a scheduled task that silently launches the malware at user logon. The recovered PowerShell loader primarily injects Donut shellcode into explorer.exe, allowing the final .NET implant to run in memory within a trusted Windows process.
See below for characteristics of the DonutLoader Campaign
A distinctive finding was the custom memory marker: DE AD BE CA FE BA EF. The malware places this marker immediately before the injected shellcode and scans candidate processes for it before injection. This allows the loader to identify previously injected processes, prevent duplicate shellcode deployment, and reduce the risk of process instability. The marker also provides defenders with a valuable memory-based threat-hunting indicator.
During execution, curl.exe sends an HTTP POST request to the Telegram Bot API’s /sendMessage endpoint, using a hardcoded bot token and chat ID. This request includes an operator notification confirming successful malware execution and indicating that an operator-controlled Telegram channel is used to monitor active infections. After process injection, the .NET implant attempts to connect to 167.88.167.9:8356 via outbound TCP, suggesting a dedicated command-and-control channel. Since the remote infrastructure was unavailable during analysis, the operator tasks and full post-infection capabilities could not be assessed.
Organizations are advised to monitor for renamed PowerShell binaries, concealed directories within ProgramData, suspicious scheduled tasks, script execution from user-writable locations, process injection activities, private executable memory, and alterations to AMSI or ETW functions. Endpoint activities should also be correlated with anomalous Telegram Bot API requests and outbound connections originating from trusted processes such as explorer.exe. Behavioral correlation offers a more robust detection approach than relying solely on filenames, hashes, IP addresses, or other individual indicators.
The complete Aryaka Threat Research Lab report provides a detailed technical breakdown of the infection chain, including:
Download the full report here: Donutloader multi stage loader report
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。