Skip to main content
Mallory
Malware8 associated CVEs

LemonDuck

Tracked since Feb 4, 2026 · Updated 3 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
Vulns8Associated
Actors0Associated
ATT&CK47Techniques
IOCs36Tracked
Type
Cryptominer
Capabilities
Credential theftExfiltrationPersistenceInitial accessPrivilege escalationLateral movementPost exploitationDefense evasionReconnaissanceScanningBrute forceProcess injection
Delivery
PhishingMalspamLureUSB
Platforms
LinuxWindows

LemonDuck is an actively maintained cross-platform malware family and botnet best known for cryptocurrency mining, particularly Monero mining via XMRig, but it has evolved well beyond a simple coinminer. Since first being observed in 2019, it has developed into a multifunctional intrusion platform that combines automated propagation with post-compromise tradecraft, including credential theft, lateral movement, security-tool removal, persistence, and delivery of secondary payloads. It has been associated with both broad spray-and-pray activity and more selective hands-on-keyboard follow-on operations.

LemonDuck targets Windows and Linux systems and has been observed abusing a wide range of exposed or weakly protected services, including SMB, RDP, SSH, Microsoft Exchange, MSSQL, Redis, and Hadoop YARN. It spreads through phishing email campaigns, exploitation of known vulnerabilities, brute-force attacks, USB and attached-drive propagation, and lateral movement inside compromised environments. Campaigns have included exploitation of Microsoft Exchange ProxyLogon vulnerabilities as well as older flaws such as EternalBlue and other widely abused remote-access vulnerabilities.

On Windows, LemonDuck commonly relies on PowerShell-heavy, multi-stage infection chains and fileless or semi-fileless persistence through scheduled tasks, WMI event consumers, registry-based mechanisms, and startup persistence. It has been observed using WMI and PowerShell to modify Exchange Offline Address Book settings and deploy web-shell functionality for remote command execution. It also uses process injection and in-memory execution to complicate remediation. The malware attempts to disable or weaken Microsoft Defender, add broad exclusions, uninstall security products, and remove competing malware or miners from infected hosts. In some intrusions, operators have patched the same vulnerabilities they exploited in order to retain exclusive access and reduce interference from rival actors.

LemonDuck includes credential-access and post-exploitation functionality, including use of bundled Mimikatz components to steal credentials for reuse and lateral movement. It performs reconnaissance and scanning, attempts logons against adjacent systems, abuses SMB for propagation and covert file transfer, and can self-spread through Outlook by harvesting contacts and sending malicious attachments from compromised mailboxes. It also propagates through removable and network-connected drives by planting hidden malicious files.

Operationally, LemonDuck has been described as having at least two related infrastructures, sometimes referred to as Duck and Cat. The Cat-associated activity has been linked to more dangerous post-compromise outcomes, including backdoor installation, credential theft, data theft, and delivery of additional malware such as Ramnit. This evolution has made LemonDuck notable not only as a cryptomining threat but also as a loader and foothold that can enable broader enterprise compromise.

LemonDuck has had global reach, with significant activity observed across North America, Europe, and Asia. It should be treated as more than commodity mining malware because its combination of worm-like spread, defense evasion, credential theft, persistence, and follow-on payload delivery makes it a serious intrusion threat in enterprise environments.

Is this in your environment?See whether this family's indicators match your telemetry and which of your assets are exposed to the CVEs associated with it.
Check your exposure
Associated CVEs

Associated vulnerabilities

8 CVEs Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.

