BATLOADER
- Type
- Loader
- Capabilities
- Initial accessPrivilege escalationDefense evasionReconnaissancePersistence
- Delivery
- MalvertisingSeo poisoningLanding pageLure
- Platforms
- Windows
BatLoader is a Windows malware loader first identified in February 2022 that establishes initial access and delivers additional malicious payloads. It is distributed through malvertising, including Google search advertisements, and SEO poisoning that direct users to counterfeit software download sites. These sites impersonate legitimate applications and distribute trojanized Windows Installer packages. Campaigns have affected organizations across business and financial services, manufacturing, healthcare, retail, telecommunications, and other sectors.
BatLoader uses multistage execution chains involving batch scripts, PowerShell, and, in later variants, Python. Malicious installer custom actions initiate scripts that retrieve, decrypt, and execute subsequent stages. The malware profiles victims through domain membership, user and computer information, network-neighbor enumeration, and installed security products, allowing operators to tailor payload delivery to the environment. It obtains elevated execution through UAC prompts and utilities such as NirCmd and NSudo. Defense-evasion techniques include oversized installers, digitally signed packages, encrypted payloads, PyArmor-protected Python scripts, Microsoft Defender exclusions, and disabling security services, notifications, and administrative tools. Campaigns have also installed legitimate remote-management tools such as Atera and Syncro to maintain access.
Delivered payloads include Ursnif/ISFB, Vidar, RedLine Stealer, SystemBC, and Cobalt Strike. BatLoader infections have preceded Royal ransomware deployment, making the loader an enabler of financially motivated intrusions rather than a ransomware family itself. Its operation is associated with the threat cluster tracked as Water Minyades. BatLoader is distinct from FakeBat, also known as EugenLoader, despite historical overlap in reporting and similarities in installer-based delivery.
Associated threat actors
4 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
In June 2023, Trend Micro observed an upgrade to the evasion techniques used by the Batloader initial access malware... The group behind Batloader ... have begun employing Pyarmor Pro ... to obfuscate its main malicious python scripts.
One such threat that has been particularly prevalent over the last couple of months is BatLoader. Named by Mandiant, BatLoader is an initial access malware that heavily uses batch and PowerShell scripts to gain a foothold on a victim machine and deliver other malware.
Malsmokeと呼ばれる攻撃キャンペーンを実行している攻撃グループであり、Batloaderと呼ばれるマルウェアを使用しており、DEV-0569やWater Minyadesと重複があります。
Malsmokeと呼ばれる攻撃キャンペーンを実行している攻撃グループであり、Batloaderと呼ばれるマルウェアを使用しており、DEV-0569やWater Minyadesと重複があります。
Techniques & procedures
45 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
5 techniques
Resource Development
Initial access techniques include malvertising, callback phishing ... and forum or blog comments containing malicious links. These lead to downloads of malware, including BATLOADER and Qakbot, which in turn deliver secondary payloads that eventually lead to ransomware deployment.
One notable campaign is leveraging pay-per-click advertising to deliver popular software such as Slack, 7zip, Open Broadcasting Studio (OBS), and VLC media player.
MITRE ATT&CK: T1588: Obtain Capabilities
MITRE ATT&CK: T1608.004: Stage Capabilities - Drive-by Target
Earlier this year, Mandiant researchers observed Batloader using search engine optimization (SEO) poisoning techniques in its attacks.
Initial Access
3 techniques
Initial Access
Drive by social-engineering attacks remains a popular vector for various malware loaders.
Initial access techniques include malvertising, callback phishing (the use of a false payment or subscription confirmation message to lead a target to call a telephone number controlled by the attackers, who direct victims to download malicious files once they call), and forum or blog comments containing malicious links.
Victims can be redirected to these websites via malvertising techniques and fake comments on forums containing links that lead to Batloader distribution websites.
Execution
10 techniques
Execution
Batloader is predominantly script-based ... utilizing legitimate tools to hide and obfuscate their scripts.
The malicious actor(s) create a custom action to run the malicious PowerShell inline script. The malicious script resides under AI_DATA_SETTER action name and contains the instructions to download the malicious update.bat file from the C2 domain
The MSI File executes the following command line: "C:\Windows\System32\cmd.exe" /c ... Python2.bat
it will execute a User Account Control (UAC) prompt via a file named getadmin.vbs
Python executes framework.py using the following command: cmd /c python.exe framework.py
Starting November 27, 2022, we observed that Water Minyades actors switched to using JavaScript files instead of MSI files as the initial Batloader payload.
Mitre ATT&CK Mapping Tactic Technique Procedure ... T1072 Software Deployment Tools
the user unknowingly downloaded and executed AdobeSetup.msi
The malware is delivered via malicious documents such as macro-enabled office docs or via malicious installers downloaded via Google Ad campaigns.
MITRE ATT&CK Tactic User Execution ID T1204.002 MITRE ATT&CK Technique Malicious File Description The user launches the malicious MSI file
Persistence
3 techniques
Persistence
the script recursively removes the implementation of Windows Defender IOfficeAntiVirus under HKLM:\SOFTWARE\Microsoft\AMSI\Providers\{2781761E-28E0-4109-99FE-B9D127C57AFE}. It then adds the extensions such as exe and DLL as exclusions to Windows Defender.
Batloader executes open-sourced scripts that attempt to stop services related to security software, such as Windows Defender.
BatLoader’s stealth and persistence are what made this malware stand out from the rest during its latest campaign.
Privilege Escalation
4 techniques
Privilege Escalation
Batloader executes open-sourced scripts that attempt to stop services related to security software, such as Windows Defender.
BatLoader’s stealth and persistence are what made this malware stand out from the rest during its latest campaign.
update.bat downloads requestadmin.bat and nircmd.exe, a command line utility that can be used to gain admin privileges with the “elevate” and “elevatecmd” switches.
If not, it will execute a User Account Control (UAC) prompt via a file named getadmin.vbs. Once it has obtained admin rights...
Stealth
12 techniques
Stealth
The group behind Batloader ... have begun employing Pyarmor Pro ... to obfuscate its main malicious python scripts.
Raise awareness of malware masquerading as legitimate applications
Mitre ATT&CK Mapping Tactic Technique Procedure ... T1070 Indicator Removal
It creates a temporary bat file to copy itself to %temp% location and later deletes the bat file and starts execution of dropped file.
OpenSSL is used to decrypt the downloaded file ( a.exe.enc ) using AES-256 encryption ... The decrypted result is then saved in the file named control.exe
WorkFolders.exe is called, leveraging a signed execution LOLBAS technique to execute control.exe
These scripts can be executed by MSHTA.exe due to a vulnerability in the PE Authenticode verification process.
Recent samples analyzed by TRU utilize Windows Installer files masquerading as the above applications
the script retrieves the Cobalt Strike payload named installv2.dll ... and runs it via rundll32.exe with an ordinal “SRANdomsrt”
Since its MSI installer file size is 100MB+, BatLoader can easily evade most sandboxes and antivirus tools.
The loader drops certain malware if certain conditions of the infected host are met (e.g., ARP table, domain check).
The downloaded file was a VHD container which, when mounted, revealed Installer.bat, a batch file containing simple commands intended to raise execution privileges; add scanning exclusions for Windows Defender; and download and execute a remote batch script and an executable.
Defense Impairment
3 techniques
Defense Impairment
the script recursively removes the implementation of Windows Defender IOfficeAntiVirus under HKLM:\SOFTWARE\Microsoft\AMSI\Providers\{2781761E-28E0-4109-99FE-B9D127C57AFE}. It then adds the extensions such as exe and DLL as exclusions to Windows Defender.
MITRE ATT&CK: T1222: File and Directory Permissions Modification
The last BatLoader campaign performs the antivirus checks and is capable of modifying Windows UAC prompt, disabling Windows Defender notifications, disabling Task Manager, disabling command prompt, preventing users from accessing Windows registry tools, disabling the Run command
Discovery
5 techniques
Discovery
the script will attempt to fingerprint the network infrastructure of the victim environment by executing arp.exe , mapping IP addresses to MAC addresses and retrieving the domain name via the WMI command-line (WMIC) utility.
The victim’s network infrastructure is fingerprinted using the following commands: whoami /groups
The PowerShell script scripttodo.ps1 runs some discovery commands... computersystem get domain arp.exe -a
Since its MSI installer file size is 100MB+, BatLoader can easily evade most sandboxes and antivirus tools.
The loader drops certain malware if certain conditions of the infected host are met (e.g., ARP table, domain check).
Lateral Movement
1 technique
Lateral Movement
Mitre ATT&CK Mapping Tactic Technique Procedure ... T1072 Software Deployment Tools
Collection
1 technique
Collection
expand the openssl.zip and frameworkb.rar archives, which are files used for the next stages of Batloader’s execution chain.
Command and Control
3 techniques
Command and Control
This information is then sent to the command-and-control (C&C) server, which is countingstatistic[.]com in this case.
The malicious script... contains the instructions to download the malicious update.bat file from the C2 domain... the script retrieves the following files: d2ef5.exe.gpg, p9d2s.exe.gpg, d655.dll.gpg, f827.exe.gpg
Batloader has also been observed installing remote monitoring software such as Servably’s Syncro and Atera RMM. This ensures the malware operators maintain access to the infected systems.
Impact
1 technique
Impact
These lead to downloads of malware, including BATLOADER and Qakbot, which in turn deliver secondary payloads that eventually lead to ransomware deployment.
Observables
234 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
27 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.