Retadup Worm: How to Detect & Block Resurfaced CoffeeLoader

SOC Briefing Summary :: Executive Key Takeaways
- [01]Dormant Retadup worm infrastructure was resurrected via re-registered C2 domains to distribute CoffeeLoader payloads.
- [02]Armoury packer upgraded from OpenCL to OpenGL GPU shader routines for in-memory decryption before injecting into dllhost.exe.
- [03]Malware spreads via USB drives and establishes persistent Run keys named with 8 hexadecimal digits derived from system volume serials.
Executive Incident Briefing (2-Minute CISO Brief)
Quick Answer (At-A-Glance): The dormant Retadup worm has resurfaced through re-registered command-and-control (C2) domains, distributing a modernized variant of CoffeeLoader. The intrusion chain utilizes NSIS-based installers, DLL side-loading of a patched7z.dllviarundll32.exe, and GPU-accelerated in-memory decryption via OpenGL to bypass endpoint security before injecting into legitimate host processes likedllhost.exe. SOC teams must immediately audit USB autorun policies, inspect anomalousrundll32.exeexecutions, and deploy endpoint Sigma and KQL detections across endpoints and network shares.
Seven years after French cyber gendarmerie and international law enforcement dismantled its primary botnet infrastructure, the Retadup worm has returned to active operational status. Threat actors capitalized on expired C2 domain names once utilized by Retadup, re-registering them to commandeer legacy infected nodes and deploy modern loader malware—most notably CoffeeLoader packed with the updated Armoury packer.
- Threat Campaign: Retadup Worm Resurgence distributing CoffeeLoader
- Primary Distribution Vectors: Infected USB removable storage media, malicious
.lnkshortcuts, and orphaned Retadup botnet C2 re-registration. - Evasion Mechanics: Transition from OpenCL to OpenGL GPU-based decryption routines, eliminating traditional CPU-based memory heuristic signatures.
- Operational Impact: Arbitrary payload execution, credential exfiltration via dropped infostealers, cryptocurrency mining, and persistent network re-infection.
Defenders operating in corporate environments with shared USB drives, remote branch offices, or segmented operational technology (OT) networks face elevated risk of lateral re-infection.
Technical Vulnerability Analysis & Attack Chain

