Skip to main content
ACTIVELY MONITORED//Verified: Nov 16, 2026
Threat Intelligence
6 min read

Retadup Worm: How to Detect & Block Resurfaced CoffeeLoader

•By Rutvij Khatri•VERIFIED INTEL
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 patched 7z.dll via rundll32.exe, and GPU-accelerated in-memory decryption via OpenGL to bypass endpoint security before injecting into legitimate host processes like dllhost.exe. SOC teams must immediately audit USB autorun policies, inspect anomalous rundll32.exe executions, 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 .lnk shortcuts, 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

Attack Chain Flow
// Attack Chain Flow

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.dll to 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 configures StartupApproved\Run subkeys 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, or AtBroker.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)

MITRE ATT&CK • OPERATIONAL TTP MAPPING
TacticTechnique IDTechnique NameOperational Context
Initial AccessT1091Replication Through Removable MediaRetadup worm replicates via infected USB drives using deceptive LNK shortcuts.
ExecutionT1574.002DLL Side-LoadingExecution of weaponized 7z.dll through legitimate Windows rundll32.exe.
Defense EvasionT1055Process InjectionShellcode injection into dllhost.exe, WerFault.exe, and svchost.exe.
Defense EvasionT1027Obfuscated Files or InformationArmoury packer utilizes OpenGL GPU shader pipelines for in-memory decryption.
PersistenceT1547.001Registry Run Keys / Startup FolderAutostart persistence under HKCU\...\Run with volume-derived 8-hex identifiers.
Command and ControlT1071.001Web ProtocolsCoffeeLoader initiates encrypted HTTPS communication with re-registered C2 infrastructure.
Lateral MovementT1021.002SMB/Windows Admin SharesWorm 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 .lnk execution and unsigned binaries on USB media.
  • [ ] Terminate anomalous child processes spawned by rundll32.exe where the target DLL resides in %LOCALAPPDATA%, %TEMP%, or %PROGRAMDATA%.
  • [ ] Audit HKCU\Software\Microsoft\Windows\CurrentVersion\Run for 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:

  1. Identify instances of rundll32.exe loading 7z.dll outside of the legitimate C:\Program Files\7-Zip\7z.dll installation directory.
  2. Monitor processes allocating executable memory followed by graphic library loading (opengl32.dll, glu32.dll) in non-graphical binaries.
  3. Hunt for rapid creation of .lnk files alongside hidden system files on removable storage volumes.

3. Endpoint Detection & Hunting Query

Sigma Detection Rule

QUERY / DETECTION_RULE
SIGMA / YAML
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.t1055

Microsoft Sentinel / Defender Detection KQL (Process & DLL Side-Loading)

QUERY / DETECTION_RULE
SENTINEL / KQL
// 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 desc

Microsoft Sentinel / Defender Lateral Movement & Threat Hunting KQL (USB & Network Propagation)

QUERY / DETECTION_RULE
SENTINEL / KQL
// 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 desc

4. Enterprise Hardening & Long-Term Resilience

  1. Removable Media Restrictions: Implement Microsoft Intune or Group Policy device installation restrictions to disable auto-mounting of unencrypted USB storage devices across corporate endpoints.
  2. AppLocker & WDAC Deployment: Enforce Windows Defender Application Control (WDAC) policies in enforcement mode, preventing rundll32.exe from executing dynamic libraries located in user-writable paths (%LOCALAPPDATA%, %TEMP%, %PROGRAMDATA%).
  3. Registry Auditing: Enable advanced auditing for Registry modifications (Event ID 4657) focused on \CurrentVersion\Run and \CurrentVersion\RunOnce keys.

Indicators of Compromise (IOCs)

Indicator TypeValueForensic Description
file_path%LOCALAPPDATA%\*\7z.dllDropped patched 7-Zip archiver library containing Armoury shellcode
file_path%PROGRAMDATA%\*\7z.dllPersistent copy of weaponized 7z.dll library
registryHKCU\Software\Microsoft\Windows\CurrentVersion\RunAutostart persistence key generated with 8-digit hexadecimal name
registryHKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\RunRegistry lock preventing Task Manager startup modification
otherdllhost.exe, WerFault.exe, svchost.exe, OpenWith.exe, AtBroker.exePrimary target processes for hollowed shellcode execution

---

---

Related Topic Cluster Intelligence

Indicators of Compromise (IOCs)
5 Identified
FILE PATH%LOCALAPPDATA%\*\7z.dll
FILE PATH%PROGRAMDATA%\*\7z.dll
REGISTRYHKCU\Software\Microsoft\Windows\CurrentVersion\Run
REGISTRYHKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run
INJECTION TARGETSdllhost.exe, WerFault.exe, svchost.exe, OpenWith.exe, AtBroker.exe
SHARE INTEL:Reddit