CVE-2021-26855via microsoft generalExploited in the wildProxyLogon SSRF in Microsoft Exchange ServerIn March and April 2021, various vulnerabilities related to the ProxyLogon set of Microsoft Exchange Server exploits were utilized by LemonDuck to install web shells and gain access to outdated systems. | Ensure that Linux and Windows devices are included in routine patching, and validate protection against the CVE-2019-0708, CVE-2017-0144, CVE-2017-8464, CVE-2020-0796, CVE-2021-26855, CVE-2021-26858, and CVE-2021-27065 vulnerabilities. | LemonDuck is an actively updated and robust malware primarily known for its botnet and cryptocurrency mining objectives. Today, beyond using resources for its traditional bot and mining activities, LemonDuck steals credentials, removes security controls, spreads via emails, moves laterally, and ultimately drops more tools for human-operated activity.View vulnerability →Source ↗
CVE-2021-27065via microsoft generalExploited in the wildMicrosoft Exchange Server Post-Authentication Arbitrary File Write in ProxyLogonIn 2021, it exploited newly patched Exchange Server vulnerabilities to gain access to outdated systems... vulnerabilities like CVE-2021-27065 (ProxyLogon) | LemonDuck, an actively updated and robust malware that’s primarily known for its botnet and cryptocurrency mining objectives... Today, beyond using resources for its traditional bot and mining activities, LemonDuck steals credentials, removes security controls, spreads via emails, moves laterally, and ultimately drops more tools for human-operated activity.View vulnerability →Source ↗
CVE-2021-26858via microsoft generalExploited in the wildPost-authentication arbitrary file write in Microsoft Exchange ServerIn 2021, it exploited newly patched Exchange Server vulnerabilities to gain access to outdated systems... vulnerabilities like CVE-2021-26858 (ProxyLogon) | LemonDuck, an actively updated and robust malware that’s primarily known for its botnet and cryptocurrency mining objectives... Today, beyond using resources for its traditional bot and mining activities, LemonDuck steals credentials, removes security controls, spreads via emails, moves laterally, and ultimately drops more tools for human-operated activity.View vulnerability →Source ↗
CVE-2017-0144via microsoft generalExploited in the wildEternalBlue — Windows SMBv1 Remote Code Executionthe LemonDuck operators have leveraged scans against both Windows and Linux devices for open or weakly authenticated SMB, Exchange, SQL, Hadoop, REDIS, RDP, or other edge devices that might be vulnerable to password spray or application vulnerabilities like CVE-2017-0144 (EternalBlue) | LemonDuck, an actively updated and robust malware that’s primarily known for its botnet and cryptocurrency mining objectives... Today, beyond using resources for its traditional bot and mining activities, LemonDuck steals credentials, removes security controls, spreads via emails, moves laterally, and ultimately drops more tools for human-operated activity.View vulnerability →Source ↗
CVE-2021-26857via microsoft generalExploited in the wildMicrosoft Exchange Unified Messaging Insecure Deserialization RCEIn 2021, it exploited newly patched Exchange Server vulnerabilities to gain access to outdated systems... vulnerabilities like CVE-2021-26857 (ProxyLogon) | LemonDuck, an actively updated and robust malware that’s primarily known for its botnet and cryptocurrency mining objectives... Today, beyond using resources for its traditional bot and mining activities, LemonDuck steals credentials, removes security controls, spreads via emails, moves laterally, and ultimately drops more tools for human-operated activity.View vulnerability →Source ↗
CVE-2017-8464via microsoft generalExploited in the wildWindows LNK Remote Code Execution Vulnerabilitythe LemonDuck operators have leveraged scans against both Windows and Linux devices for open or weakly authenticated SMB, Exchange, SQL, Hadoop, REDIS, RDP, or other edge devices that might be vulnerable to password spray or application vulnerabilities like CVE-2017-8464 (LNK RCE) | LemonDuck, an actively updated and robust malware that’s primarily known for its botnet and cryptocurrency mining objectives... Today, beyond using resources for its traditional bot and mining activities, LemonDuck steals credentials, removes security controls, spreads via emails, moves laterally, and ultimately drops more tools for human-operated activity.View vulnerability →Source ↗
CVE-2019-0708via microsoft generalExploited in the wildBlueKeepthe LemonDuck operators have leveraged scans against both Windows and Linux devices for open or weakly authenticated SMB, Exchange, SQL, Hadoop, REDIS, RDP, or other edge devices that might be vulnerable to password spray or application vulnerabilities like CVE-2019-0708 (BlueKeep) | LemonDuck, an actively updated and robust malware that’s primarily known for its botnet and cryptocurrency mining objectives... Today, beyond using resources for its traditional bot and mining activities, LemonDuck steals credentials, removes security controls, spreads via emails, moves laterally, and ultimately drops more tools for human-operated activity.View vulnerability →Source ↗
CVE-2020-0796via microsoft generalExploited in the wildSMBGhostthe LemonDuck operators have leveraged scans against both Windows and Linux devices for open or weakly authenticated SMB, Exchange, SQL, Hadoop, REDIS, RDP, or other edge devices that might be vulnerable to password spray or application vulnerabilities like CVE-2020-0796 (SMBGhost) | LemonDuck, an actively updated and robust malware that’s primarily known for its botnet and cryptocurrency mining objectives... Today, beyond using resources for its traditional bot and mining activities, LemonDuck steals credentials, removes security controls, spreads via emails, moves laterally, and ultimately drops more tools for human-operated activity.View vulnerability →Source ↗
MITRE ATT&CK

