Barracuda researchers have observed a recent campaign deploying the LemonDuck malware, a botnet that specializes in resource hijacking for cryptocurrency mining. The malware spreads laterally across networks by exploiting vulnerabilities and brute-forcing credentials, then uses infected endpoints' CPU and GPU resources to mine cryptocurrency for the attackers. The observed campaign utilized hidden PowerShell scripts to download additional payloads and maintain communication with its command-and-control (C2) infrastructure. Separately, the report highlights a significant 55% surge in password-spraying attacks originating from Iran, specifically targeting Fortigate VPNs, indicating a broader trend of attacks against remote access infrastructure.
T1496 - Resource Hijacking). The malware uses the computational power of infected systems to mine cryptocurrency, generating profit for the operators.While cryptomining is the primary goal, a botnet like LemonDuck also provides a persistent foothold in a network, which can be sold or repurposed for other malicious activities, such as deploying ransomware or launching DDoS attacks.
The LemonDuck campaign observed by Barracuda's SOC demonstrated several key TTPs:
-WindowStyle Hidden to conceal their activity from the user. The scripts are responsible for downloading the main mining payload and other malicious modules.The separate finding of increased password-spraying attacks from Iran against Fortigate VPNs highlights a parallel threat. Attackers are systematically attempting to breach corporate networks by guessing common passwords for a large number of user accounts (T1110.003 - Password Spraying). A successful VPN compromise provides a direct entry point for deploying malware like LemonDuck.
While often considered less severe than ransomware, a LemonDuck infection can have significant business impacts:
No specific technical indicators of compromise were provided in the summarized articles.
To hunt for LemonDuck and similar cryptomining threats, security teams should look for:
powershell.exe, xmrig.exestratum+tcp or stratum+sslVPN LogsKeep all systems, especially internet-facing ones, patched to prevent exploitation.
Mapped D3FEND Techniques:
Enforce MFA on all VPNs and remote access solutions to defeat password-spraying attacks.
Mapped D3FEND Techniques:
Enforce strong password policies and use account lockout mechanisms to hinder brute-force and password-spraying attempts.
Mapped D3FEND Techniques:
Block outbound connections to known cryptomining pools at the network perimeter.
To detect LemonDuck and other cryptominers, process and performance monitoring is key. Deploy an EDR or use native OS tools to monitor CPU utilization across all endpoints. Configure alerts for any process that causes sustained CPU usage above a certain threshold (e.g., 80%) for an extended period (e.g., 15 minutes), especially if that process is unsigned or running from an unusual directory. For LemonDuck specifically, hunt for powershell.exe processes with encoded commands (-enc) that have high CPU usage as a child process. This behavioral approach can detect the mining activity regardless of the specific miner executable being used.
To counter the password-spraying attacks targeting Fortigate VPNs, organizations must implement authentication event thresholding. Ingest VPN authentication logs into a SIEM and create a rule that triggers an alert when a single source IP address generates a high number of failed logins across multiple different user accounts within a short time frame (e.g., more than 20 failed logins for 10+ distinct users from one IP in 5 minutes). This is the classic signature of a password spray. The automated response should be to temporarily block the source IP at the firewall, preventing the attacker from continuing their attempt and potentially guessing a valid password.
A direct way to neutralize cryptomining malware is to block its ability to communicate with the mining pool. Maintain a threat intelligence feed of known cryptocurrency mining pool domains and IP addresses. Configure your perimeter firewall or web proxy to block all outbound connections to these destinations. Specifically, block traffic using the stratum+tcp protocol. This ensures that even if a machine becomes infected with LemonDuck, the miner will be unable to receive work or submit shares, rendering the infection unprofitable for the attacker and stopping the resource hijacking.

Cybersecurity professional with over 10 years of specialized experience in security operations, threat intelligence, incident response, and security automation. Expertise spans SOAR/XSOAR orchestration, threat intelligence platforms, SIEM/UEBA analytics, and building cyber fusion centers. Background includes technical enablement, solution architecture for enterprise and government clients, and implementing security automation workflows across IR, TIP, and SOC use cases.
Help others stay informed about cybersecurity threats
Every tactic, technique, and sub-technique used in this threat has been identified and mapped to the MITRE ATT&CK framework for consistent, actionable threat language.
Observables and indicators of compromise (IOCs) have been extracted and cataloged. Risk has been assessed and correlated with known threat actors and historical campaigns.
Detection rules, incident response steps, and D3FEND-aligned mitigation strategies are included so your team can act on this intelligence immediately.
Structured threat data is packaged as a STIX 2.1 bundle and can be visualized as an interactive graph — relationships between actors, malware, techniques, and indicators.
Sigma detection rules are derived from the threat techniques in this article and can be converted for deployment across any major SIEM or EDR platform.