Retadup Worm Resurfaces 7 Years After Takedown to Spread CoffeeLoader Malware
Retadup Worm Resurfaces 7 Years After Takedown to Spread CoffeeLoader Malware
Cybersecurity researchers have disclosed details of a new variant of CoffeeLoader, a malware designed to deliver additional payloads to infected machines.
“On launch, the NSIS-based installer executable dropped a file named ‘7z.dll’ into a temporary directory and ran it through rundll32.exe,” Kaspersky said in an analysis published today.
“The ‘7z.dll’ file was a patched version of the original library of the popular 7-Zip archiver. Part of its code had been replaced with malicious self-decrypting shellcode that turned out to be a new version of the Armoury packer.”
CoffeeLoader was first documented by Zscaler ThreatLabz in March 2025, detailing its use of the Armoury packer to resist analysis and ultimately run Rhadamanthys shellcode. The malware is assessed to share source code similarities with another loader family tracked as SmokeLoader.
Malware packed with Armory uses file names like “ArmouryAIOSDK.dll” and “ArmouryA.dll,” with the packer hijacking some of the original Armoury Crate functionality with self-decrypting shellcode.
Notably, the shellcode extracts code that executes a decryption routine on a system’s GPU by making use of the OpenCL library. The end goal is to install CoffeeLoader, establish persistence, and execute it by injecting it into a newly created “dllhost.exe” process.
The latest version of the packer continues to use the GPU, but replaces OpenCL with the OpenGL library. In addition, the new version of the packer delivers intermediate shellcode instead of a DLL. This shellcode serves as a downloader responsible for fetching the main CoffeeLoader malware.
“To establish persistence, the Trojan copies ‘7z.dll’ to subfolders of %PROGRAMDATA% or %LOCALAPPDATA%,” Kaspersky said. “The Run registry key is used for autorun. The subfolder, library, and registry value are named with eight hexadecimal digits generated from system volume information.”
“To protect itself, the downloader creates a registry key that prevents the user from disabling autorun through Task Manager.”
Once persistence is successful, the malware launches one of the legitimate processes (e.g., “dllhost.exe,” “WerFault.exe,” “svchost.exe,” “OpenWith.exe,” or “AtBroker.exe”) and then injects itself into it, after which the malware shellcode is downloaded from a hard-coded command-and-control (C2) server.
The shellcode then decrypts and runs the CoffeeLoader payload. It supports the same three commands to run the next-stage malware from the C2 server –
- Injecting it into a process
- Saving it to disk as an executable and then running it
- Saving it as a DLL and then running it via “rundll32.exe”
As for how CoffeeLoader is distributed, it takes place via Retadup, a Windows computer worm that was disrupted by French law enforcement authorities in August 2019. The malware, which spreads via infected USB drives, has been used to drop additional payloads like cryptocurrency miners, the Stop ransomware, and the Arkei password stealer.
“Two years ago, someone began re-registering the domain names that Retadup had used as C2 servers and using them to issue commands to download third-party malware,” Kaspersky said. “At first, this was the SmokeLoader downloader packed using the 32-bit version of Armoury, but in early 2025, the same servers started serving CoffeeLoader.”
It remains unclear whether the worm’s author or some other threat actor was instrumental in bringing the C2 servers back online. Kaspersky said it blocked around 15,000 systems from being infected with the resurrected version of the worm, most of them located in Peru, Angola, Russia, and Bolivia.