Techniques & procedures

47 distinct techniques documented for this family, organized by ATT&CK tactic.

Resource Development

1 technique
T1583.001DomainsEvidence1

Initially, the botnet was a small-time operation that relied on classic email spam to distribute malicious files that would infect users with its malware.

Initial Access

6 techniques
T1078Valid AccountsEvidence2

Today, the botnet can infect both Windows and Linux systems and comes equipped with a trove of features that allow it to... collect credentials from local systems to ensure future and more persistent access.

T1078.001Default AccountsEvidence1

In the initial access phase, the attacker... successfully logged in as a local user named Administrator.

T1091Replication Through Removable MediaEvidence2

Other common methods of infection include movement within the compromised environment, as well as through USB and connected drives.

T1190Exploit Public-Facing ApplicationEvidence5

In 2021, it exploited newly patched Exchange Server vulnerabilities to gain access to outdated systems... vulnerabilities like CVE-2021-26855, CVE-2021-26857, CVE-2021-26858, and CVE-2021-27065 (ProxyLogon).

T1566PhishingEvidence3

It uses a wide range of spreading mechanisms—phishing emails, exploits, USB devices, brute force, among others... For example, in 2020, it was observed using COVID-19-themed lures in email attacks.

T1566.001Spearphishing AttachmentEvidence2

The attachment used for these lures is one of three types: .doc, .js, or a .zip containing a .js file. Whatever the type, the file is named “readme”.

Execution

8 techniques
T1047Windows Management InstrumentationEvidence1

LemonDuck... capitalizes on the ProxyLogon bug to target systems, but its infection utilizes Windows Management Instrumentation (WMI) to modify the OAB.

T1053Scheduled Task/JobEvidence2

These campaigns included PowerShell scripts that employed additional scripts kicked off by a scheduled task.

T1053.005Scheduled TaskEvidence2

One of these actions is to establish fileless persistence by creating scheduled tasks that re-run the initial PowerShell download script.

T1059Command and Scripting InterpreterEvidence1

their multi-stage PowerShell scripts were more complex and obfuscated than others', and they already made extensive use of open-source tools for code execution and infection

T1059.001PowerShellEvidence5

These campaigns included PowerShell scripts... The JavaScript has replaced the scheduled task that LemonDuck previously used to kickstart the PowerShell script.

T1059.003Windows Command ShellEvidence2

This JavaScript launches a CMD process that subsequently launches Notepad as well as the PowerShell script contained within the JavaScript.

T1059.007JavaScriptEvidence1

The attachment used for these lures is one of three types: .doc, .js, or a .zip containing a .js file... Since LemonDuck began operating, the .zip to .js file execution method is the most common.

T1203Exploitation for Client ExecutionEvidence1

...vulnerabilities like CVE-2017-8464 (LNK RCE)...

Persistence

7 techniques
T1053Scheduled Task/JobEvidence2

These campaigns included PowerShell scripts that employed additional scripts kicked off by a scheduled task.

T1053.005Scheduled TaskEvidence2

One of these actions is to establish fileless persistence by creating scheduled tasks that re-run the initial PowerShell download script.

T1078Valid AccountsEvidence2

Today, the botnet can infect both Windows and Linux systems and comes equipped with a trove of features that allow it to... collect credentials from local systems to ensure future and more persistent access.

T1078.001Default AccountsEvidence1

In the initial access phase, the attacker... successfully logged in as a local user named Administrator.

T1505.003Web ShellEvidence2

Leveraging the ProxyLogon vulnerability allowed the threat actors behind BlackKingdom, Prometei, and LemonDuck to execute Chopper web shells... The China Chopper web shell... continues to be widely used by threat actors in their campaigns to gain remote access to a targeted system.

T1546.003Windows Management Instrumentation Event SubscriptionEvidence1

LemonDuck also maintains a backup persistence mechanism through WMI Event Consumers to perform the same actions.

T1547.001Registry Run Keys / Startup FolderEvidence1

Fileless techniques, which include persistence via registry, scheduled tasks, WMI, and startup folder

Privilege Escalation

8 techniques
T1053Scheduled Task/JobEvidence2

These campaigns included PowerShell scripts that employed additional scripts kicked off by a scheduled task.

T1053.005Scheduled TaskEvidence2

One of these actions is to establish fileless persistence by creating scheduled tasks that re-run the initial PowerShell download script.

T1055Process InjectionEvidence1

