OnionDrop Loader Uses gainmsg C2 to Deliver LegionLoader Payloads
Key Takeaways A new, highly sophisticated loader, dubbed OnionDrop, is actively delivering multiple malware payloads, including LegionLoader, CGrabber, and Vidar Stealer. The campaign has been...
Key Takeaways
- A new, highly sophisticated loader, dubbed OnionDrop, is actively delivering multiple malware payloads, including LegionLoader, CGrabber, and Vidar Stealer.
- The campaign has been ongoing since at least February 2026, with over 645 unique malicious DLL samples identified in approximately 80 days.
- OnionDrop utilizes a multi-stage infection process, advanced anti-analysis techniques, and a
gainmsgcommand-and-control (C2) infrastructure. - Its evasion capabilities are considered by researchers to rival those typically found in nation-state-sponsored tools.
OnionDrop Loader Campaign Leverages gainmsg C2 for Multi-Stage Malware Delivery
A sophisticated new loader campaign, named OnionDrop, has emerged, actively deploying a range of potent malware, including LegionLoader (also known as CurlyGate), CGrabber Infostealer, and Vidar Stealer. This operation, which has been active since at least February 2026, employs a multi-stage infection chain and a gainmsg command-and-control (C2) infrastructure to distribute its malicious payloads at scale.
Table Of Content
In a detailed report shared with Cyber Security News (CSN), threat researchers from Cyderes’ Howler Cell Threat Research Team have identified OnionDrop as the third distinct component in a broader malicious campaign they have been tracking, following earlier observations of CGrabber Infostealer and Direct-sys Loader operations. The researchers highlighted the loader’s exceptional technical sophistication, noting that its evasion architecture is comparable to, and in some aspects surpasses, the capabilities typically observed in advanced nation-state tooling.
Over 645 unique malicious DLL samples associated with OnionDrop have been detected in roughly 80 days, indicating a high operational tempo. The campaign remains active, posing a persistent and evolving threat that demands immediate attention from cybersecurity defenders.
The Attack Chain: From ZIP to Shellcode
The infection process for OnionDrop begins when victims interact with a ZIP archive. This archive contains a legitimate, Adobe-signed executable, frequently named “AcroBroker.exe” or “setup.exe.” Alongside this trusted binary are two malicious DLLs: “sqlite.dll” and “codecstore384d.dll.” To further complicate analysis and potentially bypass some security checks, the archive also includes a 100MB decoy file named “data.bin,” which is filled with random bytes to artificially inflate the archive’s size.
Upon execution of the legitimate Adobe binary, the “sqlite.dll” is sideloaded. This malicious DLL then loads the primary malicious DLL, “codecstore384d.dll,” which contains the core OnionDrop logic. From this point, OnionDrop embarks on a complex four-stage unpacking process designed to thwart both automated sandbox analysis and manual reverse engineering efforts:
- Custom Byte-Pair Decoding: An initial layer of obfuscation.
- Xpress Huffman Decompression: Standard compression techniques used to hide malicious code.
- AES-256-CBC Decryption: Utilizes strong encryption with rotating key material, making static analysis extremely difficult.
- Shellcode Execution via Thread Pool Callback Abuse: The final stage involves executing shellcode by abusing the Windows Thread Pool’s TpPostWork function, a technique that often bypasses conventional thread-creation telemetry relied upon by security tools.
Once the unpacking stages are complete, the final payload is delivered. In the observed instances, this has included LegionLoader, which then decrypts its RC4-encrypted configuration and establishes communication with its command-and-control server located at gainmsg[.]com/nfront[.]php. This C2 infrastructure facilitates the exfiltration of stolen data and the reception of further instructions from the threat actors.
Advanced Evasion Techniques
OnionDrop distinguishes itself from typical commodity loaders through its sophisticated anti-analysis features, which demonstrate a significant investment in operational security by the threat actor:
- Stack-String Construction: Sensitive function names are not stored in a readable format but are constructed dynamically on the stack at runtime. This makes it challenging for static analysis tools to identify malicious API calls.
- API Hammering: The loader generates a large volume of irrelevant API calls, flooding sandbox traces and making it difficult for automated systems to discern legitimate system interactions from malicious ones.
- Environment Awareness: Before executing its core malicious logic, OnionDrop performs checks on the system’s display device name. It verifies if the system’s GPU string matches expected values like INTEL, AMD, RADEON, or NVIDIA. If the system appears to be a virtual environment or sandbox with a non-standard display adapter, the malware immediately terminates execution, preventing analysis in controlled environments.
- Donut-Generated Payloads: The final shellcode is generated using Donut, a tool that creates position-independent shellcode from .NET assemblies, VBS, JS, EXE, and DLL files, further complicating detection.
The combination of these techniques, including rotating AES key material across execution stages, highlights a deeply engineered evasion stack. This level of sophistication suggests a well-resourced and highly organized threat actor behind the OnionDrop campaign, capable of running multiple infostealer operations simultaneously without signs of abatement.
What You Should Do
- Monitor for IoCs: Actively monitor your network and endpoints for the provided Indicators of Compromise (IoCs), including file hashes and C2 domains.
- Block C2 Communications: Implement firewall rules and network security policies to block connections to known command-and-control domains, such as
gainmsg[.]com/nfront[.]php. - Enhance Endpoint Detection: Update endpoint detection and response (EDR) rules to specifically flag and prevent DLL sideloading behaviors, particularly those involving legitimate Adobe-signed executables contained within ZIP archives.
- Educate Users: Conduct regular cybersecurity awareness training for employees, emphasizing the dangers of opening suspicious ZIP archives or executing unknown files, even if they appear to contain legitimate software.
- Implement Application Whitelisting: Consider implementing application whitelisting to restrict the execution of unauthorized executables and DLLs on critical systems.
- Regularly Back Up Data: Maintain regular, offsite backups of critical data to mitigate the impact of potential data exfiltration or system compromise.
Indicators of Compromise (IoCs):-
| Type | Indicator | Description |
|---|---|---|
| URL (C2) | hxxps[://]gainmsg[.]com/nfront[.]php | LegionLoader command-and-control endpoint |
| SHA256 | 8559e535128805f1e31fa7a15b33d25ae498915c7b88ea5142cf38858d551a53 | Initial malicious ZIP (1) |
| SHA256 | f09be48aab38dc85b7ad46efb98897617af66014ded44a7cf1bddaab59d9dad2 | Initial malicious ZIP (2) |
| SHA256 | 18bb95789e8727be0d98d9a5fce027f0f514e74192c7736b3afa297d2ee4a8fb | Malicious DLL module (1) |
| SHA256 | 070a97bf5bcba13c41266a79357e2a5b8d6f4e353db7427bd8ccabceee5c96e3 | Malicious DLL module (2) |
| SHA256 | 892f1bd9663c7e14855a0238e0fbb5b2396000b3396ceda79947374a3da78912 | OnionDrop Loader (1) |
| SHA256 | c9b96846c9a49ddbed9e143b098972e1d7880654f763bb504d2f7b5d2ab1dafb | OnionDrop Loader (2) |
| SHA256 | fb31df58549031f0ea24b250b214cbab9eafa39adaa715c675f328f7370904c7 | Final payload: CGrabber Infostealer |
| SHA256 | f6e5f7445b9ea717513a04d04acfa343025ca35302d025de33935e176a83f6ae | Final payload: LegionLoader (CurlyGate) |
| SHA256 | 0a8914b4f794ebc8ea1ce08dd4b5da918cd9697443007622100b0ba0731d428c | Final payload: Vidar Stealer |
| File Name | sqlite.dll | Malicious sideloaded DLL, initiates loader chain |
| File Name | codecstore384d.dll | Primary malicious DLL, executes OnionDrop logic |
| File Name | data.bin | Decoy binary used to inflate ZIP archive size |
| File Name | setup.exe / AcroBroker.exe | Legitimate Adobe-signed executable abused for DLL sideloading |
Disclaimer: HackersRadar reports on cybersecurity threats and incidents for informational and awareness purposes only. We do not engage in hacking activities, data exfiltration, or the hosting or distribution of stolen or leaked information. All content is based on publicly available sources.



No Comment! Be the first one.