
Retadup worm reappears after 7 years to distribute CoffeeLoader malware via USB
Command domains of the Retadup worm, dismantled in 2019, were reactivated by cybercriminals to infect systems with the CoffeeLoader stealth loader.
Computer systems in several countries have once again become targets of the Retadup worm, a threat propagated via USB devices that was disrupted in 2019 by international authorities. The reappearance of the malware's command infrastructure is being used by cyber operators to distribute a new threat known as CoffeeLoader, a digital threat loader designed to bypass corporate detection mechanisms.
The investigation published by cybersecurity researchers revealed that attackers initiated the re-registration process of command and control (C2) domains previously abandoned by Retadup. Previously infected removable devices that still circulate in operational environments continue executing malicious shortcuts (.lnk) that attempt to communicate with these old addresses. Upon establishing a connection, the reactivated servers respond by delivering new contamination stages.
The 2019 disruption and domain reactivation
In August 2019, a joint operation led by the Center against Cybercrime (C3N) of the French National Gendarmerie, supported by private security companies such as Avast, took control of Retadup's command servers. At the time, authorities replaced the malicious server with a disinfection infrastructure that sent a self-destruction command to active instances of the worm, freeing more than 850,000 infected devices, mostly located in Latin America.
However, Retadup's replication structure based on removable media remained latent on unsanitized flash drives and external hard drives. Starting in 2024, unidentified malicious actors began re-registering expired domains belonging to the network of infected computers (botnet). Initially, the reactivated infrastructure began serving the SmokeLoader downloader; more recently, the campaign evolved to distribute CoffeeLoader.
Infection mechanism and the CoffeeLoader malware
First documented by Zscaler's ThreatLabz team in early 2025, CoffeeLoader is a malicious loader developed to disarm defenses and inject secondary payloads into the infected system, such as cryptocurrency miners, credential stealers, and ransomware.
The variant identified in recent campaigns uses an installer based on NSIS (Nullsoft Scriptable Install System) that extracts a tampered library dubbed 7z.dll into a temporary directory. Although it appears to be a copy of the legitimate library from the 7-Zip archiver, the modified DLL contains self-decryption code that executes the Armoury malicious packer.
To complicate analysis in virtual environments (sandboxes), the packer transfers decryption routines to the victim machine's graphics processing unit (GPU). While earlier versions used the OpenCL library for this task, more recent variants have migrated to the OpenGL interface, ensuring that the malicious code is assembled in memory without triggering alerts in CPU-based monitoring tools.
System persistence and Task Manager blocking
Following the GPU decryption stage, CoffeeLoader establishes persistence in the operating system by copying the tampered DLL to subfolders in the ProgramData or LocalAppData directories. The created folders and registry keys receive names generated from the system volume serial number, complicating identification by static scanning rules.
The malware modifies the automatic startup key (Run) in the Windows Registry to ensure its execution upon every reboot. Additionally, it creates structures in the Registry to prevent the user from disabling automatic startup through the Windows Task Manager.
With persistence secured, the malware spawns a legitimate Windows process — such as dllhost.exe, WerFault.exe, svchost.exe, OpenWith.exe, or AtBroker.exe — and injects its main code into the memory of that trusted process. The injected shellcode connects to the C2 server to download and execute the final payload, which can be saved to disk as an executable, run as a DLL via rundll32.exe, or injected directly into other processes.
Geographic reach and operational impact
Security telemetry recorded approximately 15,000 infection attempts blocked by protection systems in the most impacted regions, notably Peru, Angola, Russia, and Bolivia. The prevalence of infections in regions of Latin America and Africa reflects the historical persistence of infected USB media that were never fully sanitized since Retadup's peak in 2017.
To date, there is no confirmation as to whether the reactivation of the domains was performed by Retadup's original authors or by an opportunistic group that identified an opportunity to monetize connection requests from legacy, still-infected machines.
CyberX Technical Analysis
The reactivation of Retadup's attack vector demonstrates the risks associated with the persistence of physical infection vectors in corporate environments. The original worm uses shortcut files (.lnk) with hidden attributes on USB storage drives to trick the user into clicking, triggering command routines in VBScript or PowerShell scripts that point to hardcoded command and control URLs.
Armoury packer architecture and GPU decoupling
The major differentiator of the CoffeeLoader payload distributed in this new phase is the use of the Armoury packer. The technique of offloading the decryption routine to the GPU decouples analysis from the conventional execution flow inspected by CPU emulation-based sandboxes. The evolution from OpenCL to OpenGL in recent variants indicates a malware refinement to expand compatibility with diverse graphics hardware without requiring specialized parallel computing drivers.
In-memory evasion techniques and process injection
In addition to GPU decryption, CoffeeLoader analysis reveals the integration of advanced system call evasion (API hooking) techniques:
- Call Stack Spoofing: Call stack spoofing based on the BokuLoader project to conceal the origin of API calls executed from unallocated memory.
- Sleep Obfuscation: Complete encryption of the malware's code and data in RAM during sleep intervals, preventing detection by EDR memory scans.
- Windows Fibers: Utilization of the Windows Fibers API to switch the execution flow non-linearly, making tracking by technical debuggers more difficult.
Persistence mechanisms and removal protection
The persistence method involves manipulating user registry keys (HKCU\Software\Microsoft\Windows\CurrentVersion\Run) paired with modifying the Task Manager restriction key (DisableTaskMgr or autorun restrictions). Dynamic generation of file and folder names based on 8-digit hexadecimal hashes extracted from the volume serial number prevents the creation of removal rules based on static file paths.
CyberX SOC Intelligence Bulletin
The reactivation of the Retadup worm combined with the delivery of CoffeeLoader represents a latent threat to corporate networks that still allow unrestricted connections of removable storage devices. The threat's ability to inject malicious code into legitimate operating system processes requires behavioral monitoring focused on the execution of utilities like rundll32.exe calling unsigned dynamic libraries hosted in user profile folders or temporary directories.
Indicators of Compromise and Investigation Signals
SOC and incident response teams should monitor for the presence of the following patterns in the environment:
- Process Execution: Instances of
rundll32.exeexecuting DLLs located in%TEMP%,%PROGRAMDATA%, or%LOCALAPPDATA%containing 8-character hexadecimal names (e.g.,A1B2C3D4.dllor modified7z.dll). - Code Injection: Anomalous network behavior originating from trusted system processes such as
dllhost.exe,WerFault.exe,svchost.exe,OpenWith.exe, andAtBroker.exeestablishing unusual outbound connections. - Registry Modifications: Modifications to autorun keys (
HKCU\Software\Microsoft\Windows\CurrentVersion\Run) pointing to DLL files or executables in ProgramData paths. - USB Shortcut Files: Presence of hidden
.lnkfiles in the root of USB flash drives attached to network machines.
MITRE ATT&CK Mapping
- T1091 - Replication Through Removable Media: Propagation via malicious files on USB devices.
- T1055 - Process Injection: Injection of the CoffeeLoader payload into legitimate Windows processes.
- T1112 - Modify Registry: Alteration of registry keys for persistence and blocking management tools.
- T1497 - Virtualization/Sandbox Evasion: Payload decryption via GPU (OpenGL) to suppress analysis in CPU sandboxes.
- T1027 - Obfuscated Files or Information: Use of packers and memory obfuscation during sleep states.
Mitigation and Response Recommendations
- Removable Media Restriction: Apply Group Policies (GPO) to block automatic execution and prohibit the use of unauthorized USB storage devices.
- Disabling Script Execution on USB: Block the execution of executable files, VBScript scripts, and shortcuts (.lnk) from removable drives.
- Suspicious Process Monitoring: Configure EDR/SIEM rules to alert on system processes (such as
dllhost.exe) making direct internet connections to unknown external IPs. - Scanning and Disinfection: Subject suspicious removable media to isolated sanitization before connecting to the corporate network.
Frequently Asked Questions
What is CoffeeLoader?
CoffeeLoader is a digital threat loader documented in early 2025 that disarms security defenses and injects secondary payloads such as ransomware, stealers, and cryptocurrency miners into infected systems.
How does CoffeeLoader spread through the Retadup worm infrastructure?
Cybercriminals re-registered expired Retadup command and control domains, allowing latent infected USB drives still executing malicious shortcut files to reconnect and download CoffeeLoader.
How does CoffeeLoader evade CPU-based security sandboxes?
The malware uses the Armoury packer to transfer its decryption routines to the victim machine's GPU via OpenGL or OpenCL, assembling malicious code in memory without triggering CPU monitoring tools.
Which regions have experienced the highest number of infection attempts?
Security telemetry recorded approximately 15,000 infection attempts, with the highest prevalence in Peru, Angola, Russia, and Bolivia.


