DBatLoader
- Type
- Loader
- Capabilities
- Initial accessPersistenceDefense evasionProcess injectionDLL sideloadingPrivilege escalationPost exploitation
- Delivery
- Phishing
- Platforms
- Windows
DBatLoader, also known as ModiLoader and NatsoLoader, is a Windows malware loader written in Delphi that is used to retrieve, decrypt, and execute additional payloads. It has been observed delivering commodity malware families including Warzone RAT, Remcos RAT, NetWire, and Formbook. Delivery commonly begins with phishing lures, including HTML or archive attachments that ultimately launch the loader, and DBatLoader has also been associated with abuse of public cloud and content-hosting services such as OneDrive, Google Drive, and Discord for staging later payloads.
The loader uses multilayer obfuscation and has been documented concealing encrypted second-stage content in resources, including steganographic storage within image data. It decodes payloads in memory and executes them directly, including through shellcode-based staging and process hollowing. Observed samples allocate memory with standard Windows APIs and reconstruct either DLL or executable second stages before transfer of execution.
DBatLoader also incorporates defense-evasion and persistence features. Reported behavior includes use of PowerShell to weaken Microsoft Defender coverage, establishment of autorun persistence in the current user context, and self-copying to user-accessible locations. Some samples abuse User Account Control bypass techniques based on mock trusted directories and relative-path DLL hijacking involving auto-elevated binaries, allowing elevated execution without a normal prompt. Persistence has also been achieved through malicious shortcut-based execution.
The malware is best characterized as a loader rather than the final intrusive payload. Its operational role is to bridge initial access and payload deployment, after which delivered malware may provide remote access, credential theft, or other post-compromise functionality. DBatLoader is part of a broader ecosystem of commodity malware distribution and is notable for flexible staging, in-memory execution, cloud-service abuse, and practical Windows-focused evasion techniques.
Techniques & procedures
19 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
2 techniques
Initial Access
FortiGuard Labs observed a python infostealer we call Emansrepo that is distributed via emails that include fake purchase orders and invoices.
The attacker just sends phishing emails with a malicious attachment. The attachment is a DBatLoader, which downloads and decrypts data for the payload.
Execution
5 techniques
Execution
Opening the malicious attachment executes an HTML file with embedded JavaScript that is highly likely generated by an LLM. This script is designed to download and execute additional payloads
Opening the malicious attachment executes an HTML file with embedded JavaScript that is highly likely generated by an LLM. This script is designed to download and execute additional payloads
It creates a link element that points to the data of Purchase-Order.7z and uses the click() method to “download” Purchase-Order.7z.
The attacker’s email sent to the user includes an attached .html file... By quick analyzing the content of the script, it will simulate downloading the file PO-2200934-KINQTE.rar
The auto-elevated 'easinvoker.exe' executable is vulnerable to the 'relative path DLL Hijack' variant of DLL Hijacking... uses it to load the malicious 'netutils.dll'.
Persistence
1 technique
Persistence
By using this file, DBatLoader creates an autorun registry key under 'HKCU\Software\Microsoft\Windows\CurrentVersion\Run' to survive a reboot.
Privilege Escalation
3 techniques
Privilege Escalation
After decrypting these bytes, the payload is executed using a technique known as Process Hollowing. Simply put, the code is injected through the following steps: The target process is created in a suspended state with CreateProcessA; The original process’ code section is removed with NtUnmapViewOfSection; New space is allocated in the process with VirtualAllocEx; The malicious code is written using WriteProcessMemory; Finally, the code is resumed with SetThreatContext and ResumeThread.
By using this file, DBatLoader creates an autorun registry key under 'HKCU\Software\Microsoft\Windows\CurrentVersion\Run' to survive a reboot.
The first 'XdfiifagO.bat' batch file then leverages a well-known technique of bypassing Windows User Account Control (UAC) called the 'Mock Trusted Directories Method' to escalate privileges without displaying a UAC prompt.
Stealth
8 techniques
Stealth
it appears to contain scripts and a large blob of base64-encoded data... DBatLoader typically performs download obfuscated later stage payloads
DBatLoader's resource section contains a GIF image as the second stage encrypted payload.
The ISO image contains a Windows executable (EXE) file for ModiLoader. The EXE file icon impersonates an Excel spreadsheet.
After decrypting these bytes, the payload is executed using a technique known as Process Hollowing. Simply put, the code is injected through the following steps: The target process is created in a suspended state with CreateProcessA; The original process’ code section is removed with NtUnmapViewOfSection; New space is allocated in the process with VirtualAllocEx; The malicious code is written using WriteProcessMemory; Finally, the code is resumed with SetThreatContext and ResumeThread.
The encrypted byte from the resource section is added to the number 79... individual bytes are retrieved to decode the second stage DLL payload.
Therefore, the attacker copies 'easinvoker.exe' to the mock directory and uses it to load the malicious 'netutils.dll', which in turn executes the 'KDECO.bat' script.
The auto-elevated 'easinvoker.exe' executable is vulnerable to the 'relative path DLL Hijack' variant of DLL Hijacking... uses it to load the malicious 'netutils.dll'.
Once the payload has been decoded, the F_Execution_main function is responsible for allocating the decoded payload into memory... through the use of the 'VirtualAlloc' API.
Defense Impairment
1 technique
Defense Impairment
Looking at the decrypted file strings, we can see references to a few batch scripts that are usually created and executed by this malware to accomplish small tasks, like disabling Windows Defender.
Command and Control
2 techniques
Command and Control
The ModiLoader EXE first generated a OneDrive URL using HTTP over TCP port 80. This redirected to an HTTPS version of the same URL over TCP port 443.
DBatLoader ... is known for abusing cloud services, like Google Drive and Discord, to retrieve its second stage... Later, the second stage is downloaded from Discord, which is eventually decrypted and executed in memory.
Observables
30 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
14 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.