Buer Loader
- Type
- Loader
- Capabilities
- Initial accessPersistenceDefense evasionReconnaissanceProcess injection
- Delivery
- PhishingSpearphishingMalspamLureMalvertisingExploit kit
- Platforms
- Windows
Buer Loader, also known as Buer, is a commercial modular malware loader first advertised on underground forums in August 2019. It targets 32-bit and 64-bit Windows systems, establishing an initial foothold and downloading and executing additional payloads. Sold to multiple cybercriminal operators, it has delivered TrickBot, Raccoon Stealer, Cobalt Strike Beacon, and other malware. Buer infections have also enabled Ryuk ransomware intrusions. Its distributors have included TA800, TA578, and the TrickBot-associated group GOLD BLACKBURN.
Buer is distributed through phishing and malicious spam, commonly using macro-enabled Word or Excel documents and links to cloud-hosted malicious documents. Campaigns have used shipping, wage, tax, and COVID-19 lures. Other observed delivery mechanisms include signed Excel add-ins, Java-based download chains, and malvertising through the Fallout Exploit Kit. Its victims span numerous industries, with healthcare, banking, and telecommunications prominent in detection telemetry.
The loader supports disk-based execution, in-memory payload loading, process injection, remote updates, and persistence through startup shortcuts or Windows RunOnce entries. It profiles infected hosts, collecting operating-system details, architecture, privileges, computer and user names, and Active Directory information. A DomainInfo component provides additional information about domain membership and the surrounding network. Its control panel supports infection tracking, task assignment, payload management, and filtering by geography and host characteristics. Command-and-control communications use HTTP or HTTPS with encoded and RC4-encrypted data.
Buer employs debugger and virtualization checks, execution delays, API hashing, obfuscation, and locale-based exclusions intended to avoid Commonwealth of Independent States countries. Observed deployments have also modified Microsoft Defender exclusions. The original loader was written in C; a Rust rewrite identified in 2021 as RustyBuer retained compatibility with existing Buer command-and-control servers and panels while introducing different implementation and obfuscation characteristics.
Associated threat actors
7 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
rule win_buer_auto { ... description = "Detects win.buer." ... malpedia_reference = "https://malpedia.caad.fkie.fraunhofer.de/details/win.buer" ... }
Buer Loader, detected by Trend Micro as Trojan.Win32.BUERLOADER, was first observed when it was advertised as a modular loader in August 2019. Since then, Buer Loader has continued its activity and shown signs of further development. Buer Loader's main function is to download and execute additional payloads.
In 2020, we observed the shift from TA800 distributing the Trick, with intermittent shifts to Buer Loader, and a consistent distribution of Bazaloader since April 2020.
While analyzing the infrastructure, we discovered the Buer and Smoke loaders.
TA578 uses email campaigns to deliver malware like Ursnif, IcedID, KPOT Stealer, Buer Loader, and BazaLoader, as well as Cobalt Strike.
One of the crews involved in TrickBot has been utilizing Buer loader for sometime now to ultimately deliver CobaltStrike and ultimately leading to ransomware.
+1 more in the app. View in Mallory
Techniques & procedures
48 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
5 techniques
Initial Access
According to Stern, Netwalker will use the TrickBot botnet to distribute their malware.
Figure 2: HTTP network traffic trace with the Fallout EK exploiting vulnerable browsers
The campaigns generally used DHL-themed phishing emails to distribute malicious Word or Excel documents.
The loader uses emails with Word attachments containing macros to download the next stage.
They contained a link to a malicious Microsoft Word or Excel document download that used macros to drop the new malware variant.
Execution
10 techniques
Execution
A notable aspect of Buer Loader’s arrival is its use of malicious Microsoft Word and Microsoft Excel documents containing an embedded VBA macro that creates a process via WMI.
Depending on the version, the registry entry will execute the malware directly or schedule a task to execute it.
The C2 functions are handled via HTTP(S) POST requests.
This leads to a Base64-encoded command that is executed by PowerShell.
Further inspection of the command being executed by cmd.exe shows the full base64 command.
They contained a link to a malicious Microsoft Word or Excel document download that used macros to drop the new malware variant.
Otherwise, the dropper then dumps the Buer bot in memory and executes it.
Buer’s new functionality around loading shellcode as a task allowing for broader functionality against targets without the need for downloading a separate CobaltStrike stager.
The AutohotKey downloader was submitted by the name setupres.exe to VirusTotal, so it is probably advertised and distributed as PC Booster installer making this a classic trojan horse.
The threat actors tried to make the emails appear as legitimate as possible to convince users to enable macros.
Persistence
4 techniques
Persistence
Depending on the version, the registry entry will execute the malware directly or schedule a task to execute it.
Buer queries the Windows Registry for the value of \Microsoft\Cryptography\MachineGuid to get the unique identifier for the infected machine.
autorun - indicates whether to setup Registry RunOnce persistence for the payload modules
The created folder “zsadsadsad” contains LNK shortcut file... we found out that it will link to the created copy.
Privilege Escalation
4 techniques
Privilege Escalation
Depending on the version, the registry entry will execute the malware directly or schedule a task to execute it.
The process tree of VMRay shows process injection via CreateRemoteThread from plugin.exe into secinit.exe.
autorun - indicates whether to setup Registry RunOnce persistence for the payload modules
The created folder “zsadsadsad” contains LNK shortcut file... we found out that it will link to the created copy.
Stealth
14 techniques
Stealth
the macro function itself is obfuscated using Hex-encoded strings that must be concatenated, reordered, and decoded.
The use of stageN consists in separating the malware program into several specialized sub-parts in order to escape antivirus detection. In this case, stage1 is the malware program as sent to victims and stage2 is the payload encapsulated in stage1.
This sample contains a function to encrypt strings.
The author also notes that the loader runs as a surrogate process of a trusted application
The process tree of VMRay shows process injection via CreateRemoteThread from plugin.exe into secinit.exe.
After passing through this loop, we arrive at the decryption function of stage2... This data, once reconstituted, is placed in a buffer which is decrypted. We then recognize a Key Schedule type mechanism, followed by a generator reminiscent of RC4... The decompression is performed by the version 0.1.3 of the lzma-rs library.
It is observed that a signed XLL file delivers Buer Loader.
The bot can be configured for execution either as a 32-bit Windows executable or as a DLL.
MITRE ATT&CK Defense Evasion T1480.001 – Environmental Keying
Once the processes have been enumerated, the malware proceeds to check for sandboxes and analysis tools.
Buer Loader also uses code obfuscation techniques... Additionally, the loader makes use of several time-based evasion techniques: Reading the Windows installation date; Querying the system time; Using long sleep periods to make dynamic analysis difficult.
Using long sleep periods to make dynamic analysis difficult.
sandbox bypass techniques and memory loading of offended binaries by an unknown mechanism have been observed.
The GetProcessHeap and IsDebuggerPresent functions are used to detect if the malware is being debugged.
Defense Impairment
3 techniques
Defense Impairment
Buer queries the Windows Registry for the value of \Microsoft\Cryptography\MachineGuid to get the unique identifier for the infected machine.
One of the notable changes made by Buer Loader was the purchase of Sectigo OV Code Signing certificates. This allowed for a new delivery mechanism, observed as the use of a signed XLL file, to deliver Buer Loader.
...another (add-mppreference -exclusionpath) to make changes to Windows Defender’s exclusion list—concealing files it downloads from Windows’ built-in malware protection.
Discovery
11 techniques
Discovery
NetWkstaGetInfo
A Rust crate ... is used to retrieve system information that is to be sent in an HTTP POST request to the C&C.
Another functionality that this loader contains is to enumerate processes or threads and query a list of all running processes by using CreateToolhelp32Snapshot and ProcessInformation.
These requests contain encrypted system information from the infected machine.
One such functionality is to query local or system time, or GetSystemTimeAsFileTime as seen in Figure 13.
The data gathered is constructed into a JSON blob listing ‘Id’, ‘Domains’, ‘Group’ and ‘Server’.
Once the processes have been enumerated, the malware proceeds to check for sandboxes and analysis tools.
Buer Loader also uses code obfuscation techniques... Additionally, the loader makes use of several time-based evasion techniques: Reading the Windows installation date; Querying the system time; Using long sleep periods to make dynamic analysis difficult.
Using long sleep periods to make dynamic analysis difficult.
...and then checks language and localization settings to determine the geographic region of the system being attacked. If the settings match a CIS country, it will exit without depositing the malware.
The GetProcessHeap and IsDebuggerPresent functions are used to detect if the malware is being debugged.
Collection
1 technique
Collection
MITRE ATT&CK Collection T1005 – Data from Local System
Command and Control
5 techniques
Command and Control
Part of Buer Loader’s service is to setup a domain to facilitate C&C.
The C2 functions are handled via HTTP(S) POST requests.
The decoded command shows the creation of a web request to retrieve Buer Loader from softersyu[.]com. The loader is then saved to \ProgramData\, and the process is started.
The requests use the following to encrypt or encode the information: Base64, Hex encoding, RC4 encryption.
The loader uses a FastFlux architecture.
Exfiltration
1 technique
Exfiltration
After all the data has been collected it will simply post it off to the C2, in doing so a hardcoded User-Agent is passed in.
Observables
115 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
35 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.