New CoffeeLoader Malware Variant Uses GPU-Based Armoury Packer to Deliver Additional Payloads
Cybersecurity researchers have identified a new variant of CoffeeLoader, a malware loader designed to deliver additional malicious payloads to compromised Windows systems.
According to Kaspersky, the updated malware uses a modified version of the popular 7-Zip library to execute malicious shellcode, establish persistence, and download additional malware from attacker-controlled command-and-control (C2) servers.
The latest variant also introduces changes to its Armoury packer, replacing the previously used OpenCL library with OpenGL for GPU-assisted code decryption.
Modified 7-Zip Library Used to Launch CoffeeLoader
In its analysis, Kaspersky explained that the infection begins with an NSIS-based installer executable.
When launched, the installer drops a file named 7z.dll into a temporary directory and executes it through rundll32.exe.
The DLL is a modified version of the original 7-Zip library. Parts of its code have been replaced with malicious self-decrypting shellcode associated with a new version of the Armoury packer.
The packer disguises its malicious functionality by modifying components associated with legitimate Armoury Crate software.
CoffeeLoader was first documented by Zscaler ThreatLabz in March 2025. Earlier research showed that the malware used the Armoury packer to evade security analysis and execute Rhadamanthys shellcode.
Researchers have also identified source-code similarities between CoffeeLoader and another malware loader family known as SmokeLoader.
New Armoury Packer Replaces OpenCL With OpenGL
Earlier versions of the Armoury packer used the OpenCL library to execute a decryption routine on a system's GPU.
The process involved extracting shellcode that used GPU computing capabilities to decrypt additional code, ultimately enabling CoffeeLoader installation and execution.
The latest version retains GPU-assisted decryption but replaces OpenCL with OpenGL.
Another important change is that the updated packer delivers intermediate shellcode instead of directly delivering a DLL.
This shellcode acts as a downloader responsible for retrieving the main CoffeeLoader malware from the attacker's infrastructure.
The changes demonstrate how the malware developers are modifying the infection process while retaining the packer's GPU-based execution techniques.
CoffeeLoader Uses Registry Persistence and Process Injection
After execution, the malware establishes persistence by copying 7z.dll into subdirectories under %PROGRAMDATA% or %LOCALAPPDATA%.
It then creates a Windows Run registry entry to execute automatically when the system starts.
According to Kaspersky, the directory, DLL, and registry value names are generated using eight hexadecimal characters derived from system volume information.
The downloader also creates a registry key designed to prevent users from disabling its automatic startup through Task Manager.
Once persistence is established, the malware launches a legitimate Windows process and injects its code into it.
Observed process names include:
dllhost.exeWerFault.exesvchost.exeOpenWith.exeAtBroker.exe
After injection, the malware retrieves additional shellcode from a hard-coded command-and-control server.
The shellcode decrypts and executes the CoffeeLoader payload.
Three Methods Used to Deliver Additional Malware
CoffeeLoader supports three execution methods for deploying subsequent malware obtained from its C2 infrastructure:
- Process injection: Injecting the next-stage payload directly into another running process.
- Executable delivery: Saving the downloaded payload to disk as an executable file and launching it.
- DLL execution: Saving the payload as a DLL and executing it through
rundll32.exe.
These capabilities allow attackers to deliver different types of malware depending on their objectives and the compromised environment.
Retadup Worm Used to Distribute CoffeeLoader
Kaspersky identified Retadup as the distribution mechanism associated with the latest CoffeeLoader activity.
Retadup is a Windows computer worm that spreads through infected USB drives. French law enforcement authorities disrupted its infrastructure in August 2019.
Historically, the worm was used to distribute additional malicious payloads, including cryptocurrency miners, Stop ransomware, and the Arkei password stealer.
However, Kaspersky discovered that some of the domain names previously used by Retadup as C2 servers were registered again approximately two years ago.
These domains were subsequently used to distribute third-party malware.
Initially, the infrastructure delivered SmokeLoader packed with the 32-bit version of Armoury. In early 2025, the same servers began distributing CoffeeLoader.
Researchers have not determined whether the original Retadup operators or another threat actor were responsible for reactivating the infrastructure.
Kaspersky Blocks Around 15,000 Infection Attempts
Kaspersky reported blocking approximately 15,000 systems from being infected by the revived Retadup worm.
Most of the affected systems were located in:
- Peru
- Angola
- Russia
- Bolivia
The findings indicate that previously disrupted malware infrastructure can become active again when threat actors regain control of abandoned command-and-control domains.
The reuse of Retadup infrastructure also provides attackers with an existing distribution channel for delivering newer malware families.
Conclusion
The latest CoffeeLoader variant highlights how malware developers continue to modify established loaders to improve stealth, persistence, and payload delivery.
By combining a modified 7-Zip library, an updated Armoury packer, GPU-assisted decryption, registry persistence, and process injection, the malware creates multiple stages that can complicate detection and analysis.
The revival of Retadup infrastructure further demonstrates that dismantling a malware campaign does not always eliminate the risk permanently.
Security teams should monitor suspicious DLL execution through rundll32.exe, unexpected modifications to Windows Run registry keys, unusual process injection activity, and unauthorized communication with external command-and-control servers.
Follow Hacklido for the latest cybersecurity news, malware research, vulnerability disclosures, and threat intelligence.
Connect with Hacklido:
- LinkedIn: https://www.linkedin.com/company/hacklido/
- Twitter / X: https://x.com/hacklido