The resurfaced Retadup campaign relies on a multi-stage infection workflow engineered to withstand both static disk analysis and dynamic sandbox inspection.
1. Ingress & USB Propagation Mechanics
Retadup historically propagated via infected removable drives by hiding genuine directory structures and creating deceptive .lnk files mimicking user folders. When a user mounts an infected USB drive and opens a folder shortcut, Windows executes a hidden script or executable that downloads the initial NSIS installer payload.
Simultaneously, actors who re-registered historical Retadup C2 domains began issuing tasking commands to lingering infected systems across Latin America (Peru, Bolivia), Africa (Angola), and Eastern Europe, instructing surviving Retadup nodes to fetch the new CoffeeLoader payload.
2. Armoury Packer & OpenGL GPU Decryption Routine
Upon execution, the NSIS installer drops a weaponized dynamic-link library named 7z.dll into a temporary folder (%TEMP% or %LOCALAPPDATA%). While masquerading as the legitimate 7-Zip archiver library, its entry-point routines have been overwritten with a new iteration of the Armoury packer.
Earlier variants of Armoury relied on OpenCL (Open Computing Language) to execute payload decryption on host graphics cards. The latest variant observed in late 2026 transitions entirely to the OpenGL (Open Graphics Library) API. The packer compiles and executes an OpenGL shader program that reconstructs the intermediate shellcode directly within GPU memory buffers. By offloading cryptographic decryption to the GPU, the loader circumvents endpoint detection and response (EDR) memory hooks that monitor standard Windows API calls such as VirtualProtect, WriteProcessMemory, and CryptDecrypt.
3. In-Memory Process Injection & Persistence Architecture
Once the OpenGL shader outputs decrypted shellcode into host user-space, the loader establishes persistence before executing payload injection:
- Persistence Mechanism: The Trojan copies the patched
7z.dllto a dedicated folder under%LOCALAPPDATA%or%PROGRAMDATA%. The folder name, library name, and corresponding Registry Run value are deterministically generated as an 8-digit hexadecimal string derived from the target machine's system volume serial number. - Registry Key: Writes an autorun entry to
HKCU\Software\Microsoft\Windows\CurrentVersion\Run. Additionally, it configuresStartupApproved\Runsubkeys to prevent users from disabling the entry via Windows Task Manager. - Process Injection: The shellcode spawns a legitimate Windows system binary—such as
dllhost.exe,WerFault.exe,svchost.exe,OpenWith.exe, orAtBroker.exe—and injects CoffeeLoader into the remote process using process hollowing or asynchronous procedure call (APC) queuing.
4. C2 Communications & Secondary Payloads
The injected CoffeeLoader agent initiates HTTPS beacons to hardcoded C2 servers over port 443, utilizing custom HTTP headers for session authorization. In observed intrusions, the C2 server returns tasking directives to stage secondary payloads, including Rhadamanthys infostealer, Lumma Stealer, and Monero cryptominers.
MITRE ATT&CK Tactics, Techniques & Procedures (TTPs)
| Tactic | Technique ID | Technique Name | Operational Context |
|---|---|---|---|
| Initial Access | T1091 | Replication Through Removable Media | Retadup worm replicates via infected USB drives using deceptive LNK shortcuts. |
| Execution | T1574.002 | DLL Side-Loading | Execution of weaponized 7z.dll through legitimate Windows rundll32.exe. |
| Defense Evasion | T1055 | Process Injection | Shellcode injection into dllhost.exe, WerFault.exe, and svchost.exe. |
| Defense Evasion | T1027 | Obfuscated Files or Information | Armoury packer utilizes OpenGL GPU shader pipelines for in-memory decryption. |
| Persistence | T1547.001 | Registry Run Keys / Startup Folder | Autostart persistence under HKCU\...\Run with volume-derived 8-hex identifiers. |
| Command and Control | T1071.001 | Web Protocols | CoffeeLoader initiates encrypted HTTPS communication with re-registered C2 infrastructure. |
| Lateral Movement | T1021.002 | SMB/Windows Admin Shares | Worm stages dropped payloads across writable network shares to expand foothold. |
Detection, Hunting & SOC Mitigation Playbook
1. Immediate Containment Checklist
- [ ] Enforce Group Policy Objects (GPO) to restrict Removable Storage Devices, blocking
.lnkexecution and unsigned binaries on USB media. - [ ] Terminate anomalous child processes spawned by
rundll32.exewhere the target DLL resides in%LOCALAPPDATA%,%TEMP%, or%PROGRAMDATA%. - [ ] Audit
HKCU\Software\Microsoft\Windows\CurrentVersion\Runfor entries matching 8-character hexadecimal names pointing to non-standard paths. - [ ] Block network communication to identified Retadup re-registered dynamic DNS domains and CoffeeLoader C2 endpoints at the perimeter firewall/DNS resolver.
2. Behavioral Detection Strategy
SOC analysts should prioritize behavioral correlations over static hashes. Specifically:
- Identify instances of
rundll32.exeloading7z.dlloutside of the legitimateC:\Program Files\7-Zip\7z.dllinstallation directory. - Monitor processes allocating executable memory followed by graphic library loading (
opengl32.dll,glu32.dll) in non-graphical binaries. - Hunt for rapid creation of
.lnkfiles alongside hidden system files on removable storage volumes.
3. Endpoint Detection & Hunting Query
Sigma Detection Rule
title: Suspicious Rundll32 Execution of 7z.dll from User-Writable Paths
id: 8b4c7942-0f31-4a1e-8bc2-cf109728de74
status: experimental
description: Detects the execution of 7z.dll via rundll32.exe from temporary or user-writable directories, indicative of Armoury packed CoffeeLoader.
author: Rutvij Khatri (CyberNewsAI)
references:
- https://securelist.com/retadup-delivers-coffeeloader/121908/?ref=cybernewsai.com
date: 2026-11-16
logsource:
category: process_creation
product: windows
detection:
selection:
Image|endswith: '\rundll32.exe'
CommandLine|contains:
- '\AppData\'
- '\ProgramData\'
- '\Temp\'
CommandLine|contains|all:
- '7z.dll'
filter_legit:
CommandLine|contains:
- 'C:\Program Files\7-Zip\'
- 'C:\Program Files (x86)\7-Zip\'
condition: selection and not filter_legit
falsepositives:
- Highly customized administrative scripts running portable 7-Zip utilities from temporary locations.
level: high
tags:
- attack.execution
- attack.t1574.002
- attack.defense_evasion
- attack.t1055Microsoft Sentinel / Defender Detection KQL (Process & DLL Side-Loading)
// Detection Query: Hunt for suspicious rundll32.exe loading 7z.dll from non-standard directories
DeviceProcessEvents
| where Timestamp >= ago(7d)
| where FileName =~ "rundll32.exe"
| where ProcessCommandLine has "7z.dll"
| where not(ProcessCommandLine has_any(@"C:\Program Files\7-Zip\", @"C:\Program Files (x86)\7-Zip\"))
| extend LoadedPath = extract(@"([A-Za-z]:\\[^,\s]+\.dll)", 1, ProcessCommandLine)
| project Timestamp, DeviceName, AccountName, ProcessCommandLine, LoadedPath, InitiatingProcessFileName, InitiatingProcessCommandLine, FolderPath
| sort by Timestamp descMicrosoft Sentinel / Defender Lateral Movement & Threat Hunting KQL (USB & Network Propagation)
// Lateral Movement Hunting: Identify LNK shortcuts and hidden binaries created on removable drives or SMB shares
DeviceFileEvents
| where Timestamp >= ago(7d)
| where ActionType in ("FileCreated", "FileModified")
| where (FolderPath has_any(@"\Users\Public\", @"\ProgramData\", @"\AppData\Local\") and FileName endswith ".dll" and FileName matches regex @"^[0-9a-fA-F]{8}\.dll$")
or (FolderPath matches regex @"^[D-Z]:\\" and FileName endswith ".lnk")
| join kind=leftouter (
DeviceNetworkEvents
| where Timestamp >= ago(7d)
| where RemotePort in (445, 139) or RemoteUrl has "dynamic"
) on DeviceId
| project Timestamp, DeviceName, ActionType, FolderPath, FileName, RemoteIP, RemoteUrl, InitiatingProcessFileName
| sort by Timestamp desc4. Enterprise Hardening & Long-Term Resilience
- Removable Media Restrictions: Implement Microsoft Intune or Group Policy device installation restrictions to disable auto-mounting of unencrypted USB storage devices across corporate endpoints.
- AppLocker & WDAC Deployment: Enforce Windows Defender Application Control (WDAC) policies in enforcement mode, preventing
rundll32.exefrom executing dynamic libraries located in user-writable paths (%LOCALAPPDATA%,%TEMP%,%PROGRAMDATA%). - Registry Auditing: Enable advanced auditing for Registry modifications (Event ID 4657) focused on
\CurrentVersion\Runand\CurrentVersion\RunOncekeys.
Indicators of Compromise (IOCs)
| Indicator Type | Value | Forensic Description |
|---|---|---|
| file_path | %LOCALAPPDATA%\*\7z.dll | Dropped patched 7-Zip archiver library containing Armoury shellcode |
| file_path | %PROGRAMDATA%\*\7z.dll | Persistent copy of weaponized 7z.dll library |
| registry | HKCU\Software\Microsoft\Windows\CurrentVersion\Run | Autostart persistence key generated with 8-digit hexadecimal name |
| registry | HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run | Registry lock preventing Task Manager startup modification |
| other | dllhost.exe, WerFault.exe, svchost.exe, OpenWith.exe, AtBroker.exe | Primary target processes for hollowed shellcode execution |
---
---
Related Topic Cluster Intelligence
- CVE-2026-90436: How to Detect & Block N-central Zero-Day RCE: Threat actors actively exploit 4EverAble2Shell (CVE-2026-90436) on N-able N-central servers.
- SCKit Malware: How to Detect & Block AI-Driven Attacks: Critical security intelligence alert regarding SCKit Malware: How to Detect & Block.
- VOLTA Stealer: How to Detect & Block AI-Driven Malware: Critical security intelligence alert regarding VOLTA: How to Detect & Block.
%LOCALAPPDATA%\*\7z.dll%PROGRAMDATA%\*\7z.dllHKCU\Software\Microsoft\Windows\CurrentVersion\RunHKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Rundllhost.exe, WerFault.exe, svchost.exe, OpenWith.exe, AtBroker.exe// VERIFIED_SOURCES_&_REFERENCES
Related Threat Intelligence
View Archive
ARTEX AI Agents: How to Detect & Counter Autonomous Attacks
FBI issues FLASH advisory warning that cybercriminals abuse ARTEX AI agents to achieve domain compromise in under 3 hours. Hunt rapid automated lateral moves.

AI Infostealer Market: How to Detect & Block Replay Attacks
Dark web shops deploy AI to parse infostealer logs into searchable corporate dossiers, targeting enterprise VPNs and AI tokens. Hunt token replay attacks.

Telegram Widgets: How to Detect & Block WebRAT Infiltration
Flaws in Telegram's newly launched widgets enable zero-click RCE to deliver WebRAT infostealer via PowerShell. Hunt Telegram child processes with KQL.