Description
Retadup is a malicious computer worm first discovered in 2017. It was developed using AutoIt and AutoHotkey and became known for spreading through removable storage devices.
The worm copied itself to connected USB flash drives and external disks using hidden files and Windows shortcut (.lnk) files. When a user connected an infected drive to another computer and opened the malicious shortcut, the worm executed and infected the new system.
In July 2019, French law enforcement gained control of Retadup's C2 servers and instructed infected computers to remove the worm. More than 850,000 systems were disinfected within a few weeks.
However, the takedown did not necessarily remove every copy of the worm. Infected USB drives and computers that remained offline or powered off could retain dormant infections.
In 2024, an unidentified party began re-registering domains previously used by Retadup's C2 infrastructure. These domains were subsequently used to distribute additional malware.
The reactivated infrastructure initially delivered SmokeLoader and later CoffeeLoader.
The latest development is particularly significant because CoffeeLoader uses GPU-assisted decryption, registry-based persistence and process injection to make its execution more difficult to detect.
Technical Description
1. Retadup — USB-Propagating Worm
Retadup spreads through removable storage devices.
The worm copies itself onto connected USB flash drives and external disks as hidden files and shortcut files.
The infection process works as follows:
An infected computer detects a connected removable drive.
Retadup copies malicious files onto the drive.
The copied files are hidden from ordinary file browsing.
A Windows shortcut file is placed on the drive to imitate a legitimate folder or file.
A user connects the infected drive to another computer.
The user clicks the shortcut, unintentionally launching the malicious code.
The new computer becomes infected and can participate in the botnet.
The worm can subsequently communicate with its C2 infrastructure and receive instructions to download additional malware.
2. Reactivation of Legacy C2 Infrastructure
The 2019 takedown significantly reduced Retadup's active infections, but surviving copies could still attempt to contact the domains previously used by the botnet.
In 2024, an unidentified party began re-registering the historical C2 domains.
The reactivated servers could communicate with older Retadup samples because the worm's communication protocol was relatively simple.
Kaspersky describes the protocol as plaintext commands encoded using Base64 and then converted into hexadecimal representation.
The researchers could not establish whether the original Retadup developer or another operator was responsible for reactivating the infrastructure.
3. Armoury Packer — GPU-Assisted Decryption
Armoury is a packer used to decrypt and deliver CoffeeLoader.
Its GPU-assisted decryption mechanism is one of the most technically interesting parts of the investigation.
Earlier Armoury variant
The earlier variant used the OpenCL library to execute GPU-based decryption.
The researchers identified a simple XOR operation in the OpenCL kernel:
c[get_global_id(0)] = a[get_global_id(0)] ^ b[get_global_id(0) % d];
The GPU processes data in parallel, applying XOR operations to decrypt the payload.
New Armoury variant
The August 2026 version replaces OpenCL with OpenGL.
It uses a compute shader with shader-storage buffer objects to process the encrypted data.
The shader uses:
A data buffer.
A key buffer.
A result buffer.
gl_GlobalInvocationIDto identify the current processing position.XOR operations to decrypt the payload.
The central operation is:
result[index] = dataValue ^ keyValue;
This allows the malware to use GPU processing for decryption rather than relying exclusively on conventional CPU execution.
The change from OpenCL to OpenGL represents an evolution in the packer's implementation while retaining GPU-assisted decryption.
4. CoffeeLoader Downloader
The newly identified CoffeeLoader downloader is an intermediate stage in the infection chain.
It combines three major capabilities:
Dropper functionality.
Process-staging functionality.
Download functionality for the main CoffeeLoader payload.
The new variant begins with an NSIS-based installer.
On execution:
The installer drops a file named
7z.dllinto a temporary directory.The file is a patched version of the original 7-Zip library.
Malicious self-decrypting shellcode replaces part of the legitimate library's code.
The installer executes the DLL through
rundll32.exe.The embedded Armoury packer decrypts the next shellcode stage.
The decrypted CoffeeLoader downloader establishes persistence and retrieves the main payload.
The modified 7z.dll is therefore not an ordinary 7-Zip library, despite retaining the original filename.
Attack Overview
Phase 1: Initial Infection Through USB Drives
Retadup provides the initial distribution mechanism.
The worm spreads through infected removable storage devices and Windows shortcut files.
Unlike common email-based malware delivery, this campaign can infect computers through older USB drives that may have remained unused for years.
The user may unknowingly activate the worm by opening a shortcut that appears to represent a legitimate folder.
Phase 2: Reactivated Command and Control
After infection, Retadup attempts to communicate with its historical C2 infrastructure.
The reactivated domains respond to the worm's requests and provide commands to download additional malware.
Kaspersky observed an example of a 2017 Retadup sample successfully communicating with its C2 server in August 2026.
The decoded commands included instructions to sleep for a specified period and download an executable from:
rurjfvn[.]rs/update.exe
This demonstrates that old malware samples can remain operational when their command infrastructure becomes available again.
Phase 3: CoffeeLoader Delivery
The reactivated Retadup infrastructure initially distributed SmokeLoader packed with an older Armoury version.
By early 2025, the same servers had started delivering CoffeeLoader.
The August 2026 variant uses an NSIS installer that drops a modified 7z.dll and executes it through rundll32.exe.
Phase 4: GPU-Assisted Payload Decryption
The modified DLL contains the Armoury packer.
The new version uses OpenGL rather than OpenCL to execute GPU-based XOR decryption.
The decrypted shellcode introduces the CoffeeLoader downloader, which continues the infection chain.
Phase 5: Persistence Through Registry Modification
The CoffeeLoader downloader copies itself to a subdirectory under either:
%PROGRAMDATA%%LOCALAPPDATA%
The directory, DLL filename and registry value name use eight hexadecimal characters generated from system volume information.
An example path is:
C:\ProgramData\b79faace\b79faace.dll
Another possible location is:
C:\Users\[username]\AppData\Local\b79faace\b79faace.dll
The malware creates a Run registry value that launches the DLL using rundll32.exe.
Phase 6: Protection Against Removal
The downloader also modifies the following registry location:
Software\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run
It creates a corresponding value to prevent the user from disabling the malware's autorun entry through Task Manager.
This makes ordinary startup-management operations less effective at removing the persistence mechanism.
Phase 7: Process Injection
After establishing persistence, CoffeeLoader launches one of several legitimate Windows processes:
dllhost.exeWerFault.exesvchost.exeOpenWith.exeAtBroker.exe
It then injects itself into the selected process.
The use of legitimate Windows processes can make malicious execution less obvious during basic process inspection.
Phase 8: Main Payload Download
CoffeeLoader communicates with its hardcoded C2 server over HTTPS.
It requests the main payload through the following URL path:
/payload?md5=
The first request uses a zero-filled MD5 parameter:
/payload?md5=00000000000000000000000000000000
Subsequent requests contain the hash of the previously downloaded payload.
The C2 responds with encrypted shellcode containing the main CoffeeLoader body.
Phase 9: Payload Verification and Execution
The downloaded response contains two important HTTP headers:
X-SignatureX-Content-MD5
The signature is verified using a public key embedded in the malware.
The MD5 field contains the checksum of the decrypted payload.
The downloaded data uses a simple XOR encryption scheme, with the first 16 bytes serving as the key.
If the signature and checksum checks succeed, CoffeeLoader allocates executable memory in its own process and transfers control to the decrypted shellcode.
Technical Analysis
1. CoffeeLoader Persistence Mechanism
The malware uses system volume information to generate an eight-character hexadecimal identifier.
This identifier is reused for:
The destination folder.
The DLL filename.
The Run registry value name.
Example:
C:\ProgramData\b79faace\b79faace.dll
Registry persistence:
Software\Microsoft\Windows\CurrentVersion\Run
Value:
b79faace.dll
Data:
rundll32.exe "C:\ProgramData\b79faace\b79faace.dll",SetCodecs
The malware also modifies:
Software\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run
This additional registry entry is designed to prevent the user from disabling the autorun entry through Task Manager.
Forensic significance
Investigators should look for unusual eight-character hexadecimal directories under ProgramData and LocalAppData, especially when the directory contains a DLL with the same name.
The registry Run value should be correlated with the file path and rundll32.exe execution.
2. CoffeeLoader C2 Communication
The downloader uses HTTPS and a specific request pattern to obtain the main payload.
Example request:
GET /payload?md5=00000000000000000000000000000000 HTTP/1.1
Connection: Keep-Alive
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:152.0) Gecko/20100101 Firefox/152.0
Host: api.internet-speed-check.comThe server response includes:
An encrypted payload.
An
X-Signatureheader.An
X-Content-MD5header.
The embedded public key is used to verify the signature before the payload is executed.
The use of signature verification is significant because it allows the malware to authenticate its C2-delivered payload independently of ordinary TLS certificate validation.
3. Main CoffeeLoader Module
The main CoffeeLoader module has not changed substantially in functionality.
However, the newer variant uses different encryption keys for C2 request and response handling:
A21251838432306F2CD2540593656B9E2026F751079659CF71C7BA64B345C12A
The malware also replaces the previous protocol magic constant:
0xC0FFEE42
with:
0xD1D57871
The main module supports three methods of executing payloads received from the C2 server:
Injecting the payload into an existing process.
Saving the payload as an executable file and launching it.
Saving the payload as a DLL and executing it through
rundll32.exe.
This makes CoffeeLoader a flexible downloader and delivery platform for additional malware.
Indicators of Compromise (IOCs)
The following indicators were published by Kaspersky Securelist.
1. Retadup Command-and-Control Domains
No. | Domain |
|---|---|
1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
2. CoffeeLoader C2
No. | Domain |
|---|---|
1 |
|
3. CoffeeLoader Payload Hosting
No. | URL |
|---|---|
1 |
|
2 |
|
4. CoffeeLoader MD5 — DLL Files
MD5 | File description |
|---|---|
| CoffeeLoader DLL |
| CoffeeLoader DLL |
| CoffeeLoader DLL |
5. CoffeeLoader MD5 — NSIS-Based Installers
MD5 | File description |
|---|---|
| NSIS-based installer |
| NSIS-based installer |
IOC handling note: Kaspersky publishes MD5 hashes for the identified DLLs and NSIS installers. SHA-1 and SHA-256 hashes are not provided in the original report and have therefore not been invented or substituted. The publicvm and linkpc entries are specific historical C2 subdomains; do not automatically block their entire parent domains. Validate current infrastructure and historical DNS records before taking action.
Detection and Threat Hunting
1. USB and Removable-Media Monitoring
Investigate:
Hidden files created on removable drives.
Unexpected
.lnkfiles.Shortcuts that launch executables or scripts instead of opening folders.
Multiple removable drives receiving similar files.
Retadup-related activity after connecting older USB devices.
Correlate removable-media events with subsequent process execution.
2. Registry Persistence Detection
Monitor the following registry locations:
Software\Microsoft\Windows\CurrentVersion\Run
Software\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run
Look for:
Eight-character hexadecimal value names.
DLLs stored under ProgramData or LocalAppData.
Run entries invoking
rundll32.exe.The export name
SetCodecs.Matching folder, DLL and registry value names.
3. Process Injection Detection
Investigate suspicious relationships between:
rundll32.exedllhost.exeWerFault.exesvchost.exeOpenWith.exeAtBroker.exe
Pay particular attention to unexpected process creation followed by memory manipulation, remote-thread activity or executable-memory allocation.
4. GPU-Assisted Decryption Detection
Investigate unusual OpenGL or GPU-related activity associated with suspicious installers and DLLs.
A GPU operation alone is not malicious. Correlate it with:
Unexpected NSIS installer execution.
Modified 7-Zip libraries.
rundll32.exeexecution.Unusual temporary-directory activity.
Subsequent process injection.
Suspicious outbound C2 communication.
5. Network Detection
Monitor for:
DNS requests to the listed Retadup C2 domains.
Requests to
internet-speed-check[.]com.Connections to the listed payload-hosting URLs.
HTTPS requests containing
/payload?md5=.The initial zero-filled MD5 query parameter.
Unusual executable downloads from unfamiliar infrastructure.
6. File Integrity and Malware Scanning
Search for:
Modified
7z.dllfiles in temporary directories.CoffeeLoader-related MD5 hashes.
Unexpected DLLs under eight-character hexadecimal directories.
Suspicious NSIS installers.
Unusual executable files downloaded from the identified infrastructure.
Preserve the original files and associated metadata before remediation.
Recommendations
Immediate Actions
Scan removable storage: Perform a full security scan of old USB flash drives and external disks before opening their contents.
Disable AutoRun: Disable automatic execution of removable media through organizational policy.
Inspect shortcuts: Investigate suspicious
.lnkfiles, especially those that execute commands or launch unexpected binaries.Review registry persistence: Examine Run and StartupApproved registry entries for suspicious eight-character hexadecimal names.
Investigate process injection: Review unexpected injection activity involving
dllhost.exe,WerFault.exe,svchost.exe,OpenWith.exeandAtBroker.exe.Block validated infrastructure: Apply DNS, proxy and endpoint controls for confirmed malicious indicators.
Scan legacy systems: Check older or previously offline computers that may contain dormant Retadup infections.
Preserve evidence: Retain suspicious USB drives, installer files, DLLs, registry hives and network logs for forensic examination.
Preventive Actions
Maintain updated security software: Keep operating systems, endpoint protection and malware signatures updated.
Enforce removable-media policies: Restrict USB usage to approved devices where operationally possible.
Use application control: Prevent unauthorized executables and DLLs from running from temporary and user-writable directories.
Monitor autorun changes: Alert on unexpected registry modifications involving startup locations.
Protect system utilities: Monitor suspicious use of
rundll32.exeand process injection into legitimate Windows applications.Maintain offline backups: Keep at least one protected backup that cannot be modified by the primary computer.
Train users: Explain why folder-looking shortcuts on removable drives should not be trusted automatically.
Review dormant devices: Before reconnecting old computers or archival USB devices to business networks, scan and examine them in a controlled environment.
Potential Impact
1. Continued Malware Distribution
Surviving Retadup infections can act as a delivery mechanism for modern malware, even years after the original botnet was neutralized.
2. Unauthorized Remote Access
CoffeeLoader's ability to download and execute additional payloads can provide attackers with a path to further compromise an infected computer.
3. Credential and Information Theft
The malware's downloader functionality can be used to deliver additional malware families, including information stealers. The original report does not identify a specific stolen-data incident resulting from every infection.
4. Ransomware Deployment
CoffeeLoader can deliver additional payloads. Kaspersky notes that these may include ransomware, creating a potential path from an old USB infection to a more damaging incident.
5. Persistence and Evasion
Registry modifications, process injection and GPU-assisted decryption make the infection harder to identify and remove using basic system inspection.
6. Enterprise-Wide Exposure
Because Retadup propagates through removable media, a single infected USB drive can introduce malware into multiple computers, including systems that are not directly exposed to the internet.
Conclusion
The resurgence of Retadup demonstrates that malware does not necessarily disappear when its command infrastructure is taken down.
Although more than 850,000 systems were disinfected during the 2019 operation, surviving infections on removable storage and offline computers created an opportunity for the old worm to become active again.
The reactivation of historical C2 domains allowed an unidentified operator to turn dormant Retadup infections into a distribution channel for modern malware.
The latest CoffeeLoader variant further demonstrates the evolution of malware delivery techniques through GPU-assisted OpenGL decryption, modified DLL execution, registry-based persistence, process injection and signed HTTPS payload delivery.
Kaspersky's detection of approximately 15,000 blocked infection attempts during the first three quarters of 2026 highlights that legacy removable-media threats remain relevant.
For defenders, the lesson is straightforward: old USB drives should never be assumed safe simply because they have not been used for years. Removable-media security, registry monitoring, process analysis and network threat hunting remain essential for detecting infections that can survive long after their original campaigns appear to have ended.
A malware takedown can disrupt a botnet, but it cannot guarantee that every infected copy has disappeared.