These techniques also include utilizing process injection and in-memory execution, which can make removal non-trivial.

T1068Exploitation for Privilege EscalationEvidence2

IF.Bin drops additional .BIN files to attempt common service exploits like CVE-2017-8464 ... to increase privilege.

T1078Valid AccountsEvidence2

Today, the botnet can infect both Windows and Linux systems and comes equipped with a trove of features that allow it to... collect credentials from local systems to ensure future and more persistent access.

T1078.001Default AccountsEvidence1

In the initial access phase, the attacker... successfully logged in as a local user named Administrator.

T1546.003Windows Management Instrumentation Event SubscriptionEvidence1

LemonDuck also maintains a backup persistence mechanism through WMI Event Consumers to perform the same actions.

T1547.001Registry Run Keys / Startup FolderEvidence1

Fileless techniques, which include persistence via registry, scheduled tasks, WMI, and startup folder

Stealth

9 techniques
T1027Obfuscated Files or InformationEvidence2

we have observed a PowerShell process that executes a Base64-encoded command

T1036MasqueradingEvidence1

Additionally, the attacker also create another malicious executable that disguised a legitimate system service named svchost.exe.

T1055Process InjectionEvidence1

These techniques also include utilizing process injection and in-memory execution, which can make removal non-trivial.

T1070Indicator RemovalEvidence2

After the emails are sent, the inbox is cleaned to remove traces of these mails.

T1078Valid AccountsEvidence2

Today, the botnet can infect both Windows and Linux systems and comes equipped with a trove of features that allow it to... collect credentials from local systems to ensure future and more persistent access.

T1078.001Default AccountsEvidence1

In the initial access phase, the attacker... successfully logged in as a local user named Administrator.

T1218System Binary Proxy ExecutionEvidence1

LemonDuck then attempts to automatically remove a series of other security products through CMD.exe, leveraging WMIC.exe.

T1564.001Hidden Files and DirectoriesEvidence1

These scripts attempt to create a set of hidden files in the home directory, including a copy of readme.js.

T1620Reflective Code LoadingEvidence1

These techniques also include utilizing process injection and in-memory execution, which can make removal non-trivial.

Defense Impairment

2 techniques
T1685Disable or Modify ToolsEvidence4

Today, beyond using resources for its traditional bot and mining activities, LemonDuck steals credentials, removes security controls... Notably, LemonDuck removes other attackers from a compromised device by getting rid of competing malware and preventing any new infections by patching the same vulnerabilities it used to gain access.

T1686Disable or Modify System FirewallEvidence1

It first creates and copies malicious file msInstall.exe... opens specific firewall ports and sets up port forwarding to redirect traffic to a remote address (1.1.1.1) on port 53.

Credential Access

4 techniques
T1003OS Credential DumpingEvidence3

Today, the botnet can infect both Windows and Linux systems and comes equipped with a trove of features that allow it to... collect credentials from local systems to ensure future and more persistent access.

T1110Brute ForceEvidence4

It uses a wide range of spreading mechanisms—phishing emails, exploits, USB devices, brute force, among others... scans against both Windows and Linux devices for open or weakly authenticated SMB, Exchange, SQL, Hadoop, REDIS, RDP, or other edge devices that might be vulnerable to password spray

T1110.003Password SprayingEvidence2

...other edge devices that might be vulnerable to password spray or application vulnerabilities...

T1555Credentials from Password StoresEvidence1

Today, beyond using resources for its traditional bot and mining activities, LemonDuck steals credentials... Once inside a system with an Outlook mailbox... utilizes the credentials present on the device.

Discovery

2 techniques
T1033System Owner/User DiscoveryEvidence1

the mail metadata count of contacts is also sent to the attacker, likely to evaluate its effectiveness

T1046Network Service DiscoveryEvidence1

LemonDuck uses this script at installation and then repeatedly thereafter to attempt to scan for ports and perform network reconnaissance.

Lateral Movement

7 techniques
T1021Remote ServicesEvidence1

If all of those fail, LemonDuck also uses its access methods such as RDP, Exchange web shells, Screen Connect, and RATs to maintain persistent access.

T1021.001Remote Desktop ProtocolEvidence1

If all of those fail, LemonDuck also uses its access methods such as RDP, Exchange web shells, Screen Connect, and RATs to maintain persistent access.

T1021.002SMB/Windows Admin SharesEvidence1

Upon login into the account, the attacker creates a hidden administrative share for the C: drive on the local machine.

T1091Replication Through Removable MediaEvidence2

