Retadup Worm Resurfaces 7 Years After Takedown to Spread CoffeeLoader Malware
About 3 min read
securitysoftwarehardwarenetworking
Cybersecurity researchers have uncovered a new variant of the CoffeeLoader malware, a malicious program designed to deliver additional payloads to infected machines. This variant is notable for its use of a patched version of the 7-Zip archiver's library, which contains self-decrypting shellcode that ultimately leads to the execution of the CoffeeLoader malware. The malware is linked to the Retadup worm, a Windows computer worm that was disrupted by French law enforcement authorities in August 2019.
The CoffeeLoader malware is spread through the Retadup worm, which infects machines via infected USB drives. The worm was previously used to drop additional payloads such as cryptocurrency miners, the Stop ransomware, and the Arkei password stealer. However, two years ago, the domain names used by Retadup as command-and-control (C2) servers were re-registered, and they began issuing commands to download third-party malware, including the SmokeLoader downloader and now the CoffeeLoader malware.
The CoffeeLoader malware uses a NSIS-based installer executable that drops a file named '7z.dll' into a temporary directory and runs it through rundll32.exe. The '7z.dll' file is a patched version of the original 7-Zip archiver's library, which contains malicious self-decrypting shellcode. This shellcode is a new version of the Armoury packer, a tool used to resist analysis and run Rhadamanthys shellcode. The Armoury packer hijacks some of the original Armoury Crate functionality and uses self-decrypting shellcode to extract code that executes a decryption routine on a system's GPU by making use of the OpenCL library.
However, the latest version of the packer has replaced OpenCL with the OpenGL library and delivers intermediate shellcode instead of a DLL. This shellcode serves as a downloader responsible for fetching the main CoffeeLoader malware. The malware establishes persistence by copying '7z.dll' to subfolders of %PROGRAMDATA% or %LOCALAPPDATA% and using the Run registry key for autorun. It also 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. The malware shellcode is then downloaded from a hard-coded C2 server, decrypted, and run. The CoffeeLoader payload supports three commands to run the next-stage malware from the C2 server.
The CoffeeLoader malware has been detected in around 15,000 systems, primarily located in Peru, Angola, Russia, and Bolivia. Kaspersky, the cybersecurity firm that discovered the malware, has blocked these systems from being infected. It remains unclear whether the worm's author or some other threat actor was responsible for bringing the C2 servers back online.
The resurgence of the Retadup worm and the CoffeeLoader malware highlights the ongoing threat of malware and the importance of cybersecurity measures to prevent infection. Users are advised to be cautious when using USB drives and to ensure that their systems are up-to-date with the latest security patches. The use of antivirus software and a firewall can also help prevent the spread of malware.
The CoffeeLoader malware is linked to the SmokeLoader loader family, which suggests a possible connection between the two malware families. The use of the Armoury packer and the OpenCL library also indicates a level of sophistication in the malware's design. The fact that the malware has been able to evade detection for so long highlights the need for continued vigilance in the cybersecurity community.
The Retadup worm's resurgence also raises concerns about the effectiveness of previous takedowns of malware. The fact that the domain names used by Retadup were re-registered and used to issue commands to download malware suggests that threat actors may be able to revive and adapt malware even after it has been disrupted. This highlights the need for ongoing monitoring and analysis of malware to stay ahead of emerging threats.
A new technique called Weight2Shell has been disclosed by cybersecurity researchers, which allows artificial intelligence (AI) models to produce different behavior on different machines, eve…
Season 2: Legacy for Gears of War: E‑Day launches tomorrow, marking the franchise’s twentieth anniversary and offering a wave of new content for both veteran players and newcomers. The updat…
Hela: of Mice & Magic is set to launch on December 1, 2026 for Xbox Series X|S, and the title will be available on day one through Xbox Game Pass. The game presents an open‑world adventure i…