BazarLoader
- Type
- Loader
- Capabilities
- Initial accessDefense evasion
- Delivery
- PhishingSpearphishingLure
- Platforms
- Windows
BazarLoader is a Windows malware loader developed by members of the TrickBot operation and used to establish initial access and download additional malicious payloads. It is closely associated with the TrickBot/ITG23 cybercrime ecosystem and attack chains leading to Ryuk and Conti ransomware. BazarLoader frequently deploys Cobalt Strike, enabling operators to conduct subsequent network compromise and ransomware deployment.
Distribution primarily relies on phishing and spearphishing emails containing malicious attachments or links to attacker-controlled download pages and abused legitimate file-hosting services. Lures impersonate business correspondence, invoices, customer complaints, retail orders, and documents requiring review. Observed delivery chains include ZIP archives containing JavaScript and malicious Windows App Installer packages hosted on cloud infrastructure. BazarLoader samples have also been protected with crypters and signed using abused code-signing certificates to hinder detection.
BazarLoader has served initial access brokers and ransomware operators targeting organizations across multiple sectors. UNC1878 used it in targeted attacks against U.S. hospitals and healthcare providers, deploying Cobalt Strike before subsequent domain compromise and Ryuk execution. Its role is payload delivery and access enablement rather than file encryption itself.
Associated vulnerabilities
3 CVEs Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
Associated threat actors
12 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
The reduction in time from broker to ransomware operator is likely due to large-scale BazarLoader and IcedID infection campaigns and broker relationships with the Conti ransomware.
Previously, the crypters were used predominately with the core malware families associated with ITG23 and their close partners; this included Trickbot, Emotet, BazarLoader, IcedID, CobaltStrike...
Members of the Trickbot gang are long time partners of Conti, and they have recently developed BazarLoader which downloads additional malware onto a victim’s computer.
B aza (BazarLoader & BazarBackdoor) has been attributed to the organized cybercrime group behind Trickbot... Since then, the terms Baza or Bazarloader have been used interchangeably to reference this particular malware family.
BazarLoader (also known as Bazar Loader, Bazar Backdoor or Team9 Backdoor) is a module of the dreaded TrickBot Trojan. It is mostly used to gain a foothold in compromised enterprise networks.
The emergence of Bumblebee in phishing campaigns in March coincides with a drop in using BazarLoader for delivering file-encrypting malware, researchers say.
+6 more in the app. View in Mallory
Techniques & procedures
52 distinct techniques documented for this family, organized by ATT&CK tactic.
Reconnaissance
2 techniques
Reconnaissance
MITRE ATT&CK T5190 Gather Victim Network Information
A call center operator then answers and directs victims to a website to unsubscribe from the service. Call center operators offer to personally guide victims through a process designed to infect vulnerable computers with BazarLoader.
Initial Access
5 techniques
Initial Access
MITRE ATT&CK T1189 Drive-by Compromise
In an attack scenario, threat actors could craft a malicious attachment and deliver it to victims via either email or a link inside of an email; the attachment would appear as a legitimate application.
threat actors could craft a malicious attachment and deliver it to victims via either email or a link inside of an email; the attachment would appear as a legitimate application. Opening the malicious attachment leads to the deployment of malware.
threat actors could craft a malicious attachment and deliver it to victims via either email or a link inside of an email
BazarCall’s routine starts with a spam mail stating that the victim’s free trial period for a service rendered by the fictitious company “Medical Reminder Service” is about to end... the user is directed to call a provided phone number to unsubscribe.
Execution
10 techniques
Execution
This =WmiC| command is a DDE function that causes Microsoft Excel, if given permission, to launch WMIC.exe and execute the provided PowerShell command to input data into the open workbook.
After execution of the initial access malware, many threat actors deploy persistence mechanisms, such as the creation of scheduled tasks... Scheduled tasks were the most common persistence method observed in our intrusions.
Both Javascript files are executed with eval one after the other, so we can merge them into one file...
The command table allows to handshake, heartbeat, shellcode, powershell or cmd, as evidenced in the strings seen during execution.
cmd.exe /c certutil -decode %PUBLIC%\130486.dot %PUBLIC%\130486.pgj
The phone operator continues to guide the user into unwittingly enabling macros that will drop a malicious binary... The group used malicious spam that contains a password-protected Word document with malicious macros.
The hta script deobfuscates and executes Javascript. The Javascript then downloads and runs the BazarLoader payload from a hard-coded URL using ActiveX.
Opening the malicious attachment leads to the deployment of malware.
there is an Excel spreadsheet named subscription_1617056233.xlsb . This spreadsheet has malicious macros. | At the video's 10 minute mark, I enable macros on the malicious spreadsheet, but nothing apparently happened. So the call center operator had me re-open the spreadsheet and enable macros again.
Microsoft Excel supports a feature called Dynamic Data Exchange (DDE), which can be used to execute commands whose output is inputted into the open spreadsheet, including CSV files. Unfortunately, threat actors can also abuse this feature to execute commands that download and install malware on unsuspecting victims.
Persistence
3 techniques
Persistence
After execution of the initial access malware, many threat actors deploy persistence mechanisms, such as the creation of scheduled tasks... Scheduled tasks were the most common persistence method observed in our intrusions.
After execution of the initial access malware, many threat actors deploy persistence mechanisms... registry “Run” Keys.
When we mount the malicious ISO file, we see that a drive is mounted on the system that contains a shortcut file named “Attachments.lnk” and a hidden file named “documents.log” .
Privilege Escalation
5 techniques
Privilege Escalation
After execution of the initial access malware, many threat actors deploy persistence mechanisms, such as the creation of scheduled tasks... Scheduled tasks were the most common persistence method observed in our intrusions.
The sample will finally inject the following executable, which only 3 out of 76 products even classify as malicious.
Next, using the injection struct, the malware calls CreateProcessA to create the target process in the suspended state to perform process hollowing... NtUnmapViewOfSection is called... VirtualAllocEx and WriteProcessMemory are then called... Finally, BAZARLOADER calls SetThreadContext ... and calls ResumeThread
After execution of the initial access malware, many threat actors deploy persistence mechanisms... registry “Run” Keys.
When we mount the malicious ISO file, we see that a drive is mounted on the system that contains a shortcut file named “Attachments.lnk” and a hidden file named “documents.log” .
Stealth
14 techniques
Stealth
The second is opaque predicate, a technique used for control flow obfuscation... Malware authors make use of multiple OPs together with unexecuted code blocks to add complexities that static analysis tools have to deal with. | The first technique is API function hashing, a known trick to obfuscate which functions are called... BazarLoader obfuscates its function calls to make analysis more difficult and to evade detection techniques that rely on reading the IAT.
In fact, BazarLoader resolves every API function to be called individually at run time... The API function resolution procedure ... returns the address of the requested function.
Exploitation allows a threat actor to create a malicious file that appears to be a legitimate application.
The sample will finally inject the following executable, which only 3 out of 76 products even classify as malicious.
Next, using the injection struct, the malware calls CreateProcessA to create the target process in the suspended state to perform process hollowing... NtUnmapViewOfSection is called... VirtualAllocEx and WriteProcessMemory are then called... Finally, BAZARLOADER calls SetThreadContext ... and calls ResumeThread
Base64 encoded data is implemented in the HTML tag which is used later with javascript.
Once macro-enabled, the mshta.exe process executes to download a payload.
The DLL was saved to the victim’s home directory at C:\Users\[username]\tru.dll . It ran using regsvr32.exe .
C:\Windows\System32\rundll32.exe documents.log,vspa
To check for multiple running instances of itself... BAZARLOADER checks if the mutex “{b837ef4f-10ee-4821-ac76-2331eb32a23f}” is currently owned by any other process... After this, the malware resolves the string “{0caa6ebb-cf78-4b01-9b0b-51032c9120ce}” and tries to create a mutex with that name.
Malware sometimes abuses these challenges by “sleeping” in the sandbox before carrying out malicious procedures to hide its real intentions. | API Hammering has been a known sandbox bypass technique that is sometimes used by malware authors to evade sandboxes. We’ve recently observed Zloader and the backdoor BazarLoader using new and unique implementations of API Hammering to remain stealthy.
the last entry above is an IP address check by the infected Windows host... During the Cobalt Strike traffic, seven HTTP requests to checkip.amazonaws[.]com appear as the infected Windows host periodically checks its IP address.
MITRE ATT&CK T1564 Hide Artifacts
Similar to the majority of Baza campaigns, the tasks that were executed came in the form of cobalt strike stagers. The benefit of using this “fileless” mechanism, is nothing touches disk.
Defense Impairment
1 technique
Defense Impairment
malware is often signed with valid Authenticode certificates... The SolarMarker actor always signs his first stage payload
Discovery
7 techniques
Discovery
It makes use of a huge loop with a random count that repeatedly accesses a list of random registry keys in Windows.
After gaining access to a Windows domain controller, the attackers then deploy the Ryuk ransomware on the network to encrypt all of its devices...
MITRE ATT&CK T1082 System Information Discovery
To generate the random loop count and list of registry keys, the sample reads the first file from the System32 directory that matches a defined size.
Malware sometimes abuses these challenges by “sleeping” in the sandbox before carrying out malicious procedures to hide its real intentions. | API Hammering has been a known sandbox bypass technique that is sometimes used by malware authors to evade sandboxes. We’ve recently observed Zloader and the backdoor BazarLoader using new and unique implementations of API Hammering to remain stealthy.
the last entry above is an IP address check by the infected Windows host... During the Cobalt Strike traffic, seven HTTP requests to checkip.amazonaws[.]com appear as the infected Windows host periodically checks its IP address.
BAZARLOADER manually checks the system’s languages to avoid executing on machines in Russia and nearby countries. It calls GetSystemDefaultLangID to retrieve the system’s default language and GetKeyboardLayoutList to iterate through the system’s keyboard layouts.
Collection
2 techniques
Collection
By covering as much ground as possible, attackers can harvest and leak data to their C2 (Command and Control Infrastructure) before deploying ransomware payloads on the network.
The email contains a ZIP attachment which is protected with a password that is provided in the email text.
Command and Control
10 techniques
Command and Control
To generate Internet activities to hide its communication with C2 servers... The malware then spawns a thread to periodically connect to random URLs and generate noises to hide the main C2 traffic.
Cobalt Strike was sent through encrypted HTTPS traffic generated by BazaLoader.
Many of these servers have also acted as Cobalt Strike beacon C2 servers.
For each of these custom domains, BAZARLOADER calls DnsQuery_A to query a DNS Resource Record from OpenNIC’s servers to resolve the C2 server’s IP address.
Reverse Proxy using Cobalt Strike Beacon A technique that we come across often is a reverse proxy. We see instances where threat actors use their beacon sessions to establish RDP access through a reverse proxy.
That second time, the campo URL redirected to: hxxp://veso2[.]xyz/uploads/files/rt3ret3.exe The above URL returned a Windows executable (EXE) file.
strings are decrypted by XOR-ing with a key value (this value may not be fixed) or through quite complex computation
When installed, BazarLoader will eventually deploy Cobalt Strike, which allows threat actors to remotely access the victim's computer and use it to compromise the rest of the network.
The article shows that the DGA is part of Bazar Loader, which will try to download Bazar Backdoor.
When I analyzed the domain generation algorithm of BazarLoader, I noticed a sample that generates bizarre “domains” ... The authors meant to use .bazar , which is a valid EmerDNS domain.
Exfiltration
1 technique
Exfiltration
By covering as much ground as possible, attackers can harvest and leak data to their C2 (Command and Control Infrastructure) before deploying ransomware payloads on the network.
Observables
266 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
120 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.