Other common methods of infection include movement within the compromised environment, as well as through USB and connected drives.

T1210Exploitation of Remote ServicesEvidence1

The task was used to bring in the PCASTLE tool to achieve a couple of goals: abuse the EternalBlue SMB exploit...

T1550.002Pass the HashEvidence1

The task was used to bring in the PCASTLE tool to achieve a couple of goals: abuse the EternalBlue SMB exploit, as well as use brute force or pass-the-hash to move laterally and begin the operation again.

T1570Lateral Tool TransferEvidence2

It then attempts to log onto adjacent devices to push the initial LemonDuck execution scripts.

Collection

1 technique
T1114Email CollectionEvidence2

The script instructs the mailbox to send copies of a phishing message with preset messages and attachments to all contacts.

Command and Control

4 techniques
T1071.002File Transfer ProtocolsEvidence1

T1071.002 File Transfer Protocols is a sub-technique of Application Layer Protocols (T1071) in the MITRE ATT&CK framework under the Command and Control tactic. It involves the use of File Transfer Protocols such as SMB, FTP, and TFTP to facilitate file sharing across networks.

T1090ProxyEvidence1

The script starts by installing IPv6 and then configures the firewall to open TCP ports 65532, 65531, and 65529... Each port is set up with a proxy that directs traffic from the local workstation to IP address 1.1.1.1 on port 53.

T1105Ingress Tool TransferEvidence3

Today, beyond using resources for its traditional bot and mining activities... ultimately drops more tools for human-operated activity... Today, the Cat infrastructure is used in attacks that typically result in backdoor installation... and malware delivery. It is often seen delivering the malware Ramnit.

T1219Remote Access ToolsEvidence1

LemonDuck also uses its access methods such as RDP, Exchange web shells, Screen Connect, and RATs to maintain persistent access.

Impact

2 techniques
T1496Resource HijackingEvidence1

A miner implant is downloaded as part of the monetization mechanism of LemonDuck. The implant used is usually XMRig

T1565.001Stored Data ManipulationEvidence1

This information is then added into the Windows Hosts file to avoid detection by static signatures.

Indicators of compromise

Observables

36 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.

View all in app →
Indicator values are available in Mallory. Pivot on every hash, domain, URL, and IP, or pipe them straight into your SIEM.View all in Mallory
Activity feed

Recent activity

7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
picus security blogNews · Mar 16, 2026T1071.002 File Transfer Protocols in MITRE ATT&CK ExplainedMalware used to transfer malicious executables over SMB, create hidden administrative shares, deploy scripts and batch files for scheduled tasks, modify network configurations, download additional payloads, and support persistent cryptomining activity.Read more ↗netbytesec blogNews · Jun 15, 2023LemonDuck Unleashes Cryptomining Attacks Through SMB Service ExploitsCryptomining malware that exploits SMB, including EternalBlue, spreads via phishing, SMB exploitation, and brute-force attacks, disables defenses, establishes persistence with scheduled tasks, downloads additional payloads via PowerShell/mshta, and uses compromised resources for cryptojacking.Read more ↗ahnlab asec blogNews · May 1, 2023Analysis of CLR SqlShell Used to Attack MS-SQL Servers - ASECCryptomining malware that propagates to poorly managed MS-SQL servers using dictionary attacks and leverages SQL Server OS-command execution (xp_cmdshell and CLR stored procedures) to download and run additional payloads.Read more ↗the record mediaNews · Aug 3, 2021LemonDuck botnet evolves to allow hands-on-keyboard intrusions | The Record from Recorded Future NewsA crypto-mining malware strain that evolved into a large botnet. It infects Windows and Linux systems, disables security software, spreads laterally, removes competing malware, patches infected servers against rivals, steals credentials, and has begun enabling hands-on-keyboard intrusions for more persistent and potentially more dangerous follow-on activity.Read more ↗
+3 more in the timeline. Sign up to see them
Is this in your environment?See whether this family's indicators match your telemetry and which of your assets are exposed to the CVEs associated with it.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets match these IOCs, which detections are missing, which campaigns to expect next, and what to do in the next 30 minutes.
IOC matching36Match every observed IP, domain, and hash against your live telemetry.
Associated threat actorsGroups linked to this family, with evidence pinned to each claim.
Associated vulnerabilities8CVEs linked to this family, with the reporting behind each link.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
MITRE ATT&CK mapping47Every documented technique, ranked by evidence weight.
Researcher chatterReddit, Mastodon, and CTI community discussion around this family.