LemonDuck
- Motivation
- Financial
- Targets
- IN
- Capabilities
- Initial accessScanningBrute forceCredential theftReconnaissancePersistenceLateral movementPost exploitationDefense evasionExfiltration
LemonDuck, also written as Lemon Duck or lemon_duck, is a financially motivated cybercriminal operation associated with a modular, self-propagating cryptocurrency-mining botnet first observed in 2019. It compromises Windows and Linux systems, primarily to deploy Monero miners such as XMRig, while also stealing credentials, establishing persistent access, and installing additional malware. Its activity is geographically widespread, including infections in India. Initially distributed through malicious email attachments, LemonDuck expanded to vulnerability exploitation and brute-force attacks against exposed Microsoft Exchange, Microsoft SQL Server, Hadoop, Redis, SMB, and RDP services. Its exploitation capabilities include EternalBlue, SMBGhost, and the Exchange vulnerabilities CVE-2021-26855, CVE-2021-26857, CVE-2021-26858, and CVE-2021-27065. LemonDuck has also compromised vulnerable HTTP File Server installations in activity associated with CVE-2024-23692. On SQL Server, it abuses xp_cmdshell and CLR stored procedures for command execution. LemonDuck uses obfuscated, multistage PowerShell scripts and legitimate administrative utilities to execute payloads, collect system information, disable security controls, and spread laterally. Persistence mechanisms include scheduled tasks, WMI event subscriptions, web shells, and accounts configured for remote access. Some Exchange attacks execute PowerShell directly through the IIS worker process without deploying a web shell. Additional tooling includes Cobalt Strike DNS beacons, XenoRAT, and Ramnit. Operators have also conducted hands-on-keyboard activity and abused compromised Exchange mailboxes to distribute malicious emails. A distinctive operational behavior is removing competing miners and other attackers' artifacts. LemonDuck sometimes patches exploited systems to prevent rivals from regaining access while retaining its own foothold. It also obscures command-and-control traffic through DNS communications and local hostname mappings. Its documented operations center on illicit cryptocurrency mining and broader post-compromise access; ransomware deployment has not been established.
Targeting
Who, where, and from where this actor operates. Pulled from open-source reporting and Mallory's analyst review.
Who they target
Sectors the actor has been observed targeting.
- Government & Administration
- Software & Services
Where they target
Geographies tied to known operations.
- India
Tradecraft
56 distinct techniques observed across reporting, grouped by tactic. Hover any cell for the evidence excerpt.
Associated malware families
2 malware families Mallory has associated with this actor across public reporting.
Associated vulnerabilities
5 CVEs Mallory has associated with this actor across public reporting. 5 of them are exploited in the wild (not necessarily by this actor).
Observables
63 indicators attributed to this actor. Values are masked here and available in full in Mallory.
Frequently asked questions
- Who does LemonDuck target?
- LemonDuck targets Government & Administration and Software & Services in India.
- What malware does LemonDuck use?
- LemonDuck is associated with XenoRAT and XMRig.
Recent activity
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.